#Jessa-invalid_request

1 messages · Page 1 of 1 (latest)

radiant crypt
#

Hi Jessa, can you check if you are using a customer object ID created in live mode?

versed loom
#

yes i am using cust object ID in live

radiant crypt
#

In that case, it won't work with request made with test mode key

#

Please use a live mode key instead.

versed loom
#

I am getting an error message, "Invalid Card Details" when we are adding credit card details on both staging and live.I suspected that maybe because I use same account and cust ID in test and live. I remove" the Stripe user accounts in Staging DB so that I can setup new Staging Stripe accounts/ID's that don't use the production account ID's. It works now on the test env but same error happens in prod

radiant crypt
#

is your staging using Stripe test mode, and production using Stripe live mode?

versed loom
#

yes it is properly setup but the error still exists

radiant crypt
#

can you double check if the right keys are used in test and live modes respectively?

versed loom
#

yup, the right keys are used for each mode properly. So we use stripe in our app, it looks to me like in the PROD app, when adding or editing a card, it is sending the request to stripe test where it process correctly but then the response is going to the stripe prod where it throws an error because it is a test token being returned.

#

I can see when I add my live card to production, it is being added to the test data, not prod data -- get error message on prod and success message on staging.

radiant crypt
#

can you send me the request ID?

versed loom
#

req_jlVqDs56Pzcp4M

#

req_DCRYGfxI3RVEIM

versed loom
#

is there a way we can check and delete this specific customer ID cus_JOrjuHzzSwMvcQ on test data without deleting all its stripe data?

radiant crypt
radiant crypt
versed loom
radiant crypt
#

I see, then in that case, you can delete the customer in test mode with the test mode customer ID.

versed loom
#

okay will try it

#

i already deleted the customer ID in test mode but the error still occur in production

radiant crypt
#

I do not think deleting the customer in test mode can resolve the problem. Please check again if you are using the right key, alternatively you can generate new key from the dashboard

versed loom
#

I'm using the right keys. May I ask where the token that is generated comes from?