Skip to content

A Symfony2 Bundle that provides access to the Stripe API. Based on JMSPaymentCoreBundle.

License

Notifications You must be signed in to change notification settings

fotomerchant/PaymentStripeBundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NO LONGER MAINTAINED

A Symfony2 Bundle that provides access to the Stripe API. Based on JMSPaymentCoreBundle.

Installation

Step1: Require the package with Composer

php composer.phar require symfony/event-dispatcher:^2.8
php composer.phar require ruudk/payment-stripe-bundle

Step2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Ruudk\Payment\StripeBundle\RuudkPaymentStripeBundle(),
    );
}

Step3: Configure

Add the following to your config.yml:

ruudk_payment_stripe:
    api_key:  Your API key
    logger:   true/false   # Default true
    methods:
      - checkout

Make sure you set the description in the predefined_data for every payment method you enable:

$form = $this->getFormFactory()->create('jms_choose_payment_method', null, array(
    'amount'   => $order->getAmount(),
    'currency' => 'EUR',
    'predefined_data' => array(
        'stripe_checkout' => array(
            'description' => 'My product',
        ),
    ),
));

See JMSPaymentCoreBundle documentation for more info.

About

A Symfony2 Bundle that provides access to the Stripe API. Based on JMSPaymentCoreBundle.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%