Skip to content

Commit

Permalink
Add Stripe JS gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Nov 5, 2020
1 parent c0462d4 commit 091799a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -22,7 +22,7 @@
"license": "MIT",
"extra": {
"branch-alias": {
"dev-master": "1.1-dev"
"dev-master": "1.2-dev"
}
},
"authors": [
Expand Down
7 changes: 7 additions & 0 deletions src/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

0 comments on commit 091799a

Please sign in to comment.