//@TODO add description of product here
npm install react-native-jiopay-pg-sit
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.jiopay_payment_id}`);
}).catch((error)=>{
alert(`Error: ${error.code} | ${error.description}`);
})
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT