#enis.cajic
1 messages · Page 1 of 1 (latest)
Can you share the request ID (req_xxx) where you saw the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_aen2RVIcJbQZft
The payment method is used in Checkout Session: https://dashboard.stripe.com/test/payments/pi_3MZs0hJ6eUeCLTBY13fuf8J3
Once the payment method is used for payment without attaching the customer, it can't be attached to the customer
What is the best solution for me?
👋 taking over for my colleague. Let me catch up.
you need to recollect the payment details from your customer
Can I do it on webhook?
if you want to attach while paying you need to use setup_future_usage
in the case of Checkout Sessions it's this param https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
for tax calculation for example we have this address hierarchy https://stripe.com/docs/tax/customer-locations#address-hierarchy
So, I need to add it on session, and not on webhook
yes that's correct
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks, I will try right now