easebuzz-capacitorjs-sdk
v0.0.8
Published
The Easebuzz Capacitorjs-sdk for mobile application.
Downloads
274
Readme
easebuzz-capacitorjs-sdk
PaywithEaseBuzz Capacitorjs Easebuzz SDK
The Easebuzz Capacitorjs wrapper provides a seamless way to integrate the Easebuzz payment gateway into Capacitorjs applications. It acts as a bridge between the native Easebuzz SDKs for Android and iOS, enabling a smooth and secure payment experience. To understand the Easebuzz payment flow and its implementation, refer to the official documentation: https://docs.easebuzz.in/ Prerequisites Before integrating, ensure the following: • Merchant Onboarding: ◦ Create a merchant account and complete the onboarding process via the Easebuzz Signup Portal. • Test Integration Kit/Sandbox Credentials: ◦ Test credentials will be sent to your registered email ID. These credentials allow you to test payments in a sandbox environment without real financial transactions. ◦ After successful testing, replace test keys with live keys for real transactions.
Installation
To integrate the Easebuzz Capacitorjs SDK, install the package using npm or yarn:
npm i easebuzz-capacitorjs-sdkUsage
To integrate the Easebuzz payment functionality, follow these steps:
1.Import the Package
import { EasebuzzCheckout } from 'easebuzz-capacitorjs-sdk';
2.Implement Payment Functionality
Use the following method to initiate a payment:
async load_paymentgateway() {
const option = {
access_key: “Access key generated by the Initiate Payment API”,
pay_mode: This will either be “test” or “production”
};
const data = await EasebuzzCheckout.proceedToPayment({ option });
console.log(data['result']);
console.log(data['payment_response']);
}
License
MIT
