You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,11 @@
6
6
## Payum Stripe gateways
7
7
8
8
This library is designed to add a new gateways to Payum to support Stripe (with SCA support)
9
+
Actually there is one Gateway fully supported `Stripe checkout session` but soon `Stripe JS` will be supported too.
10
+
11
+
> If you are using Symfony use the bundle : [prometee/payum-stripe-checkout-bundle](https://github.com/Prometee/PayumStripeCheckoutSessionBundle)
12
+
13
+
> If you are using Sylius use the plugin : [prometee/sylius-payum-stripe-checkout-session-plugin](https://github.com/Prometee/SyliusPayumStripeCheckoutSessionPlugin)
9
14
10
15
## Installation
11
16
@@ -22,12 +27,27 @@ the most used is [php-http/guzzle6-adapter](https://packagist.org/packages/php-h
Examples available into the [`src/Action/Api/WebhookEvent/`](../../src/Action/Api/WebhookEvent) folder.
93
94
94
-
## More
95
+
## Subscription handling
96
+
97
+
Payum don't have php `Interfaces` to handle subscription, that's why subscriptions should be
98
+
managed by yourself. There is maybe a composer packages which meet your need,
99
+
but you will have to build the interface between your subscription `Model` class and `Payum`.
100
+
101
+
Usually you will have to build a `ConvertPaymentAction` like this one : [ConvertPaymentAction.php](https://github.com/Prometee/SyliusPayumStripeCheckoutSessionPlugin/blob/master/src/Action/ConvertPaymentAction.php)
102
+
customizing the `supports` method to meet your need and finally providing the right `$details` array.
95
103
96
-
Check the dedicated bundle :
104
+
Example : https://stripe.com/docs/payments/checkout/subscriptions/starting#create-checkout-session (`$details` is the array given to create a `Session`)
Same as the [previous chapter](#subscription-handling)
109
+
110
+
Example : https://stripe.com/docs/payments/checkout/subscriptions/updating#create-checkout-session (`$details` is the array given to create a `Session`)
0 commit comments