Skip to content

Fix documentation and examples #9

@komdil

Description

@komdil

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 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions