Skip to content

Commit

Permalink
add conditional card vaulting for android
Browse files Browse the repository at this point in the history
  • Loading branch information
GFean committed Aug 31, 2021
1 parent 0f42369 commit cc2fd07
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public void show(final ReadableMap options, final Promise promise) {
if(options.getBoolean("cardDisabled")) {
dropInRequest.disableCard();
}

if(!options.getBoolean("savePaymentDetails")) {
dropInRequest.vaultCard(false);
}
if (options.hasKey("threeDSecure")) {
final ReadableMap threeDSecureOptions = options.getMap("threeDSecure");
if (!threeDSecureOptions.hasKey("amount")) {
Expand Down

0 comments on commit cc2fd07

Please sign in to comment.