#Jessa-invalid_request
1 messages · Page 1 of 1 (latest)
Hi Jessa, can you check if you are using a customer object ID created in live mode?
yes i am using cust object ID in live
In that case, it won't work with request made with test mode key
Please use a live mode key instead.
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
is your staging using Stripe test mode, and production using Stripe live mode?
yes it is properly setup but the error still exists
can you double check if the right keys are used in test and live modes respectively?
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.
can you send me the request ID?
is there a way we can check and delete this specific customer ID cus_JOrjuHzzSwMvcQ on test data without deleting all its stripe data?
These two requests are made with test mode key, you might want to check your code again?
This customer is created in live mode, not test mode.
yes that customer is created in live mode, but same is also used in the test mode. because i cloned the prod data in staging including all the stripe IDs
I see, then in that case, you can delete the customer in test mode with the test mode customer ID.
okay will try it
i already deleted the customer ID in test mode but the error still occur in production
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
I'm using the right keys. May I ask where the token that is generated comes from?