Unauthorized device - payment from this device is prohibited

Launching the Paypal Sample app on Nexus4 - 4.3, using the PayPal SDK for Android. The sample works fine when the following code is added:

CONFIG_ENVIRONMENT = PaymentActivity.ENVIRONMENT_NO_NETWORK;

When switching to real money:

CONFIG_ENVIRONMENT = PaymentActivity.ENVIRONMENT_PRODUCTION;
CONFIG_CLIENT_ID = "Afa................c";
CONFIG_RECEIVER_EMAIL = "david@gmail.com";

I get the following error: "Payment from this device is not allowed", The following line is displayed in the log:

W/DefaultRequestDirector﹕ Authentication error: Unable to respond to any of these challenges: {}

what is the problem?

enter image description here

+4
source share
3 answers

PayPal. , , clientId. developer.paypal.com, . , . . GitHub.

, , , Android . 401, clientId/environment.

+1

, , ENVIRONMENT_PRODUCTION ENVIRONMENT_SANDBOX ( ) CONFIG_CLIENT_ID paypall

  • , , (EXTRA_PAYPAL_ENVIRONMENT). , ENVIRONMENT_PRODUCTION ENVIRONMENT_SANDBOX client_id.
0

Wi-Fi - . , .

  • Android-, .

:

<HTML><HEAD>
    <TITLE>Access Denied</TITLE>
    </HEAD><BODY>
    <H1>Access Denied</H1>

    You don't have permission to access "http&#58;&#47;&#47;api&#45;m&#46;sandbox&#46;paypal&#46;com&#47;v1&#47;oauth2&#47;token" on this server.<P>
    Reference&#32;&#35;18&#46;15367c68&#46;1564405918&#46;472e4813
    </BODY>
    </HTML>

:

enter image description here

0

All Articles