#Jahan Zaib

1 messages · Page 1 of 1 (latest)

stray zealotBOT
light tide
#

According to the error message, you are making this request with a Live key and not a secret key

dreamy wraith
#

No I used test stripe keys while creating the test reservation

light tide
#

Can you share the requestId?

light tide
dreamy wraith
#

Just give me a sec

#

I need to create a test reservation again. Just give me 5 minutes

light tide
#

Yes of course, take your time

dreamy wraith
#

I cannot send you request Id because I've no access to Stripe account

light tide
dreamy wraith
#

According to you what could be the possible reason for that message.

light tide
light tide
dreamy wraith
#

{
"id": "cus_O0ADSkKAEGYJ0W",
"object": "customer",
"address": null,
"balance": 0,
"created": 1685619708,
"currency": null,
"default_source": null,
"delinquent": false,
"description": null,
"discount": null,
"email": null,
"invoice_prefix": "13D95534",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {},
"name": null,
"next_invoice_sequence": 1,
"phone": null,
"preferred_locales": [],
"shipping": null,
"tax_exempt": "none",
"test_clock": null
}

light tide
dreamy wraith
light tide
#

before the json object you must be seeing lines, like:

date: Thu, 01 Jun ....
content-type: application/json
....
#

there is a line starting with request-id:

#

those are the response Headers.

dreamy wraith
#

yeah I know about it but there's no such request-id is showing to me.

light tide
#

Can you share the curl you are making ? and print all the output lines (hide your secret key)

dreamy wraith
#

I used this Curl call

light tide
#

delete the secret key

#

can you print all the response (headers and body here)?

dreamy wraith
#

This key is not ours

#

Alright

light tide
dreamy wraith
#

When I import this Curl it added Secret Key in username field

untold sparrow
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

dreamy wraith
#

Hi

#

Alright

untold sparrow
#

It's very hard to investigate without it.

dreamy wraith
#

When I Import the above curl in postman then it only given me this response

#

{
"id": "cus_O0ADSkKAEGYJ0W",
"object": "customer",
"address": null,
"balance": 0,
"created": 1685619708,
"currency": null,
"default_source": null,
"delinquent": false,
"description": null,
"discount": null,
"email": null,
"invoice_prefix": "13D95534",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {},
"name": null,
"next_invoice_sequence": 1,
"phone": null,
"preferred_locales": [],
"shipping": null,
"tax_exempt": "none",
"test_clock": null
}

#

Here it added the stripe secret key in Basic Auth username where I replace this with our test stripe secret key

#

I think I'm doing something wrong or not doing it correctly so can you guide me about it.

untold sparrow
#

What request has returned the original error?

#

paymentProviderMessage":"No such paymentmethod: ...

light tide
dreamy wraith
#

In headers this is showing

untold sparrow
#

That's request headers.

dreamy wraith
#

req_R0YBSWLvGD6Fj2

#

Now I got it you both were talking about response header not request header 🥺

untold sparrow
#

Sorry for misunderstanding.
This request seems to be successful, could you please get the request ID from the one that gives the error?

dreamy wraith
dreamy wraith
#

Here it's saying live mode keys were used but I used test keys for it.

abstract wave
#

👋 stepping in here

#

Catching up

untold sparrow
#

You will need to ask for the request ID from whoever owns the account, because otherwise it's very hard for us to help.

abstract wave
#

I think the most likely thing here is that you are mixing up keys. Do you have multiple accounts?

dreamy wraith
abstract wave
#

Yeah you will want to log into the account and double check you have the correct key associated with the correct account

#

Looks like a mix up somewhere as far as I can tell