#rupole1185-Setup
1 messages · Page 1 of 1 (latest)
Hi there, how do you collect the payment details in your integration? do you use SetupIntent or Checkout?
On checkoutn I use "PaymentIntent". Is it different from setupIntent?
OK, you can do it with PaymentIntent API as well
Regarding the details for each client, I am collecting their card details and saving them on Stripe using Woocommerce really
you can set setup_future_usage=off_session (https://stripe.com/docs/api/payment_intents/create?lang=curl#create_payment_intent-setup_future_usage) when creating the payment intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am not really understanding. When should I generate this payment intent? When I generate the client or when I want to make the transaction?
How do you create a PaymentIntent?
Currently, every month I create a paymentIntent for the amount due by the client
Is it via API or Stripe Dashboard?
via API
OK, then you can set the setup_future_usage=off_session (https://stripe.com/docs/api/payment_intents/create?lang=curl#create_payment_intent-setup_future_usage) when creating the Payment Intent
So you just need to use setup_future_usage=off_session once to indicate that the payment method can be resused in the future off-session payment. This will trigger 3DS flow (if necessary)
After that you can set off-seeion=true (https://stripe.com/docs/api/payment_intents/create?lang=curl#create_payment_intent-off_session) in the subsequent payment intents
allright. My issue is that everymonth the payment changes (sometime is higher, sometime lower). I was creating a new paymentIntent every month for this reason ...
If it's a recurring payment, you might want to use subscription
yes, it's recurring but every month with different amount (some months it could be also a 0€ for instance). For this I wasn't using subscriptions but insteady single payments every month
You can use metered based billing to charge your cusotmers at the end of the month https://stripe.com/docs/products-prices/pricing-models#metered