#gregorysam-payment-sheet
1 messages · Page 1 of 1 (latest)
Hello, are you getting an error there related to payment method?
Also, a Subscription would be made differently, here is a good intro doc https://stripe.com/docs/billing/integration-builder
i am not getting an error i just can't even open the payment sheet
will this method work with flutter payment sheet ?
I think in order to use payment sheet i have to use payment intent
Stripe doesn't have an official Flutter library. I would reach out to the devs of the library that you are using for thart
I am using this library
https://github.com/flutter-stripe/flutter_stripe
Right, that is not developed by Stripe so unfortunately I can't provide much advise for the parts where you aren't writing directly to the Stripe API
Oh , although i dont think my problem come from the package i cant quite understand in the docs what i need to pass to payment_method to do a recurring payment
for example:
https://stripe.com/docs/payments/save-and-reuse?platform=android&ui=payment-sheet#charge-saved-payment-method
This depends on what you are trying to do
You mentioned a subscription, do you want to create a Stripe object that tries to bill the customer every X days?
That doc is for when you want to charge a customer now and save their card for future one off payments off session
If that is what you want, we can discuss that. I just want to make sure we are addressing your needs
Sorry for the late response , yeah i want a subscription or a recurring payment i want the customer to pay ever month
So what is blocking you and what do you need help with?
How can i implement subscriptions or a recurring payment(every month) with the payment sheet? I know
i have to use paymentIntent in order for sheet to appear but i can't understand the docs quite as well
for example what i need to change here ?
const paymentIntent = await stripe.paymentIntents.create({ payment_method_types: ['card'], amount: 599, currency: 'usd', customer: customer.id, payment_method:paymentMethods.data[1].id, confirm:true, off_session:true, });
You don't create a PaymentIntent yourself. You create a Subscription, the Subscription has a latest_invoice and that Invoice has a payment_intent id
So i have to send that payment_intent id to the front
Thanks for the your help i will try it tomorrow and reply again