Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/transaction.kt Secret
Created Jan 2, 2019

Embed
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
You can’t perform that action at this time.