1.0.4 • Published 9 months ago

react-native-redpay v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

react-native-redpay

RedPay's SDK for react native

Installation

Depends on : react-native-webview
npm install react-native-webview / yarn add react-native-webview

To Install:
npm install react-native-redpay
or
yarn add react-native-redpay

Usage

import RedPay from "react-native-redpay";

// ...

<View style={{flex:1}}>
<RedPay amountInMinor={'10000'} apiKey={'apiKey'} env={'test'}
                                customerEmail={'customerEmail'} description={'test'} metadata={{key:"value"}}
                                onComplete={(reference) => {
                                    //Handle successful transaction
                                }} onInitFailed={(reason) => {
//SDK failed to initialize
                                
}} />
</View>

N.B:

  1. Amount in minor means 100 should be passed as "10000"
  2. Currency default : NGN
  3. Env default : production
  4. Metadata prop takes any object but is optional
  5. Component should be wrapped in a view component occupying its intended space

Contributing

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

License

MIT

Copyright RedPay Limited 2023


Made with create-react-native-library

1.0.4

9 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago