paypal / PayPal-Android-SDK

Accept PayPal and credit cards in your Android app
Other
825 stars 479 forks source link

UNAUTHORIZED_PAYMENT #421

Closed GemiDroid closed 7 years ago

GemiDroid commented 7 years ago

12

screenshot_2017-08-02-18-00-58 1

The issue in detail :

1- I have a business account for a company located in arabic country, they created their app on developer.PayPal then I created an business account and get Client ID, and make this in code

private static final String CONFIG_ENVIRONMENT = PayPalConfiguration.ENVIRONMENT_PRODUCTION;

private static PayPalConfiguration config = new PayPalConfiguration()
        .environment(CONFIG_ENVIRONMENT)
        .clientId(CLIENT_ID_LIVE)

2- I tried my Visa to check transaction but get in log like in img, also get message as :

randstraw commented 7 years ago

Direct Credit Card payments are not supported for all countries please see https://developer.paypal.com/docs/faq/#international-developer-questions.

What country is the REST App for? It could be an issue with the Live app settings.

Do your PayPal payments work?

GemiDroid commented 7 years ago

In developer.paypal country registered for Buyer and Merchant is USA , but Live account country is UAE (United Arab Emirates)

It works fine for SandBox and in Live not working

randstraw commented 7 years ago

The Merchant Account needs to go https://developer.paypal.com/developer/accountStatus/.

Then request to get Enabled for Direct Credit Cards in the Live column. image

GemiDroid commented 7 years ago

Note: Direct credit card processing is not available when you use REST APIs. Although your sandbox credentials work for testing, your live credentials do not work for direct credit card processing for your country.

randstraw commented 7 years ago

You should still be able to accept PayPal payments with this SDK if that is the case.

For Direct Credit Cards you might be able to see if you are eligible for Braintree https://www.braintreepayments.com/. Braintree is a PayPal company.

randstraw commented 7 years ago

Here are some instructions for disabling direct card payments https://github.com/paypal/PayPal-Android-SDK#disabling-direct-credit-card-payments in this SDK.

GemiDroid commented 7 years ago

If I disabled Direct Credit Cards in my app, is that mean that all client (Buyer) must have PayPal account to pay to Merchant ??

randstraw commented 7 years ago

Yes, I do not see Guest Checkout option in my testing.

GemiDroid commented 7 years ago

Please, to make sure that I understood well .. 1- If I need to provide DCC should use Braintree SDK not PayPal SDK ? 2- All buyers using my app and need to pay should have PayPal Account ?

randstraw commented 7 years ago

1- If I need to provide DCC should use Braintree SDK not PayPal SDK ?

Yes, but make sure you are eligible for credit card payments before integration work.

2- All buyers using my app and need to pay should have PayPal Account ?

From my testing that is the case, I do not see a Guest Checkout option.

GemiDroid commented 7 years ago

Thanks a lot @pp-randy and sorry if I interrupted you :)

randstraw commented 7 years ago

No problem. I hope you are able to get a solution figured out.