Home
Softono

React Native Cashfree Pg Sdk

Open source MIT TypeScript
11
Stars
13
Forks
4
Issues
2
Watchers
2 months
Last Commit

 About React Native Cashfree Pg Sdk

Sample app demonstrating integration of Cashfree's payment gateway in your React native project

Platforms

Web Self-hosted

Languages

TypeScript

Need Help Installing React Native Cashfree Pg Sdk?

We provide expert installation service for this software. Our team will install, configure, and secure React Native Cashfree Pg Sdk on your server. plans start at just $30.

React Native Cashfree Pg Sdk

View on GitHub

react-native-cashfree-pg-sdk

GitHub npm downloads Discord GitHub last commit (branch) install size

NPM

The Cashfree React Native SDK allows you to integrate Cashfree Payment Gateway into your application and start collecting payments from your customers. The React Native SDK has been designed to minimise the complexity of handling and integrating payments in your React Native project.

Click here for more Documentation.

Installation

npm install react-native-cashfree-pg-sdk

iOS

Add the following code to application's info.plist file.

<key>LSApplicationCategoryType</key>
<string></string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>phonepe</string>
<string>tez</string>
<string>paytm</string>
<string>bhim</string>
</array>

Usage

import {
  CFCallback,
  CFErrorResponse,
  CFPaymentGatewayService,
} from 'react-native-cashfree-pg-sdk';
import {
  CFEnvironment,
  CFSession,
  CFThemeBuilder,
} from 'cashfree-pg-api-contract';

// ...

try {
  const session = new CFSession(paymentSessionId, orderId, CFEnvironment.PRODUCTION/CFEnvironment.SANDBOX);
  console.log('Session', JSON.stringify(session));
  CFPaymentGatewayService.doWebPayment(session);
} catch (e: any) {
  console.log(e.message);
}

Contributing

If you want to contribute please read the Contributing guidelines.

License

The Cashfree React Native SDK is licensed under the MIT License.
See the LICENSE file distributed with this work for additional
information regarding copyright ownership.

Except as contained in the LICENSE file, the name(s) of the above copyright
holders shall not be used in advertising or otherwise to promote the sale,
use or other dealings in this Software without prior written authorization.