#d3levv
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.
👋 happy to help
a payment method doesn't get attached unless it's setup for future usage
Hi, I am currently setting it up for future use, the idea is that when user creates booking, it's not charged straight away unless seller approves the booking. What i am doing now is creating setup intent, then creating payment intent with the payment method created with the setup intent. The only issue now is that i wan't to remove that payment method after the seller approves booking to avoid unwanted charges so i am listening for the payment_intent.created event but, that doesn't return the payment method id
then you need to call the detach API https://stripe.com/docs/api/payment_methods/detach
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes I am aware of this, but the event doesn't return the payment method id, it returns paymentIntent id. So detaching it is a bit tricky and not to sure how to do it ?