#_kamih_
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kamih-account-support, 3 days ago, 8 messages
Has the payment intent succeeded? Can you share the example Payment Intent (pi_xxx) you would like to detach the payment method from?
Hi River. Here's my use case: I'm switching my store to let users choose a payment method before I create the PI.
If a user chooses wechat pay for example, and brings up the modal, but decides that they don't want or can't use this, they close the modal and go back to the first buy page, and select a different method.
I'm trying to update the PI isntead of creating a new one, and in this instance, I receive this error:
The allowed types provided (cashapp) are incompatible with the attached PaymentMethod on the PaymentIntent. Please replace the PaymentMethod first or include wechat_pay in the allowed types.
here's the test pi: pi_3OEP9WEib9TdzxSq0rThj6Iv
Can you try updating the payment_method of the payment intent to empty string? It should remove the payment method: https://stripe.com/docs/api/payment_intents/update#update_payment_intent-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
let me try!
You passed an empty string for 'payment_method'. We assume empty values are an attempt to unset a parameter; however 'payment_method' cannot be unset. You should remove 'payment_method' from your request or supply a non-empty value.
oops
I guess I should just abandon the pi and create a new one?
Yup! You can cancel the old Payment Intent and create a new one