Git Product home page Git Product logo

react-native-paypal's People

Contributors

b4nn3r avatar dkfl1995 avatar endless728 avatar jtang0506 avatar lutfidemirci avatar mahmudhamid avatar markneh avatar miyabi avatar nicholasbertazzonaga avatar nzankich avatar riso avatar yonom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-paypal's Issues

Issue with Braintree

In file included from /Users/kedardave/QualPros/node_modules/react-native-paypal/ios/RNPaypal.m:2: /Users/kedardave/QualPros/node_modules/react-native-paypal/ios/RNPaypal.h:8:9: fatal error: 'BraintreeCore.h' file not found #import "BraintreeCore.h"

Getting the above error. Please help

Dependancies:
"react-native-paypal": "github:smarkets/react-native-paypal"

Problem with paypal login

Hi, i have an issue when i proceed with authentication.

The errore message is "information isn't correct" but the credential are correct!

I'm in sandbox environment

Simulator Screen Shot - iPhone 11 - 2020-06-26 at 12 36 58

Different Currency

I am having a problem when they have different currency.. i am having this kind of error "The currency of this PayPal transaction must match the currency of the merchant account"?

App crashes with no error on iOS

App crashed when I clicked proceed with sandbox purchase.

Simulator Screen Shot - iPhone 11 - 2020-09-18 at 17 16 59

I get this on the Xcode console

2020-09-18 17:16:47.619043-0700 vitGroceryShop[11217:175626] -canOpenURL: failed for URL: "com.venmo.touch.v2://x-callback-url/vzero/auth" - error: "This app is not allowed to query for scheme com.venmo.touch.v2" 2020-09-18 17:16:49.632071-0700 vitGroceryShop[11217:175626] ClientMetadataID: EC-HERMES-SANDBOX-EC-TOKEN 2020-09-18 17:16:50.296588-0700 vitGroceryShop[11217:177593] PayPal-Debug-Id is b9720555ca484 2020-09-18 17:16:50.563816-0700 vitGroceryShop[11217:176209] [AXRuntimeCommon] Unknown client: vitGroceryShop 2020-09-18 17:17:52.211927-0700 vitGroceryShop[11217:175626] -[NSNull length]: unrecognized selector sent to instance 0x7fff8062d9d0 2020-09-18 17:17:52.294588-0700 vitGroceryShop[11217:175626] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance 0x7fff8062d9d0' *** First throw call stack: ( 0 CoreFoundation 0x00007fff23e3cf0e __exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff50ba89b2 objc_exception_throw + 48 2 CoreFoundation 0x00007fff23e5dc34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 3 CoreFoundation 0x00007fff23e4190c ___forwarding___ + 1436 4 CoreFoundation 0x00007fff23e43bf8 _CF_forwarding_prep_0 + 120 5 vitGroceryShop 0x00000001097f1898 +[PPOTCore isValidURLAction:] + 488 6 vitGroceryShop 0x00000001097f0ecb +[PPOTCore canParseURL:sourceApplication:] + 171 7 vitGroceryShop 0x000000010973252a +[BTPayPalDriver canHandleAppSwitchReturnURL:sourceApplication:] + 122 8 vitGroceryShop 0x00000001096f7712 -[BTAppSwitch handleOpenURL:sourceApplication:] + 418 9 vitGroceryShop 0x00000001096f7401 +[BTAppSwitch handleOpenURL:sourceApplication:] + 129 10 vitGroceryShop 0x000000010972e235 __39-[BTPayPalDriver performSwitchRequest:]_block_invoke + 565 11 SafariServices 0x00007fff2b97af1f -[SFAuthenticationSession safariViewController:hostApplicationOpenURL:] + 114 12 SafariServices 0x00007fff2b9c2766 -[SFAuthenticationViewController remoteViewController:hostApplicationOpenURL:] + 93 13 SafariServices 0x00007fff2ba135b3 -[SFBrowserRemoteViewController willOpenURLInHostApplication:] + 68 14 CoreFoundation 0x00007fff23e43e8c __invoking___ + 140 15 CoreFoundation 0x00007fff23e41071 -[NSInvocation invoke] + 321 16 libdispatch.dylib 0x000000011042ee8e _dispatch_client_callout + 8 17 libdispatch.dylib 0x0000000110431da2 _dispatch_block_invoke_direct + 300 18 FrontBoardServices 0x00007fff36cf86e9 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30 19 FrontBoardServices 0x00007fff36cf83d7 -[FBSSerialQueue _queue_performNextIfPossible] + 441 20 FrontBoardServices 0x00007fff36cf88e6 -[FBSSerialQueue _performNextFromRunLoopSource] + 22 21 CoreFoundation 0x00007fff23da0d31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 22 CoreFoundation 0x00007fff23da0c5c __CFRunLoopDoSource0 + 76 23 CoreFoundation 0x00007fff23da0434 __CFRunLoopDoSources0 + 180 24 CoreFoundation 0x00007fff23d9b02e __CFRunLoopRun + 974 25 CoreFoundation 0x00007fff23d9a944 CFRunLoopRunSpecific + 404 26 GraphicsServices 0x00007fff38ba6c1a GSEventRunModal + 139 27 UIKitCore 0x00007fff48c8b9ec UIApplicationMain + 1605 28 vitGroceryShop 0x0000000109574e10 main + 112 29 libdyld.dylib 0x00007fff51a231fd start + 1 30 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

Getting Error: Error requesting one time payment

Hi,
Firsty, thanks for this library.

I'm in sandbox environment. After getting client token from my server, I'm getting this error when processing requestOneTimePayment => Error: Error requesting one time payment.

Here is my code :
` try {

  const token =  await PayPalService.getClientToken();
  const {
    nonce,
    payerId,
    email,
    firstName,
    lastName,
    phone 
  } = await requestOneTimePayment(
    token,
    {
      amount: '5', // required
      // any PayPal supported currency (see here: https://developer.paypal.com/docs/integration/direct/rest/currency-codes/#paypal-account-payments)
      currency: 'USD',
      // any PayPal supported locale (see here: https://braintree.github.io/braintree_ios/Classes/BTPayPalRequest.html#/c:objc(cs)BTPayPalRequest(py)localeCode)
      localeCode: 'en_US', 
      shippingAddressRequired: false,
      userAction: 'commit', // display 'Pay Now' on the PayPal review page
      // one of 'authorize', 'sale', 'order'. defaults to 'authorize'. see details here: https://developer.paypal.com/docs/api/payments/v1/#payment-create-request-body
      intent: 'authorize', 
    }
  );
  console.log('nonce : '+nonce);
  console.log('payerId : '+payerId);
  
} catch (error) {
  console.log('error : '+error);
}`

Please any help ?
Thanks.

type error :null is not objeckt RnpayPel.requestOneTimePayment

I am trying to implement react-native-paypal but when I call requestOneTimePayment method, I am getting error message like:
type error :null is not objeckt RnpayPel.requestOneTimePayment

image

"react": "16.9.0",
"react-native": "0.61.5",
"react-native-paypal": "^2.1.0",

OS: Android

I have followed the steps of the Readme. In the readme

my manifest
image

Transaction problems in Sandbox Accounts

I have a problem when making a payment, at the end it performs everything successfully (I have the data of nonce, payerId, email, firstName, lastName, phone) but the money is not discounted in the Sandbox account, I already made all the configurations and I have not had no errors

I want to know if I need an extra configuration in paypal, braintree or react native

Billing and shipping address.

Can we pass billing and shipping address externally to PayPal? Means I had a seperate screen to get the shipping address user will enter the shipping address there and I want to send these address to Paypal. Is it possible?

Or PayPal has its own interface to collect billing and shipping address.

Do this library support billing address and shipping address?

Migrating to new version

Migrating to new version that is 4.0.1 receiving following error in android and ios both
"btdatacollector.h' file not found in react native"

Transaction Not Reflecting in sandbox account .

I have followed other questions and downgraded [email protected] . still doesn't sees paypal payment is done(PROMPT) . but now i am getting response in promise(payerId , nonce , payer email .. etc ) not getting transactionId in response.But , on opening the sandbox account i am unable to see any transaction record done over there.

@nzankich

[Android] - java.lang.NoClassDefFoundError: Failed resolution of: Lcom/braintreepayments/api/BraintreeFragment

Hi, I'm getting the Exception in HostObject::get: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/braintreepayments/api/BraintreeFragment; on Android. I didn't setup iOS yet.
It happens whenever I try to call the requestOneTimePayment.

I did:

  • yarn add react-native-paypal
  • react-native link react-native-paypal
  • react-native run-android

Also tried the manual steps shown for android, but the error persists.

here is the peace I'm trying to exectue:

import React, { PureComponent } from 'react';
import { View } from 'react-native';
import { requestOneTimePayment } from 'react-native-paypal';
import Button from '../button/Button';

class PayPal extends PureComponent {
  handlePayPal = async () => {
    const token = 'TOKEN';
    // Request Payment with Token
    const { nonce } = await requestOneTimePayment(token, {
      amount: '250', // required
      // any PayPal supported currency (see here: https://developer.paypal.com/docs/integration/direct/rest/currency-codes/#paypal-account-payments)
      currency: 'USD',
      // any PayPal supported locale (see here: https://braintree.github.io/braintree_ios/Classes/BTPayPalRequest.html#/c:objc(cs)BTPayPalRequest(py)localeCode)
      localeCode: 'en_US',
      shippingAddressRequired: false,
      userAction: 'commit', // display 'Pay Now' on the PayPal review page
      // one of 'authorize', 'sale', 'order'. defaults to 'authorize'. see details here: https://developer.paypal.com/docs/api/payments/v1/#payment-create-request-body
      intent: 'authorize',
    });
    console.log(nonce)
  };

  render() {
    return (
      <View>
        <Button onPress={this.handlePayPal} label="PAYPAL" />
      </View>
    );
  }
}

export default PayPal;

Screenshot 2019-07-19 at 17 22 18

Can someone help me with this?
Thanks in advance!

[ANDROID] Promise is not resolving on second time paying.

Hi guys.
Few days ago started with upgrading BT SDK from 2.17 to latest 3.14.2 as faced Google Play team warning like related to this issue.
Found really disgusting issue right there then after upgrading. If you use like new 3.14.2 BT SDK version promise on requestOneTimePayment native method still remains the same each time you trigger this method. This lead to promise to be useless as it won't run resolve or reject on second request and then. HashCode of promise still remains the same. As on BT SDK v2.17 promise has different HashCode each time you trigger requestOneTimePayment method.

valid token from your server

in the usage section, I show the line to create client token for Braintree. I checked the Braintree document and don't understand where am I going to put the code for getting the client token.

ANDROID: minSdkVersion error - 21

Reproduce:

  1. Created a new react native application using npx command.
  2. Install this plugin using: npm install react-native-paypal --save
  3. Follow all the instructions.

Error:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [:react-native-paypal] /Users/apple/Desktop/react/paypal/node_modules/react-native-paypal/android/build/intermediates/library_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="com.smarkets.paypal" to force usage (may lead to runtime failures)

App dependencies:

"dependencies": {
"react": "16.13.1",
"react-native": "0.63.3",
"react-native-paypal": "^3.1.1"
}

Can you guys help me out on this ?

Android: requestOneTimePayment appears to not be called

Hello!

So I followed everything in the ReadMe. I verified everything listed in MainApplication.java, settings.gradle & build.gradle. I ran the command to link the library. Everything works as expected on iOS. Yet, when I try it on Android, it seems to keep on loading.

Here's how I'm using it:

getPaypal = async () => {
  try {
    this.setState({ isLoading: true });

    // Get Token
    const tokenResponse = await axios.get(`${API_GOES_HERE}/client_token`);
    const { client_token: token } = tokenResponse.data;

    console.log('Client Token', token);

    // Request Payment with Token
    const { nonce } = await requestOneTimePayment(token, {
      amount: '250', // required
      // any PayPal supported currency (see here: https://developer.paypal.com/docs/integration/direct/rest/currency-codes/#paypal-account-payments)
      currency: 'USD',
      // any PayPal supported locale (see here: https://braintree.github.io/braintree_ios/Classes/BTPayPalRequest.html#/c:objc(cs)BTPayPalRequest(py)localeCode)
      localeCode: 'en_US',
      shippingAddressRequired: false,
      userAction: 'commit', // display 'Pay Now' on the PayPal review page
      // one of 'authorize', 'sale', 'order'. defaults to 'authorize'. see details here: https://developer.paypal.com/docs/api/payments/v1/#payment-create-request-body
      intent: 'authorize',
    });

    console.log('Payment Nonce', nonce);

    // Create Charge
    const payload = { nonce, amount: '250' };
    const headers = { Accept: 'application/json', 'Content-Type': 'application/json' };
    const chargeResponse = await axios.post(`${API_GOES_HERE}/charge`, payload, { headers });

    console.log('Charge Response', JSON.stringify(chargeResponse.data, null, 2));

    this.setState({ paymentConfirm: 'approved' });
  } catch (error) {
    Alert.alert('Whoops! Something went wrong. Please retrace your steps and try again');
    console.log(error);
  } finally {
    this.setState({ isLoading: false });
  }
};

The token shows up in the console log.
isLoading stays true, "Payment Nonce" never gets console logged, so I'm assuming that requestOneTimePayment is never finishing up.

Is there something I could be missing or any other recommendations?

Thanks!

Can't find variable: Symbol

I followed the documentation and Iam trying to set a new payment but getting the above error and my code is as below

componentWillMount() {
    gateway = braintree.connect({
      environment: braintree.Environment.Sandbox,
      merchantId: "xxxx",
      publicKey: "xxxx",
      privateKey: "xxxx"
    });
  }
  buttonPress(token) {
    var clientToken = null
    gateway.clientToken.generate({}, function (err, response) {
      clientToken = response.clientToken
    });
    try {
      const {
        nonce,
        payerId,
        email,
        firstName,
        lastName,
        phone
      } = requestOneTimePayment(
        clientToken,
        {
          amount: '500', // required
          // any PayPal supported currency (see here: https://developer.paypal.com/docs/integration/direct/rest/currency-codes/#paypal-account-payments)
          currency: 'INR',
          // any PayPal supported locale (see here: https://braintree.github.io/braintree_ios/Classes/BTPayPalRequest.html#/c:objc(cs)BTPayPalRequest(py)localeCode)
          localeCode: 'zh_XC',
          shippingAddressRequired: false,
          userAction: 'commit', // display 'Pay Now' on the PayPal review page
          // one of 'authorize', 'sale', 'order'. defaults to 'authorize'. see details here: https://developer.paypal.com/docs/api/payments/v1/#payment-create-request-body
          intent: 'authorize',
        }
      );
    }
    catch (e) {
      Alert.alert(e);
    }

and the buttonPress() function is called on press of a button.

The error is located in braintree\lib\braintree\transaction.js

could not invoke rnpaypal.requestonetimepayment

hello, I've been trying to use your module on android, but when following your example I am getting

could not invoke rnpaypal.requestonetimepayment

null

No static method newInstance(Landroid/app/Activity;Ljava/lang/String;)...

I was checking if it was something with mostly automatic installation, but when I try to do it manually I am getting a warrning it's being imported twice, so I gues this is not the problem

please advice
thanks, dan

Could not invoke RNPaypal.requestOneTimePayment

Hi,
I am getting error message like: Could not invoke RNPaypal.requestOneTimePayment only in android (working on ios),
I did as written in the manual installation in the readme file, except from the dependency in buld.gradle:
implementation "com.braintreepayments.api:braintree:2.17.0" (otherwise it won't even open the app)

any idea?

requestOneTimePayment

try{
const {
nonce,
payerId,
email,
firstName,
lastName,
phone
} = await requestOneTimePayment(
token,
{
amount: cartTotalPrice.toString() , // required
// // any PayPal supported currency (see here: https://developer.paypal.com/docs/integration/direct/rest/currency-codes/#paypal-account-payments)
currency: 'GBP',
//
localeCode: 'en_GB',
// shippingAddressRequired: false,
userAction: 'commit', // display 'Pay Now' on the PayPal review page
intent: 'authorize',
}
).then( response => {setSuccess (response); consolel.log("successfully gort response .. ") } )
// .catch((e) => {
// console.log("Error")
// console.log(e.message)
// })
.catch( error => { console.log("Error => " , error.message)} )

    }catch (e){
        console.log("Request One Time PAyment -> " ,JSON.stringify( e ))
    }

The above is my code and i dont get promise running . Although i do all the transaction . webview closes without showing payment is done . And i couldnot get trace any teansaction being done in sandbox account .

ANY HELP WILL BE REALLY APPRECIATABLE . THANKS .

what is payerId and nonce in this const and how can i get this

const {
nonce,
payerId,
email,
firstName,
lastName,
phone
} = await requestOneTimePayment(
token,
{
amount: '5', // required
// any PayPal supported currency (see here: https://developer.paypal.com/docs/integration/direct/rest/currency-codes/#paypal-account-payments)
currency: 'GBP',
// any PayPal supported locale (see here: https://braintree.github.io/braintree_ios/Classes/BTPayPalRequest.html#/c:objc(cs)BTPayPalRequest(py)localeCode)
localeCode: 'en_GB',
shippingAddressRequired: false,
userAction: 'commit', // display 'Pay Now' on the PayPal review page
// one of 'authorize', 'sale', 'order'. defaults to 'authorize'. see details here: https://developer.paypal.com/docs/api/payments/v1/#payment-create-request-body
intent: 'authorize',
}
);

Transaction is not reflecting in both Merchant and Payer

I got the response with no error but the transaction is not reflecting in both Merchant and Payer transaction history. The requestOneTimePayment return the details of the Payer. Email, first name, last name, nonce, and playerId. But when I tried to view both of sandbox account there is no history of transaction happened.

requestOneTimePayment( 
  'TOKEN', 
  { 
    amount: '5', 
    currency: 'USD', 
    localeCode: 'en_US', 
    shippingAddressRequired: false, 
    userAction: 'commit', 
    intent: 'sale', 
  } 
)

Already tried to transact using Paypal, VISA, and bank account.

Payment via PayPal always fails in ios

As the title says, my payment (in iOS) always fails. While apparently, the payment in android succeeds.
Always give a message "Unknown or expired payment_method_nonce."

ERROR: Unable to resolve dependency for ':react-native-paypal@debug/compileClasspath'

Hi

I'm getting this issue on trying to install the library on android.

Screen Shot 2020-11-12 at 10 54 43

Here is my main build.gradle

`// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 21
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual moduxle build.gradle files
}
}

allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven { url 'https://maven.google.com' }
maven { url "https://www.jitpack.io" }
}
}
`

My app dependencies:

"dependencies": {
"react": "16.8.3",
"react-native": "0.59.9",
"react-native-paypal": "^3.1.1"
}

Can you help me out on this ?
Thanks

Manual installation iOS

Having Problems with this part of configuration, it's confusing.

Screenshot 2020-09-11 at 12 11 14 PM

  1. What kind of files should be added in Libraries folder under project folder and how?

  2. From where I can get RNPaypal.xcodeproj so that I could add it under node_modules ➜ react-native-paypal

  3. Done

  4. Under Build Settings where following path should be added $(SRCROOT)/../node_modules/react-native-paypal/ios

Is it necessary to do Manual installation iOS?

Does this library provide any login/authorization codes?

Sorry if this is vaguely off topic, but I've been trying to find information on this for like a week now.

I'm trying to update an app from the old mobile SDKs to the new SDKs.

The client wants to pay users out money when they complete offers, which seems like it might need something like the payouts API.

But I need to get things like Payer ID (or maybe an authorization code) to do that. Can this app do any of that? Or is it just for checkout only?

Could not invoke RNPaypal.requestOneTimePayment

I am trying to implement react-native-paypal but when I call requestOneTimePayment method, I am getting error message like: Could not invoke RNPaypal.requestOneTimePayment

My dependencies:

"react": "16.9.0"
"react-native": "0.61.5"
"react-native-paypal": "2.1.0"

Native Code dependancy

Is it possible to use this library without writing a single line of code in Native for ios and android?

Error requesting one time payment - "Merchant account not found"

Hi,

Unsure how to proceed... it's likely a braintree issue, but I just want to make sure I'm covering my bases. I've triple checked my merchantId, publicKey and privateKey and ensured that they're 100% correct, however I'm receiving a merchant not found error still.

Screen Shot 2019-03-21 at 10 56 44 PM

Braintree setup

const gateway = braintree.connect({
    environment: braintree.Environment.Sandbox,
    merchantId: process.env.BRAINTREE_MERCHANT_ID,
    publicKey: process.env.BRAINTREE_PUBLIC_KEY,
    privateKey: process.env.BRAINTREE_PRIVATE_KEY
});

createToken method

    public createToken(request: Request, h: ResponseToolkit): Promise<string> {
        return new Promise((resolve, reject) => {
            this.gateway.clientToken.generate({}, (err, response) => {
                if (err) {
                    reject(err.message);
                } else if (!response.success) {
                    reject(response.message);
                } else {
                    resolve(response.clientToken);
                }
            });
        });
    }

Click handler in UI

        requestOneTimePayment(
            token,
            {
                amount: '5', // required
                // any PayPal supported currency (see here: https://developer.paypal.com/docs/integration/direct/rest/currency-codes/#paypal-account-payments)
                currency: 'GBP',
                // any PayPal supported locale (see here: https://braintree.github.io/braintree_ios/Classes/BTPayPalRequest.html#/c:objc(cs)BTPayPalRequest(py)localeCode)
                localeCode: 'en_GB',
                shippingAddressRequired: false,
                userAction: 'commit', // display 'Pay Now' on the PayPal review page
                // one of 'authorize', 'sale', 'order'. defaults to 'authorize'. see details here: https://developer.paypal.com/docs/api/payments/v1/#payment-create-request-body
                intent: 'authorize',
            }
        )

Any help would be greatly appreciated.

The project ‘RNPaypal’ is damaged

The project ‘RNPaypal’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.

Your app is using an unsafe implementation of HostnameVerifier.

We received a security warning "Your app is using an unsafe implementation of HostnameVerifier" from Google Play after submitting a build yesterday. The error seems to be originating in the Braintree Android SDK used by this package.

There is an open issue on the braintree android sdk repo relating to this warning. The maintainer suggested that the latest braintree android sdk v3.14.0 be used.
The current react-native-paypal release v2.2.0 is targeting braintree v2.17.0. At this point it is unclear if updating to v3.14.0 will fix the security issue but the braintree android sdk version in this package ought to be updated anyhow.

When will this package be updated to use the latest braintree android sdk? This is a critical issue for us.

Thanks in advance.

-canOpenURL: failed for URL: "com.venmo.touch.v2:

The library works on ios simulators, but when i run it on a real device and also create archive i get this error:

-canOpenURL: failed for URL: "com.venmo.touch.v2://x-callback-url/vzero/auth" - error: "This app is not allowed to query for scheme com.venmo.touch.v2"

Warning: Attempt to present <SFSafariViewController: 0x15fe3c90> on <RNPaypal: 0x15f9f4f0> whose view is not in the window hierarchy!

'RNPaypal.h' file not found

My AppDelegate.m file is here:

Get this error when I try to build:

AppDelegate.m:4:9: 'RNPaypal.h' file not found
// Copyright 2015-present 650 Industries. All rights reserved.

#import "AppDelegate.h"
#import "RNPaypal.h"

@implementation AppDelegate

// Put your app delegate methods here. Remember to also call methods from EXStandaloneAppDelegate superclass
// in order to keep Expo working. See example below.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  [[RNPaypal sharedInstance] configure];
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
  return [[RNPaypal sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
}
@end

Setting up a payment

Hey @smarkets i'm trying to integrate your library in my RN project.
Can you help me with what should be passed in the nonce and payerId fields.
Do i need to get them from the UI. If yes what and how should they be fetched.

screen shot 2018-12-12 at 10 47 02 am

PROBLEM WITH INSTALLATION

Hi, i have an issue with installation.

After this step:
[iOS] Add pod 'Braintree' to your Podfile and run pod install. If you want, you can specify a version, e.g. pod 'Braintree', '~> 4.19.0'.

I execute command pod install but i have this error:

[!] No podspec found for RNPaypal in ../node_modules/react-native-paypal

This is my PodFile

pod 'RNPaypal', :path => '../node_modules/react-native-paypal'

pod 'Braintree'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.