#seekay369-testmode

1 messages · Page 1 of 1 (latest)

cedar wingBOT
jovial spoke
#

Yeah you're referring to a test mode payment method

#

If you create a payment method in test mode, you can't reference it in live mode

lethal copper
#

What do you mean?

#

how to switch to live mode?

jovial spoke
#

Test mode payment methods can't be used in live mode

#

You'd need to create the payment method using your live keys

#

In order to use it in live mode

lethal copper
#

Yes I am using my live key....

#

to create payment method

#

it is weird

#

const stripeApa = useStripe();
const { error, paymentMethod } = await stripeApa.createPaymentMethod({
type: 'card',
card: cardNumberElement,
//billing_details: billingDetails,
billing_details: {
email: values.email, // Replace with the actual email address
},
});

#

I using sk_live and pk_live key

jovial spoke
#

Can you paste the payment method id in here so i can check

lethal copper
jovial spoke
#

Can you paste the payment method id in here

#

So I don't have to manually type it out from your screenshot

lethal copper
#

pm_1Ng7y9Do5Duz2o7HGdYfeodm

jovial spoke
#

You're using your test key

lethal copper
#

Sorry, my test key is not *****YfSDUv

#

Why like that

jovial spoke
#

That's what you're using to make the request

lethal copper
#

Can already

#

Thanks you