Skip to content
This repository was archived by the owner on Mar 23, 2020. It is now read-only.
This repository was archived by the owner on Mar 23, 2020. It is now read-only.

Always returning AuthorizationCodeForNoNetworkEnvironment #12

Description

@geniuscd

I'm using react-native-paypal-wrapper: ^1.3.0,react-native: 0.53.0,iOS

I followed the instruction that you specified in the README file

import PayPal from 'react-native-paypal-wrapper';
const options = {
    merchantName : "COMPANY NME",
    merchantPrivacyPolicyUri: "https://link.com/privacy",
    merchantUserAgreementUri: "https://link.com/terms",
}
PayPal.initializeWithOptions(PayPal.SANDBOX, "<client_id here>", options);

Calling the future payment to get the authorization code

PayPal
 .obtainConsent()
 .then(authorization => console.log(authorization))
 .catch(error => console.log(error));

will always return the results of the NO NETWORK environment.

Client:
 environment: "mock"
 paypal_sdk_version : "2.16.1"
 platform : "iOS"
 product_name : "PayPal iOS SDK"
response:
 code : "AuthorizationCodeForNoNetworkEnvironment"
 response_type : "authorization_code"

any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions