0.1.9 • Published 9 months ago

plural-react-native v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

plural-react-native

npm package for plural checkout

Installation

npm install plural-react-native

For iOS

1) Open podfile from IOS folder and add the following line in your app target:

pod "PluralCheckout", git: "https://github.com/shivapinelabs/plural-ios-sdk.git"
Sample Podfile:
target 'PluralCheckoutExample' do
  ...
  pod "PluralCheckout", git: "https://github.com/shivapinelabs/plural-ios-sdk.git"
  ...
end
2) Navigate to IOS folder of your project and install pods

cd ios && pod install

Methods

1) start

Requires an object as parameter with the following keys:

Return type: Void

KeyTypeRequiredDescription
optionsobjectyesContains order details data.
environmentfunctionyesContains environment details.
SDKCallbackfunctionyesCallback when any type of response is received.
Params for options object in the startPayment and generateHash method
KeyTypeRequiredDescription
channelIdstringyesIt is the channel Id generated at merchant side, for merchant transaction tracking. It is required only for PreAuth and Purchase transactions.
countryCodenumberyesCountry code which is used for mobile numbers
emailIdstringyesEmail address of customer.
themestringyesWhat type of theme you want to keep (Light or Dark)
orderTokenstringyes (no for generateHash)Use SHA256 type of value.
showSavedCardsFeaturebooleanyestrue for showing the saved card feature false for disabling
mobileNumberstringyesMobile number of customer
cardCategoryTypestringyesfor chossing the type of card which can be used for payment like :- DC for debit card, CC for credit card and CC_DC for debit and credit both
netbankingOrderstringnoFor choosing the sequence in which the netbanking banks will be displayed to the user. You send here the netbanking code in the order you want to display them like "NB1000,NB2000" or skip the field to show default order
upiModestringnoSend COLLECT if you just want to show the upi collect flow, INTENT if just want to show only UPI intent flow and ALL or skip the field to show both
authTokenstringyesBasic authentication token generated using the merchant ID and the merchant-access-code
Usage:
    import { start } from "plural-react-native";

    const options = {
      channelId: 'APP',
      countryCode: '91',
      emailId: 'example@pinelabs.com',
      theme: 'Dark',
      orderToken: token,
      showSavedCardsFeature: false,
      mobileNumber: '1234567892',
      cardCategoryType: "DC",
      authToken: encoded // basic authentication token generated using the merchant ID and the merchant-access-code
    };

    const environment = {
        QA: 'QA',
        UAT: 'UAT',
        PROD: 'PROD',
    };

    const SDKCallback = () => {
        // handle response here
    }
    start(options, environment.UAT, SDKCallback);
0.1.8

9 months ago

0.1.9

9 months ago

0.1.4

11 months ago

0.1.6

9 months ago

0.1.5

11 months ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago