Skip to content

Instantly share code, notes, and snippets.

@rhyskentish
Created April 26, 2021 15:39
Show Gist options
  • Save rhyskentish/09a2c6d74cc305f2570581e8930af3b4 to your computer and use it in GitHub Desktop.
Save rhyskentish/09a2c6d74cc305f2570581e8930af3b4 to your computer and use it in GitHub Desktop.
val threeDSecureRequest = ThreeDSecureRequest()
.amount(YOUR_AMOUNT)
.email(EMAIL)
.billingAddress(ADDRESS)
.versionRequested(ThreeDSecureRequest.VERSION_2)
val googlePaymentRequest = GooglePaymentRequest()
.transactionInfo(
TransactionInfo.newBuilder()
.setTotalPrice(YOUR_AMOUNT)
.setTotalPriceStatus(WalletConstants.TOTAL_PRICE_STATUS_FINAL)
.setCurrencyCode(YOUR_CURRENCY_CODE)
.build()
)
.googleMerchantId(YOUR_MERCHANT_ID)
val dropInRequest = DropInRequest()
.clientToken(YOUR_TOKEN)
.collectDeviceData(true)
.disablePayPal()
.googlePaymentRequest(googlePaymentRequest)
.requestThreeDSecureVerification(true)
.threeDSecureRequest(threeDSecureRequest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment