: How can I change stripe test to live?

1.4k views Asked by At

I created Stripe payment gateway with flutter it is working on test mode now, I want to change to Live Mode ( I've updated the publishableKey and the secret ) in the StripeOptions() I must change androidPayMode and merchantId ?, if should change then how it do? I can't find anything related to that.

static init() {
StripePayment.setOptions(StripeOptions(
    publishableKey:
        "my key",
    merchantId: "Test",
    androidPayMode: 'test'));

}

2

There are 2 answers

0
Nolan H On

From Stripe's perspective, changing from your test keys to live keys is all that is needed.

I'm not familiar with the other options so you'll have to ask the maintainers of whatever library you're using or provide more detail about where/how these are used.

1
Alvaro Jimenez Fernandez On

you need to change from your test keys to live keys and set androidPayMode to production like this:

StripePayment.setOptions(StripeOptions(
    publishableKey:"public live key",
         merchantId: 'merchant.thegreatestmarkeplace', //merchantId
         androidPayMode: 'production'));

it's working for me on Android (live mode)