npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

plural-react-native

v0.1.9

Published

Plural checkout SDK

Downloads

13

Readme

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

| Key | Type | Required | Description | | ---------------- | -------- | -------- | ----------------------------------------------- | | options | object | yes | Contains order details data. | | environment | function | yes | Contains environment details. | | SDKCallback | function | yes | Callback when any type of response is received. |

Params for options object in the startPayment and generateHash method

| Key | Type | Required | Description | | -------------------------- | ------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | channelId | string | yes | It is the channel Id generated at merchant side, for merchant transaction tracking. It is required only for PreAuth and Purchase transactions. | | countryCode | number | yes | Country code which is used for mobile numbers | | | emailId | string | yes | Email address of customer. | | theme | string | yes | What type of theme you want to keep (Light or Dark) | | orderToken | string | yes (no for generateHash) | Use SHA256 type of value. | | showSavedCardsFeature | boolean | yes | true for showing the saved card feature false for disabling | | mobileNumber | string | yes | Mobile number of customer | | cardCategoryType | string | yes | for 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 | | netbankingOrder | string | no | For 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 | | upiMode | string | no | Send 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 | | authToken | string | yes | Basic 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: '[email protected]',
      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);