braintree / braintree_android

Braintree SDK for Android
https://developer.paypal.com/braintree/docs/start/hello-client/android/v4
MIT License
405 stars 232 forks source link

Store in Vault - behaviour changes #948

Open ivancarras opened 5 months ago

ivancarras commented 5 months ago

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

sarahkoop commented 4 months ago

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

ivancarras commented 4 months ago

Hi @sarahkoop we are using PayPalVaultRequest.

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