#Cavalaa
1 messages · Page 1 of 1 (latest)
Hi
Can you share a complete example please? I'm not sure I understand some part of your question:
for deposits,
can you share more details about this part?
then I attempt to create a payment intent, but how do I do this without having a payment methodID
You create a PaymentIntent for collecting payment details (PaymentMethod) and charge the custom, what you want to achieve exactly ? why you need a PaymentMethod? is this an off session payment ?
So i have a platform that lets users deposit to a connected account of there's they click an amount and get directed to a stripe payment window thy can deposit through a card, however, I try creating the payment intent at this point and i get graphql errors because the paymentmethodID is nil at this point
I try creating the payment intent at this point and i get graphql errors because the paymentmethodID is nil at this point
You can create a PaymentIntent without a PaymentMethod when using Stripe APIs. In this case you'll have a null PaymentMethod on the PI.
You use that Paymentintent to collect/create a PaymentMethod when the customer pays.
Ok so I can just ignore the PaymentMethodID for the time being and have no need to collect it yet?
Or to try and use it as its causing logic errors wherer its value is NIl
If the customer doesn't have already a PaymentMethod that you want to charge for, then you need to expect that no PaymentMethod will be returned when creating a PaymentIntent
I imagine you are following this guide :
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
With some Connect adaption, right ?
yeah
is it clear now ?
thanks I'm going to attempt the fixes now
happy to help!