#gregorysam-payment-sheet

1 messages · Page 1 of 1 (latest)

shut current
#

Hello, are you getting an error there related to payment method?

unreal basin
#

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

shut current
#

Stripe doesn't have an official Flutter library. I would reach out to the devs of the library that you are using for thart

unreal basin
shut current
#

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

unreal basin
shut current
#

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

unreal basin
#

Sorry for the late response , yeah i want a subscription or a recurring payment i want the customer to pay ever month

main sapphire
#

So what is blocking you and what do you need help with?

unreal basin
#

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, });

main sapphire
#

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

unreal basin
#

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

calm sand
#

To confirm the initial payment you'd need the payment intent client secret, yes. But the subscription will create the invoice & payment intent for you.

#

Sure, good luck with it, come on back if you have any questions while working through that.