@openmoney/open-payment-rn
v0.1.6
Published
OPEN React-Native SDK lets you seamlessly integrate OPEN Payment Gateway with your Android/iOS React-Native app and start collecting payments from your customers.
Downloads
5
Maintainers
Readme
Open Payment React-Native Module
OPEN React-Native SDK lets you seamlessly integrate OPEN Payment Gateway with your Android/iOS React-Native app and start collecting payments from your customers.
Installation
npm install open-payment-rn
Usage
import { initOpenPayment, OpenPaymentEnvironment } from '@openmoney/open-payment-rn';
// ...
initOpenPayment(
"payment-token",
OpenPaymentEnvironment.SANDBOX,
"access-key",
"optional-brand-color-hex-value",
"optional-error-color-hex-value",
"optional-brand-logo-url",
).then((result) => {
// ------- Handle Result ------------
// console.log("result ", result);
// console.log("Status : ", result.status)
// console.log("Payment ID : ", result.paymentId)
// console.log("Payment Token ID : ", result.paymentTokenId)
}).catch((err) => {
console.log(err);
// ------- Handle Error -------
});
for more details refer Documentation