mediaarea / kj-payment-stripe-bundle
提供访问Stripe API的支付组件
1.1.1
2017-05-21 18:22 UTC
Requires
- php: >=5.3.2
- jms/payment-core-bundle: dev-master
- stripe/stripe-php: dev-master
Requires (Dev)
- symfony/browser-kit: *
- symfony/finder: ~2.0,>=2.0.5|~3.0.0
This package is not auto-updated.
Last update: 2024-09-18 21:50:35 UTC
README
提供访问Stripe API的支付组件
安装
composer
composer require sopinet/kj-payment-stripe-bundle
AppKernel
添加到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
JMSPaymentBundle中的配置
您需要将"stripe_card_credit"方法添加到JMSPaymentBundle表单中
可选:为信用卡配置表单
您可以使用默认的完整信用卡表单,包括地址选项和其他内容。
但是,您也可以配置另一个最小化表单,您可以通过覆盖此参数来实现
payment.form.stripe_credit_card_type.class: KJ\Payment\StripeBundle\Form\StripeCreditCardMinimumType
最后,您也可以创建自己的表单