#romain_unexpected
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1253651894971400192
đ Have more to share? Add details, code, screenshots, videos, etc. below.
We don't know much about Woocommerce in this channel. Stripe Woocommerce is maintained by Woocommerce.
The error comes from your API
I invite you to reach out to their support channel and double check how are they making the calls
https://woocommerce.com/products/stripe/
Yes but it depends on how are they calling Stripe APIs
I can share the payload here
Here is the recommended Subscription integration to use:
https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements
Sorry but there is no need, as I mentioned above, we don't know much about Woocommerce and that's strongly depends on how Woocommerce is making the calls to Stripe API. I strongly encourage you to reach out to their support channel:
https://woocommerce.com/products/stripe/
Here is the payload. I redacted the source id and customer id for confidentialy reasons:
{
"confirmation_method": "automatic",
"description": "YesChef - Order 315921",
"metadata": {
"subscription_id": "234033",
"site_url": "https:",
"is_renewal": "true",
"customer_email": "damon_cartmell@att.net",
"customer_name": " ",
"is_gifter": "false",
"payment_method": "auto_renewal",
"order_id": "315921",
"plan": "Plus Annual membership",
"payment_type": "recurring",
"purchase": "Plus Annual membership",
"sub_id": "234033"
},
"payment_method_options": {
"card": {
"mandate_options": {
"interval_count": "1",
"reference": "315921",
"interval": "year",
"amount_type": "fixed",
"start_date": "1718733376",
"amount": "30000",
"supported_types": {
"0": "india"
}
}
}
},
"source": "src_1MX4v9H8gKqC...",
"currency": "usd",
"customer": "cus_NHeD76cZK...",
"off_session": "true",
"confirm": "true",
"amount": "30000",
"payment_method_types": {
"0": "card"
}
}
We have an in house team of developer, we don't need to reach out to Woocommerce. Please let me know why the following returns a 400 error on your side
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Sure: req_YQUeJetdLV1HMk
Checking..
Sources are used once at a time, and can be reused later.
Unless you attached to a customer.
This one is attached to the customer
This is a Legacy integration and the support for Source is no longer supported.
No, it was detached at 2024-04-17 19:40:05 UTC from your dashboard
Check this requestId: req_nJhFrU4OfNbASo
Why was it detached ?
I don't know, someone in your team detached it from your Stripe Dashboard.
The user who did that was kevin (usr_LNYPCCGTJIaeuH)
I'm checking our logs
Between, you need to start migrating to the new API methods as soon as possible
https://docs.stripe.com/payments/payment-methods/transitioning
Was this triggered from the Stripe dashboard ?
Yes
I don't see a button in the dashboard to do that
Do you have some documentation on how to manually detach a payment method from a user ?
Also, is it possible to reattach him to a payment method (from the dashboard or via the API) ?
Nope, this channel is for technical integration questions with Stripe API, don't know much about Dashboard, sorry, you can reach out to Stripe Support at https://support.stripe.com/contact for this.
You can try this via API: https://docs.corp.stripe.com/api/payment_methods/attach
Ok thanks