要求完整的錢包:谷歌錢包,商家帳戶和沙箱
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