2.0.4 • Published 5 months ago

react-native-phonepesdk v2.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

react-native-phonepesdk

Installation

Using npm:

npm install react-native-phonepesdk

or using yarn:

yarn add react-native-phonepesdk

For Expo Users:

npx expo install react-native-phonepesdk

If you are using Expo, you are done. Otherwise, continue to the next step.

Install and link react-native-webview. To install and link them, run:

npm install react-native-webview

OR

yarn add react-native-webview

Usage

Steps

  1. Import PhonepeCheckoutTouch module to your component:

    import { PhonepeCheckoutTouch } from 'react-native-phonepesdk';
  2. Wrap PhonepeCheckoutTouch, Like TouchableOpacity:

        <PhonepeCheckoutTouch
            merchantId={"PGTESTPAYUAT"} //required
            saltKey={"099eb0cd-02cf-4e2a-8aca-3e6c6aff0399"} //required
            saltIndex={1} //default "1"
            amount={1000} //required
            callback={"https://nanostack.io/callback"} //required
            redirectUrl={"https://nanostack.io/redirect"} //required
            merchantUserId={"USER_ID"} //required
            successCallback={(data) => console.log(data)}
            errorCallback={(data) => console.log(data)}
            uat={true} //default false for production usage. Mark true for UAT testing
        >
          <Text>Button</Text>
        </PhonepeCheckoutTouch>

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


2.0.4

5 months ago

1.1.9

7 months ago

1.1.7

7 months ago

1.1.6

7 months ago

1.1.5

7 months ago

1.1.4

7 months ago

2.0.3

6 months ago

2.0.2

7 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.1.3

9 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

11 months ago