1.1.15 • Published 21 days ago

react-native-gokwik-sdk v1.1.15

Weekly downloads
-
License
ISC
Repository
-
Last release
21 days ago

Gokwik's official React Native SDK for Android and iOS

To know more about GoKwik payment flow and steps involved, read up here.

Installation

Using npm:

npm install --save react-native-gokwik-sdk

or using yarn:

yarn add react-native-gokwik-sdk

Features

  1. UPI Payment: This feature allows users to select UPI app from a list of installed UPI apps for making payments

  2. Direct UPI Payment: This feature allows users to open UPI apps directly for making payments

  3. COD: This feature provides the Cash on Delivery option to users, powered by GoKwik.

  4. Non GoKwik Payment: This feature provides the option to notify GoKwik backend when payment is not done via GoKwik.

  5. Gokwik Chat: This feature provides user to interact via Gokwik Chat.

Requirements

  • iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+
  • Xcode 11+
  • Swift 5.1+

Integration Steps

  • Add GoKwik npm package in your project:

    npm install --save react-native-gokwik-sdk
  • Add the names of all UPI payment apps in info.plist as shown below:

    <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>phonepe</string>
        <string>paytm</string>
        <string>gpay</string>
        <string>bhim</string>
    </array>
  • Create order from the backend using GoKwik API and pass the response to GoKwik Checkout as shown below:

    import GokwikCheckout from 'react-native-gokwik-sdk';
    /**
     * @param {string}   createOrderResponse for gokwik orders, use the create order response and for non-gokwik orders, follow RTO document.
     * @param {boolean}  isProduction        use false for sandbox environment and true for production environment
     */
    GokwikCheckout.open(JSON.stringify(createOrderResponse), isProduction)
      .then((data) => {
        // handle success
        showMessage(`Success: ${JSON.stringify(data.msg)}`);
      })
      .catch((error) => {
        // handle failure
        showMessage(`Error: ${'error.message'}`);
      });

Support

GoKwik is an eCommerce enablement brand. GoKwik increases profitability for your ecommerce or D2C business by increasing conversions, reducing acquisition costs and increasing delivery rates across the entire shopping funnel. For more queries contact us at https://www.gokwik.co/contact.

Things to be taken care

This react native plugin is wrapper around native SDK, so it doesn't work with the tools like expo which doesn't support native modules.

License

react-native-gokwik-sdk is Copyright (c) 2022 GoKwik. It is distributed under the MIT License.

1.1.15

21 days ago

1.1.14

3 months ago

1.1.13

4 months ago

1.1.9

7 months ago

1.1.12

7 months ago

1.1.11

7 months ago

1.1.10

7 months ago

1.1.8

8 months ago

1.1.7

8 months ago

1.1.6

8 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.3

9 months ago

1.1.2

10 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago