Skip to content

Repository files navigation

react-native-monri-android-ios

React Native bridge for Monri Android/iOS SDK

Installation

npm install react-native-monri-android-ios

Usage

import MonriAndroidIos from "react-native-monri-android-ios";

// ...

const result = await MonriAndroidIos.confirmPayment({
    authenticityToken: '6a13d79bde8da9320e88923cb3472fb638619ccb',
    developmentMode: true,
  },
  {
    clientSecret: "client_secret", // create one on your backend
    card: {
      pan: '4341 7920 0000 0044',
      cvv: '123',
      expiryMonth: 12,
      expiryYear: 2032,
      saveCard: true
    },
    transaction: {
      email: 'test-react-native@monri.com',
      orderInfo: 'React native bridge???',
      phone: '061123213',
      city: 'Sarajevo',
      country: 'BA',
      address: 'Radnicka',
      fullName: 'Test Test',
      zip: '71210',
    },
    // optional 3DS browser info — omitted fields (or the whole object)
    // are resolved automatically by the native SDK
    browserInfo: {
      language: 'en',
      timeZoneOffset: -60,
    },
  });

License

MIT

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages