Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation and examples #9

Open
komdil opened this issue Jun 19, 2020 · 0 comments
Open

Fix documentation and examples #9

komdil opened this issue Jun 19, 2020 · 0 comments

Comments

@komdil
Copy link

komdil commented Jun 19, 2020

Go to https://www.npmjs.com/package/react-native-cloudpayments
Look at the example. There is a wrong importing package (there is no 's' to the end):
import RNCloudPayment from 'react-native-cloudpayment';

It should be like: import RNCloudPayment from 'react-native-cloudpayments';

There is another issue of example:
RNCloudPayment.getType(demoCard.number, demoCard.extDate, demoCard.cvvCode) .then(cardType => { console.log(getType); // MasterCard });

It will throw an exception because there is no getType variable. it should be cardType:
RNCloudPayment.getType(demoCard.number, demoCard.extDate, demoCard.cvvCode) .then(cardType => { console.log(cardType ); // MasterCard });

@komdil komdil changed the title There is wrong import package in www.npmjs.com Fix documentation and examples Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant