braintree / braintree_android

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

SDK migration error "This transaction has been declined In order to comply with international regulations" #959

Closed olessavluk closed 6 months ago

olessavluk commented 6 months ago

Braintree SDK Version

4.41.0

Environment

Production

Android Version & Device

No response

Braintree dependencies

+--- project :ekreative_react-native-braintree
|    +--- com.braintreepayments.api:data-collector:4.41.0
|    |    +--- com.braintreepayments.api:braintree-core:4.41.0
|    |    |    +--- com.braintreepayments.api:browser-switch:2.6.1
|    |    |    +--- com.braintreepayments.api:shared-utils:4.41.0
|    |    \--- com.braintreepayments.api:paypal-data-collector:4.41.0
|    |         +--- com.braintreepayments.api:braintree-core:4.41.0 (*)
|    +--- com.braintreepayments.api:google-pay:4.41.0
|    |    +--- com.braintreepayments.api:braintree-core:4.41.0 (*)
|    |    +--- com.braintreepayments.api:paypal:4.41.0
|    |    |    +--- com.braintreepayments.api:braintree-core:4.41.0 (*)
|    |    |    \--- com.braintreepayments.api:paypal-data-collector:4.41.0 (*)
|    |    +--- com.braintreepayments.api:card:4.41.0
|    |    |    +--- com.braintreepayments.api:braintree-core:4.41.0 (*)
|    +--- com.braintreepayments.api:paypal:4.41.0 (*)
|    +--- com.braintreepayments.api:three-d-secure:4.41.0
|    |    +--- com.braintreepayments.api:braintree-core:4.41.0 (*)
|    |    +--- com.braintreepayments.api:card:4.41.0 (*)
|    \--- com.braintreepayments.api:card:4.41.0 (*)

Describe the bug

Following app rejection by Google I've tried upgrading SDK. Using it Sandbox payments are working fine, but Production always rejected with messsage:

This transaction has been declined In order to comply with international regulations

Didn't found anything in migration guide, is there some settings that need to be changed inside Developer Dashboard? Or any way I can debug what is the reason

To reproduce

Old SDK usage - https://github.com/smarkets/react-native-paypal/blob/master/android/src/main/java/com/smarkets/paypal/RNPaypalModule.java#L45

New usage, that works only in Sandbox account - https://github.com/ekreative/react-native-braintree/blob/master/android/src/main/java/com/ekreative/reactnativebraintree/RNBraintreeModule.java#L131

Expected behavior

show payment dialog

Screenshots

image_720

sshropshire commented 6 months ago

Hi @olessavluk this may be out of scope for the SDK team. The best path forward will be to follow up with our support team so they can provide direct support for your merchant account.

Closing this for now.

olessavluk commented 6 months ago

just in case someone will google this later, resolved by using different intent:

on android: request.setIntent(PayPalPaymentIntent.SALE);

and iOS: request.intent = BTPayPalRequestIntentSale