sopinet / 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-19 06:33:58 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 中的配置
您需要在 JMSPaymentBundle 表单中添加: "stripe_card_credit" 方法
可选:配置信用卡表单
您可以使用默认的完整信用卡表单,包括地址选项和其他内容。
但您也可以配置另一个最小化表单,您可以覆盖此参数,如下所示
payment.form.stripe_credit_card_type.class: KJ\Payment\StripeBundle\Form\StripeCreditCardMinimumType
最后,您也可以创建自己的表单