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 : elboray.alaa1@gmail.com
  whatsapp : +201063745208

License

MIT License.