#romain_unexpected

1 messages ¡ Page 1 of 1 (latest)

shrewd galeBOT
#

👋 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.

candid hare
#

We don't know much about Woocommerce in this channel. Stripe Woocommerce is maintained by Woocommerce.

short shell
#

The error comes from your API

candid hare
candid hare
short shell
#

I can share the payload here

candid hare
candid hare
short shell
#

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

candid hare
short shell
#

Sure: req_YQUeJetdLV1HMk

candid hare
#

Between, you need to migrate to the new PaymentMethods API and not using Sources

candid hare
#

Sources are used once at a time, and can be reused later.

#

Unless you attached to a customer.

short shell
#

This one is attached to the customer

candid hare
#

This is a Legacy integration and the support for Source is no longer supported.

candid hare
#

Check this requestId: req_nJhFrU4OfNbASo

short shell
#

Why was it detached ?

candid hare
#

I don't know, someone in your team detached it from your Stripe Dashboard.

#

The user who did that was kevin (usr_LNYPCCGTJIaeuH)

short shell
#

I'm checking our logs

candid hare
short shell
#

Was this triggered from the Stripe dashboard ?

candid hare
#

Yes

short shell
#

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) ?

candid hare
short shell
#

Ok thanks