react-native-jiopay
//@TODO add description of product here
Installation
npm install react-native-jiopay
Usage
import JiopayCheckout from "react-native-jiopay";
// ...
const data = {
appaccesstoken: 'ENTER_APP_ACCESS_TOKEN_HERE',
appidtoken: 'ENTER_APP_ID_TOKEN_HERE',
intentid: 'ENTER_INTENT_ID_HERE',
theme: {
brandColor: 'BRAND_COLOR(OPTIONAL)',
bodyBgColor: 'BODY_BG_COLOR(OPTIONAL)',
bodyTextColor: 'BODY_TEXT_COLOR(OPTIONAL)',
headingText: 'HEADING_TEXT(OPTIONAL)',
},
}
JiopayCheckout.open(data).then((res)=>{
alert(`Success: ${data.transactionId}-${data.intentId}-${data.status}`);
}).catch((error)=>{
alert(`Error: ${error.code} | ${error.message}|${error.intentId}|${error.status}`);
})
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT