@openmoney/open-payment-rn
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

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

Package Sidebar

Install

npm i @openmoney/open-payment-rn

Homepage

open.money/

Weekly Downloads

0

Version

0.1.6

License

MIT

Unpacked Size

87 kB

Total Files

28

Last publish

Collaborators

  • open.money