sopinet/kj-payment-stripe-bundle

Payment Bundle providing access to the Stripe API

Installs: 199

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 5

Type:symfony-bundle

1.1.1 2017-05-21 18:22 UTC

This package is not auto-updated.

Last update: 2024-04-18 04:44:25 UTC


README

Payment Bundle providing access to the Stripe API

Installation

composer

composer require sopinet/kj-payment-stripe-bundle

AppKernel

add to AppKernel:

    new KJ\Payment\StripeBundle\KJPaymentStripeBundle(),

config.yml

// app/config/config.yml
kj_payment_stripe:
    api_key: sk_test_blablabla # ApiKey from Stripe
    api_version: "2016-07-06" # Last version from Stripe

Configuration in JMSPaymentBundle

You need add: "stripe_card_credit" method to your JMSPaymentBundle form

Optional: configure form for credit card

You can use full form for credit card by default, with address options and others.

But you can configure another minimal form too, you can override this parameter so:

payment.form.stripe_credit_card_type.class: KJ\Payment\StripeBundle\Form\StripeCreditCardMinimumType

By last, you could to do your own form too