简体   繁体   English

Android应用内结算-如果付款失败,市场如何通知

[英]Android in-app billing - how does the market notify if a payment fails

I was implementing in-app billing and did not find documentation for the case where if the credit card that the user has configured with the market fails due to a reason say expired date/the user has maxed his card how does the market API notify our app of the failed transaction. 我正在实施应用内帐单,但没有找到有关以下情况的文档:如果用户在市场上配置的信用卡由于原因(例如过期日期)/用户已将其卡最大化而无法使用市场API通知我们失败交易的应用程序。

What is the standard practice in such cases. 在这种情况下,标准做法是什么?

Following scenario describes it better: Imagine a user opens the app, taps on an item to buy and then clicks on the accept and buy button on the checkout UI. 以下方案对其进行了更好的描述:假设用户打开了该应用程序,点击要购买的物品,然后单击结帐UI上的接受并购买按钮。 Now if the credit card associated with google play account of the user is expired, how will my app be notified? 现在,如果与该用户的Google Play帐户相关联的信用卡已过期,如何通知我的应用程序?

It won't get notified. 不会收到通知。 Payments are handled by the Google Play Store client, and if card verification, etc. fails it will show an error message. 付款由Google Play商店客户端处理,如果卡验证等失败,则会显示错误消息。 If you back off and return to the app (ie, your app) you will get a generic 'purchase failed', etc. error. 如果您退回并返回到应用程序(即您的应用程序),则会收到通用的“购买失败”等错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM