0.0.9 • Published 12 months ago
react-native-jiopay-sit v0.0.9
react-native-jiopay
//@TODO add description of product here
Installation
npm install react-native-jiopay-pg-sit
Usage
import JiopayCheckout from "react-native-jiopay-pg-sit";
// ...
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
0.0.9
12 months ago