我想将 Google Pay 集成到我的 Android 应用程序中。我试过this repo 。出现以下错误。
This merchant is not enabled for google pay
这是导致错误的一些代码。
public static final HashMap<String, String> PAYMENT_GATEWAY_TOKENIZATION_PARAMETERS = new HashMap<String, String>() {
put("gateway", "example"); // WHAT SHOULD I WIRTE INSTED OF EXAMPLE?
put("gatewayMerchantId", "MerchantIdexample"); //found from https://merchants.google.com
// Your processor may require additional parameters.
}
};
最佳答案
您需要将此添加到您的 list (在应用程序内部)::
<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true"/>
关于android - 如何整合谷歌支付?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54741754/