如何使多个项目购买请求,谷歌Play应用内结算功能多个、功能、项目、谷歌

2023-09-07 17:59:17 作者:像风漂泊八万里

我的工作中,我们出售各种虚拟物品的一个项目。我想说明这些虚拟物品,让他购买多个项目一次。但是,在应用程序内结算,一次只需要一个项目,accoring什么,我明白了。在谷歌的

I am working on a project where we sell variety of virtual goods. I want to show these virtual goods and let him buy multiple items at once. But the Google's in-app billing takes only one item at a time, accoring to what I understand.

Bundle request = makeRequestBundle("REQUEST_PURCHASE");
request.putString(Consts.BILLING_REQUEST_ITEM_ID, mProductId);

我如何调用该应用内结算API和一次传递多个项目的id?是允许的?

How do I call the in-app billing api and pass multiple item ids at once? Is that allowed?

推荐答案

这是不可能的那一刻,每件只单独购买,看看这个答案一种解决方法:

That's not possible at the moment, only separate purchases per item, check out this answer for a workaround:

Android应用程式内多次购买