Hello Stripe Developer Support,
I’m working on a PrestaShop module for a client and need help implementing an after-sale charge. The goal is to automatically charge a customer again on the thank-you page, using the same payment method from their last order.
🔹 What I’ve Tried:
Retrieved the PaymentIntent ID from the last order.
Attempted to reuse the same PaymentMethod but got this error:
❌ "This PaymentMethod was used without being attached to a Customer and may not be used again."
Also tried fetching the customer’s saved PaymentMethod, but sometimes it doesn’t exist.
❓ My Questions:
1️⃣ What are the necessary parameters I should save when processing the first payment?
2️⃣ How can I correctly charge the customer again using the same payment method?
3️⃣ Should I use SetupIntents to store payment details upfront for future payments?
I’d really appreciate any guidance or best practices for handling this! Thanks in advance.
Top comments (0)