sopinet/kj-payment-stripe-bundle

提供访问 Stripe API 的支付包

安装: 215

依赖: 0

建议: 0

安全: 0

星标: 0

关注者: 7

分支: 5

类型:symfony-bundle

1.1.1 2017-05-21 18:22 UTC

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

最后,您也可以创建自己的表单