Getting Started

Installation and usage

Installation

Install the package using npm using the following command:

npm install --save-exact @card91/react-native-reset-pin-flow

or using yarn:

yarn add --exact @card91/react-native-reset-pin-flow

📘

Peer Dependencies

Our React Native SDK relies on the react-native-webview library, so please make sure that it is installed before using the SDK.

Usage

Use ResetPinFlow in the place where you need to show the Reset Page:

import { ResetPinFlow } from '@card91/react-native-reset-pin-flow';

export function ResetPinPage() {
    return (
        <View>
            <ResetPinFlow
              templateId="[YOUR_TEMPLATE_ID]"
              environment="[ENV]" 
              cardId="[CUSTOMER_CARD_ID]"
              token="[AUTH_TOKEN]"
              phoneNumber="[MOBILE_NO]"
            />
        </View>
    );
}

For Reset Pin page takes the following props:

Input props

NameTypeRequiredDescription
templateIdstringtrueID of the card layout containing details like the card number, CVV, expiry date, etc.
tokenstringtrueAuth Token received from the Card91 APIs
cardIdstringtrueCustomer Card id which come when you login with MPIN/Auth token
environmentstringtrueUse sandbox or live Keys for Production
phoneNumberstringtrueEnd user phone number have to pass here.