要求完整的钱包:谷歌钱包,商家帐户和沙箱
FullWalletRequest fullWalletRequest = FullWalletRequest.newBuilder()
.setGoogleTransactionId(googleTransactionId)
.setCart(Cart.newBuilder()
.setCurrencyCode(Constants.CURRENCY_CODE_USD)
.setTotalPrice(toDollars(context, itemInfo.getTotalPrice()))
.addLineItem(LineItem.newBuilder()
.setCurrencyCode(Constants.CURRENCY_CODE_USD)
.setDescription(itemInfo.name)
.setQuantity("1")
.setUnitPrice(toDollars(context, itemInfo.priceMicros))
.setTotalPrice(toDollars(context, itemInfo.priceMicros))
.build())
.addLineItem(LineItem.newBuilder()
.setCurrencyCode(Constants.CURRENCY_CODE_USD)
.setDescription(Constants.DESCRIPTION_LINE_ITEM_SHIPPING)
.setRole(LineItem.Role.SHIPPING)
.setTotalPrice(toDollars(context, itemInfo.shippingPriceMicros))
.build())
.addLineItem(LineItem.newBuilder()
.setCurrencyCode(Constants.CURRENCY_CODE_USD)
.setDescription(Constants.DESCRIPTION_LINE_ITEM_TAX)
.setRole(LineItem.Role.TAX)
.setTotalPrice(toDollars(context, itemInfo.taxMicros))
.build())
.build())
.build();
通知谷歌电子钱包中的事务处理:
Wallet.Payments.notifyTransactionStatus(mGoogleApiClient,
WalletUtil.createNotifyTransactionStatusRequest(fullWallet.getGoogleTransactionId(),
NotifyTransactionStatusRequest.Status.SUCCESS));
现在它显示交易成功。但是现在我有以下问题。
- 如何将金额从谷歌钱包转移到商家帐户?
- 任何方式将谷歌钱包之间的金额转移到商人帐户?
- 是否有任何沙箱可用于谷歌钱包商家帐户?
如何将商家帐户与应用程序集成?有没有任何代码?
在此先感谢。
我使用Braintree,现在Android支付支持在那里,我们必须 从我们的服务器1生成客户端令牌 2-添加带braintree标记化参数的掩蔽钱包请求。 3生成付款方式现金(收费标记) 4 - 发送给服务器以收取卡。 5-Get回应,你完成了。 – Pranav 2015-09-11 06:01:47