diff --git a/README.md b/README.md index ed23146..8ac7362 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ## Payum Stripe checkout session gateway bundle -This bundle is designed to add a new gateway to Payum to support Stripe checkout session over symfony bundle +This bundle is design to add a new gateway to Payum to support Stripe checkout session and Stripe JS gateways over symfony bundle See https://stripe.com/docs/payments/checkout for more information. @@ -85,6 +85,12 @@ payum: secret_key: pk_test_publishablekey webhook_secret_keys: - whsec_test_webhookkey + stripe_js: + factory: stripe_js + publishable_key: sk_test_secretkey + secret_key: pk_test_publishablekey + webhook_secret_keys: + - whsec_test_webhookkey ``` ## Usage diff --git a/UPGRADE.md b/UPGRADE.md index 0991d25..3a6e229 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,3 +1,8 @@ +# UPGRADE FROM `v1.2.0` TO `v1.2.1` + +The service name of stripe checkout session gateway as been renamed : +from `flux_se.payum_stripe.gateway_factory_builder` to `flux_se.payum_stripe_checkout_session.gateway_factory_builder` + # UPGRADE FROM `v1.1.0` TO `v1.2.0` * **BC BREAK**: This bundle has been renamed from diff --git a/composer.json b/composer.json index ccb2a40..73d2793 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Payum Stripe gateways bundle", "type": "symfony-bundle", "require": { - "flux-se/payum-stripe": "^1.1", + "flux-se/payum-stripe": "^1.2.1", "symfony/http-kernel": "^4.1|^5.1.5", "symfony/dependency-injection": "^4.1|^5.1.5", "symfony/config": "^4.1|^5.1.5" @@ -22,7 +22,7 @@ "license": "MIT", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "1.2-dev" } }, "authors": [ diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index b8624de..4e4664b 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -6,3 +6,10 @@ services: $gatewayFactoryClass: FluxSE\PayumStripe\StripeCheckoutSessionGatewayFactory tags: - { name: payum.gateway_factory_builder, factory: stripe_checkout_session } + + flux_se.payum_stripe_js.gateway_factory_builder: + class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder + arguments: + $gatewayFactoryClass: FluxSE\PayumStripe\StripeJsGatewayFactory + tags: + - { name: payum.gateway_factory_builder, factory: stripe_js }