mediaarea/kj-payment-stripe-bundle

提供访问Stripe API的支付组件

安装次数: 4,925

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 4

分支: 5

类型:symfony-bundle

1.1.1 2017-05-21 18:22 UTC

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

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