[英]Payment method for google play subscriptions?
I am using google play subscription services for my app.But when any use or customer tries to pay for my subscription with any given payment method.It shows -我正在为我的应用程序使用 google play 订阅服务。但是当任何用户或客户尝试使用任何给定的付款方式支付我的订阅费用时。它显示 -
Unavailable for this purchase.
Only I can pay with Google play account money.只有我可以用 Google Play 帐户的钱付款。
I tried all method on different mobiles.我在不同的手机上尝试了所有方法。 But problem is same.但问题是一样的。
I am using standard code given on google developers site.我正在使用谷歌开发者网站上给出的标准代码。
private BillingClient billingClient=BillingClient.newBuilder(activity)
.setListener(this).build();
billingClient.startConnection(new BillingClientStateListener() {
@Override
public void onBillingSetupFinished(BillingResult billingResult) {
if (billingResult.getResponseCode() == BillingResponse.OK) {
}
}
@Override
public void onBillingServiceDisconnected() {
}
});
I want to enable all payment methods for my app.我想为我的应用启用所有付款方式。
Try to add enablePendingPurchases(), so尝试添加 enablePendingPurchases(),所以
private BillingClient billing_client = BillingClient.newBuilder( this ).enablePendingPurchases().setListener(...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.