braintree_android icon indicating copy to clipboard operation
braintree_android copied to clipboard

Store in Vault - behaviour changes

Open ivancarras opened this issue 1 year ago • 2 comments

Braintree SDK Version

4.40.1

Environment

Sandbox and Production

Android Version & Device

Any device even in iOS

Braintree dependencies

com.braintreepayments.api:paypal:4.40.1

Describe the bug

Expected behaviour: when you add a Paypal account this account is automatically stored in Vault regardless if the user finished the payment or not.

Current Behaviour: Now the Paypal account only it's stored in Vault when the user finished a transaction.

This behaviour was not happening in the past. We didn't update the Android SDK or the Backend SDK.

To reproduce

  1. Add a new Paypal account
  2. Verify the account is correctly added and the nonce is generated
  3. Go to the users Vault information and verify there is not Payment methods added

Expected behavior

When you add a Paypal account this account is automatically stored in Vault regardless if the user finished the payment or not.

Screenshots

No response

ivancarras avatar Mar 20 '24 12:03 ivancarras

Hi @ivancarras - For your PayPal integration are you using the PayPalCheckoutRequest or PayPalVaultRequest? Could you provide a code snippet of your request object?

sarahkoop avatar May 09 '24 15:05 sarahkoop

Hi @sarahkoop we are using PayPalVaultRequest.

fun launchAddPaypalFlow(activity: FragmentActivity, captchaToken: String?, listener: PayPalListener) {
        PayPalClient(activity, braintreeClient)
            .apply { setListener(listener) }
            .tokenizePayPalAccount(activity, PayPalVaultRequest())
    }

ivancarras avatar May 10 '24 15:05 ivancarras