#Jairo - No such PaymentMethod

1 messages ยท Page 1 of 1 (latest)

hollow gateBOT
short hemlock
#

Hi there!

tepid briar
#

Hi soma ๐Ÿ™‚ Thanks for your reply

#

Yes, one sec please

#

req_mPRdqyNcJ3jgmP

short hemlock
#

This API call contains payment_method: "cus_xxx". So you are trying to pass a Customer ID instead of a PaymentMethod ID

#

it should be payment_method: "pm_xxx" to actually pass a PaymentMethod ID

tepid briar
#

but we are not making this call directly from our side ๐Ÿ™

#

We're making only the POST /subscriptions call to upgrade the subscription

#

req_qXm2QdQd9sgIbW

#

And the call to payment_intents endpoint is executed automatically

#

It seems that Stripe makes this call automatically to charge the prorations

short hemlock
#

Give me a few minutes to look into this.

tepid briar
#

Ok, thanks ๐Ÿ™

steep zinc
#

So it sounds like your client side code may be passing in the wrong ID when trying to confirm this payment

tepid briar
#

๐Ÿง

#

I don't know at what point we are making this call

#

Maybe it is an implicit call made by the Stripe.js library?

#

We are using the Stripe SDK in backend and there are no direct usages to the PaymentIntent resource

steep zinc
#

Interesting, so you don't have a custom webpage where users can attempt to pay their invoices here?

#

It wouldn't be explicit, you would likely be making a call like confirmPayment in the client side js code

tepid briar
#

Possibly! Let me check

#

I'll let you know any evidence

#

Thanks a lot for your support!

steep zinc
#

Jairo - No such PaymentMethod