#Cavalaa

1 messages · Page 1 of 1 (latest)

violet pewterBOT
rapid oyster
#

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 ?

kindred relic
#

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

rapid oyster
#

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.

kindred relic
#

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

rapid oyster
kindred relic
#

yeah

rapid oyster
#

is it clear now ?

kindred relic
#

thanks I'm going to attempt the fixes now

rapid oyster
#

happy to help!