You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 });
The text was updated successfully, but these errors were encountered:
komdil
changed the title
There is wrong import package in www.npmjs.com
Fix documentation and examples
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 becardType
:RNCloudPayment.getType(demoCard.number, demoCard.extDate, demoCard.cvvCode) .then(cardType => { console.log(cardType ); // MasterCard });
The text was updated successfully, but these errors were encountered: