Lightweight library to facilitate the integration of Payme payment gateway in your backend application.
Basic usage
import{PaymeClient}from'payme';// choose the API Type (Merchant API and Subscribe API)constsubscribeApi=PaymeClient.create('subscribe');// set the API KeysubscribeApi.setSecretKey("your_secret_key");subscribeApi.setPaymeId("your_public_key");// optionaly you can control with wither to use test API or productionsubscribeApi.setPaymeApiURL("production");// or "dev"constresult=awaitsubscribeApi.receiptsCreate({requestId: 1,params: {amount: 100,description: "Test",account: undefined,detail: {receipt_type: 0,items: [{code: "1",count: 1,package_code: "1",price: 100,title: "Test",vat_percent: 0,discount: 0,units: 1,}],}}})