Skip to content

Instantly share code, notes, and snippets.

Created Jan 2, 2019
What would you like to do?
val transactionInfo = JSONObject().apply {
put("totalPrice", "12.34")
put("totalPriceStatus", "FINAL")
put("currencyCode", "USD")
val paymentDataRequest = GooglePay.baseRequest.apply {
put("allowedPaymentMethods", JSONArray().put(cardPaymentMethod))
put("transactionInfo", transactionInfo)
put("merchantInfo", merchantInfo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment