#fabulousray_webhooks

1 messages ¡ Page 1 of 1 (latest)

dusk rivetBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1275352916814729241

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

quiet torrent
opal cloud
#

what's a fixture for?

#

sorry i'm a noob

quiet torrent
#

Okie this should describe the exact same issue

opal cloud
#

Request failed, status=400, body={
"error": {
"message": "The payment method you provided has already been attached to a customer.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_FTM3ffwFeQ1v5w?t=1724138939",
"type": "invalid_request_error"
}
}
context:
{
"_meta": {
"template_version": 0
},
"fixtures": [
{
"name": "customer",
"path": "/v1/customers/cus_Qgmd7a9FvrkjjB",
"method": "get"
},
{
"name": "payment_method",
"path": "/v1/payment_methods/pm_1PpmFdRsJfE0QDMT9u0bq7CL/attach",
"method": "post",
"params": {
"customer": "cus_Qgmd7a9FvrkjjB"
}
},
{
"name": "invoiceitem",
"path": "/v1/invoiceitems",
"method": "post",
"params": {
"amount": 2000,
"currency": "usd",
"customer": "cus_Qgmd7a9FvrkjjB"
}
},
{
"name": "invoice",
"path": "/v1/invoices",
"method": "post",
"params": {
"customer": "cus_Qgmd7a9FvrkjjB",
"pending_invoice_items_behavior": "include"
}
},
{
"name": "payment_intent",
"path": "/v1/payment_intents",
"method": "post",
"params": {
"amount": "${invoiceitem:amount}",
"currency": "${invoiceitem:currency}",
"customer": "cus_Qgmd7a9FvrkjjB",
"payment_method": "pm_1PpmFdRsJfE0QDMT9u0bq7CL",
"off_session": true,
"confirm": true
}
},
{
"name": "invoice_pay",
"path": "/v1/invoices/${invoice:id}/pay",
"method": "post"
}
]
}

this error happened when i ran my fixture with hardcoded test customers and also when i did the overrride command ,stripe trigger invoice.paid --override invoice:customer=cus_Qgmd7a9FvrkjjB. what's wrong?

#

Request failed, status=400, body={
"error": {
"message": "The PaymentMethod pm_1PpmFdRsJfE0QDMT9u0bq7CL does not belong to the Customer you supplied cus_Qgmd7a9FvrkjjB. Please use this PaymentMethod with the Customer that it belongs to instead.",
"param": "payment_method",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_jdFPfvAdGndj7J?t=1724139140",
"type": "invalid_request_error"
}
}
how would i allow the payment method to be associated with the customer?

quiet torrent
#

You would want to change the PaymetnMethod to a new one and attached to that Customer as well as well

dusk rivetBOT