【发布时间】:2019-07-11 12:15:53
【问题描述】:
我想将 Google Pay 集成到我的 Android 应用程序中。我试过this repo。收到以下错误。
此商家未启用 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.
}
};
【问题讨论】:
-
错误解释清楚,你需要在google pay开一个商家账户。
-
我已经在google pay中开通并验证了商户账户
-
我认为您应该有一个需要放入代码中的商家 ID。你也这样做了吗?
-
是的,我已经这样做了。还有其他设置吗? // 我应该写什么 示例我写了商家名称,可以吗?
-
现在我面临 unexpected developer 错误
标签: android payment-gateway payment android-pay google-pay