: 如何将stripe test改为live?

sac*_*tha 2 payment-gateway stripe-payments flutter wallet android-inapp-purchase

我用 flutter 创建了 Stripe 支付网关,它现在正在测试模式下工作,我想在 StripeOptions() 中更改为实时模式(我已经更新了publishableKey和秘密)我必须更改androidPayModemerchantId?,如果应该更改那么怎么办?我找不到任何与此相关的内容。

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

}

小智 5

您需要将测试密钥更改为实时密钥,并将 androidPayMode 设置为生产模式,如下所示:

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

它在 Android 上对我有用(实时模式)