react-native-gokwik-sdk v1.1.15
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
UPI Payment: This feature allows users to select UPI app from a list of installed UPI apps for making payments
Direct UPI Payment: This feature allows users to open UPI apps directly for making payments
COD: This feature provides the Cash on Delivery option to users, powered by GoKwik.
Non GoKwik Payment: This feature provides the option to notify GoKwik backend when payment is not done via GoKwik.
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.
21 days ago
3 months ago
4 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
10 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago