kashier-gateway
v1.0.0
Published
This is the payment gateway integration of Kashier
Downloads
4
Maintainers
Readme
kashier-gateway-nodejs
====
This is the payment gateway integration of Kashier
Installation
Install the latest version with:
$ npm i kashier-gateway
Usage
NestJs
import { KashierService } from "kashier-gateway/nestjs"; // like any other service // get your instance from DI kashierService.getPaymentUrl(ORDER_DTO , OPTIONALS ); // return string (url to pay) kashierService.isPaymentSuccess(TRANSITION_RESPONSE); // return boolean
ExpressJs and Others
import { KashierNativeService , KashierConfigDto } from "kashier-gateway"; const config: KashierConfigDto = { }; const kashierService = KashierNativeService.getInstance( config); kashierService.generateOrderUrl(ORDER_DTO , OPTIONALS ); // return string (url to pay) kashierService.isSuccessfulPayment(TRANSITION_RESPONSE); // return boolean
Note
Contact me on : Email : [email protected] whatsapp : +201063745208
License
MIT License.