Created
April 26, 2021 15:39
-
-
Save rhyskentish/09a2c6d74cc305f2570581e8930af3b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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