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

Options for entering credit card? #10

Open
swingywc opened this issue Feb 1, 2018 · 12 comments
Open

Options for entering credit card? #10

swingywc opened this issue Feb 1, 2018 · 12 comments

Comments

@swingywc
Copy link

swingywc commented Feb 1, 2018

Hey I am using your paypal-wrapper. I am glad that it runs smoothly and quick.
However, I would like to ask if there is an option for user to enter credit card, as not every user has a paypal account.

Is there any thing I can do / set in order to enable the credit card button?
Or I should update the Paypal SDK instead?

Appreciate for your kindly help.

@alvinthen
Copy link
Member

Can you try this branch and let me know if it works?

https://github.com/taessina/react-native-paypal-wrapper/tree/accept-credit-card

@swingywc
Copy link
Author

swingywc commented Feb 1, 2018

Thanks a lot. You save my day.

@swingywc
Copy link
Author

swingywc commented Feb 1, 2018

Sorry to disturb you again, I found that the application will unexpectedly quit when I click on the 'Pay with Card".

@alvinthen
Copy link
Member

You gotta send me any logs so that I can help you.

@swingywc
Copy link
Author

swingywc commented Feb 1, 2018

Sorry but I think I cannot get any logs about the error, because it just quit the app. Cannot see any error in the remote JS debugger and the terminal when I am doing the testing in IOS simulator in my macbook.

@alvinthen
Copy link
Member

Sorry for the late follow up. Are you still having this problem?

@skaan
Copy link

skaan commented Sep 15, 2018

I have the same issue. The App crashes on iOS when clicking on 'Pay with Card' button. Did not test Android yet. Here is the error output from XCode. I do not receive any errors from RN Debugger during crash.

Code

import PayPal from 'react-native-paypal-wrapper';
....
pay() {
  const clientId = "XXXXXX";
  PayPal.initialize(PayPal.SANDBOX, clientId);
  PayPal.pay({
      price: '40.70',
      currency: 'CAD',
      description: 'Your description goes here',
  })
  .then(confirm => console.log(confirm))
  .catch(error => console.log(error));
}

Error

bildschirmfoto 2018-09-15 um 14 47 10

@alvinthen
Copy link
Member

Are you using the latest release or from this branch https://github.com/taessina/react-native-paypal-wrapper/tree/accept-credit-card?

The latest release supports credit card only on Android.

Unfortunately we can't afford to maintain the project any longer. Nevertheless we're happy to accept PR or takeover.

@manoj-incred
Copy link

Hi i am using your module i have a problem with currency (currency: 'INR',) its not accepted INR.
give invalid config error so how can i pay with indian rupees

@alvinthen
Copy link
Member

Please open a new issue for this. I believe that’s more to a paypal config error, irrelevant to this repo.

Anyways please ensure you are using an Indian PayPal account.

@Biplovkumar
Copy link

Sorry to disturb you again, I found that the application will unexpectedly quit when I click on the 'Pay with Card".

same here in Ios, ,,in android it is fine.

@Biplovkumar
Copy link

Biplovkumar commented Apr 24, 2019

Unfortunately we can't afford to maintain the project any longer. Nevertheless we're happy to accept PR or takeover.

is possible in ios with this library or should i change the library?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants