#Kenny024

1 messages · Page 1 of 1 (latest)

abstract gulchBOT
ebon wedge
#

Hi 👋

I

celest sandal
#

hello!

ebon wedge
#

am not familiar with Bubble.ip

celest sandal
#

oh...

ebon wedge
#

But what requests are you making in your Stripe Account?

celest sandal
#

but, I think the problem comes from an API call I did and delte in the past

#

delete*

#

What I try to do is to charge the buyer, to keep is money waiting before sending it to the seller

#

I don't know if it's clear for you...

ebon wedge
#

I am a little confused. Could you describe what you are trying to do in terms of API requests?

For example:

  1. Create Customer
  2. Create Charge
    ...
celest sandal
#
  1. Create a charge
#

I already did an API call to create a customer

#

but I think Stripe can't identify it and always show me the error message I sent you

ebon wedge
celest sandal
#

Please, this is the request

#

here I underline the customer ID I always receive in the message error

#

It's strange because the customer account I used for the charge hasn't this customer ID

muted flax
#

Can you copy/paste the request ID so I can look it up on my end?

celest sandal
#

{
"line_items": {
"0": {
"price_data": {
"unit_amount": "2500",
"currency": "EUR",
"product_data": {
"description": "Ma pastaaq",
"name": "aly photo"
}
},
"quantity": "1"
}
},
"billing_address_collection": "auto",
"cancel_url": "https://ptpapp.be/version-test/content?Custom_Pic=1663275340373x411486305034698750",
"customer": "cus_MXvZeaLN9b7PYD",
"locale": "fr",
"payment_intent_data": {
"description": "Ma pastaaq",
"capture_method": "manual",
"setup_future_usage": "off_session"
},
"success_url": "https://ptpapp.be/version-test/content?Custom_Pic=1663275340373x411486305034698750&resume=1665692109894x279176637258703900",
"mode": "payment",
"payment_method_types": {
"0": "card"
}
}
Corps de la requête POST
{
"line_items": {
"0": {
"price_data": {
"unit_amount": "2500",
"currency": "EUR",
"product_data": {
"description": "Ma pastaaq",
"name": "aly photo"
}
},
"quantity": "1"
}
},
"billing_address_collection": "auto",
"cancel_url": "https://ptpapp.be/version-test/content?Custom_Pic=1663275340373x411486305034698750",
"customer": "cus_MXvZeaLN9b7PYD",
"locale": "fr",
"payment_intent_data": {
"description": "Ma pastaaq",
"capture_method": "manual",
"setup_future_usage": "off_session"
},
"success_url": "https://ptpapp.be/version-test/content?Custom_Pic=1663275340373x411486305034698750&resume=1665692109894x279176637258703900",
"mode": "payment",
"payment_method_types": {
"0": "card"
}
}

Bubble

Bubble introduces a new way to build a web application. It’s a no-code point-and-click programming tool. Bubble hosts all applications on its cloud platform.

Bubble

Bubble introduces a new way to build a web application. It’s a no-code point-and-click programming tool. Bubble hosts all applications on its cloud platform.

#

is this what you need?

muted flax
#

No, that is the payload. What I need is the request ID. Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request

It should look like this --> req_abc123

celest sandal
#

req_fxdfRqMp7uCc2C

#

please

muted flax
#

The customer you are trying to make the request for belongs to a different Stripe account. I would recommend checking with API keys you're using and making sure you're using the right ones for the right account

celest sandal
#

That's the right one, I just checked

#

It's not possible for you to delete this customer and the Stripe account he is linked too?

We used a first Stripe account but decided to delete it because our first integration was a mess. We wanted to started again from the scratch

muted flax
#

That customer is attached to a deleted account. So you need to create a new customer and use that customer ID instead

celest sandal
#

I did it
But to do it, I used on my app, the same user with the same email.

So I should try with another one?

muted flax
#

It doesn't matter if it has the same email. You need to create a whole new customer as a separate API call and make sure your integration is getting the new customer ID. Somewhere in your code, the Create charge API call is using the wrong ID.

celest sandal
#

ok thanks! I will do this

#

have a nice day