#karimaali_59426
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.
- karimaali_59426, 5 days ago, 5 messages
👋 happy to help
you need to follow this doc https://stripe.com/docs/payments/save-during-payment
i use this https://stripe.com/docs/elements/express-checkout-element and alredy created payment intent ,then retrived the payment method but i can't repay i got those errors
POST /v1/payment_methods/xxxx/attach
invalid_request_error
This PaymentMethod was previously used without being attached to a Customer or was detached from a Customer, and may not be used again.
POST /v1/invoices
invalid_request_error - payment_method
The customer does not have a payment method with the ID pm_1ObrsfJ3NxYTvphVhos6B2Fl. The payment method must be attached to the customer.
in that case you just need to have the PI created with a setup_future_usage: 'off_session' as explained in this doc https://stripe.com/docs/payments/save-and-reuse