Reputation: 3
we are using PayPalAndroidSDK.jar in Android to do the payment transaction directly from app. We already created a business account successfully and the app is working fine in sandbox.
But when we are changing it from Sandbox to Live and tried to do the payment using original LIVE US credit card, it's giving us below error:
request failure with http statusCode:401,exception:org.apache.http.client.HttpResponseException: Unauthorized
request failed with server response:{"name":"UNAUTHORIZED_PAYMENT","message":"Unauthorized payment.","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"d658b"}
We used below code to do the payment:
PayPalConfiguration config = new PayPalConfiguration()
.environment(PayPalConfiguration.ENVIRONMENT_PRODUCTION)
.clientId(CONFIG_CLIENT_ID)
.rememberUser(false);
We are using this client id in the app. This is the latest settings which we have in the account under app
It would be great if someone could help us in this.
Upvotes: 0
Views: 543
Reputation: 86
Is this a new integration?
"Unauthorized payment" could be that you dont have the permission to run Direct Credit Card payment REST API.
REST DCC will be available only to existing merchants and new merchants in Japan. The. You may option to use Website Payments Pro/ Payflow Pro to use Direct Credit Card Payment
Upvotes: 1