sendrefunds-client
v0.2.7
Published
Send Refunds Client Nodejs
Downloads
96
Readme
Sendrefunds Client
Doc API: https://app.swaggerhub.com/apis-docs/sendrefunds/ManagedSales/1.8.2
Usage
import { SendrefundsClient } from "sendrefunds-client";
const client = new SendrefundsClient({
uri: "...",
authorizationBearer: "xxx",
isProduction: true | false
});
Methods
- businessCheck
- getBusinessToken
- getBusinessStatus
- createAccessToken
- createAccessTokenFromExtId
- createOrder
- createPayment
- getOrder
- generateFrontUrl
- getOrderList
- getPayment
- getPaymentOrder
- getOrderPayments
- getDocuments
- createRefunds
- getBusinessInformation
Test
Env
File .env
TEST_AUTHORIZATION_BEARER=...
TEST_SR_VALID_BUSINESS_ID=43341091700028
TEST_SR_VALID_REGISTRED_BUSINESS_ID=43341091700028
Run on API
TEST_SR=1 yarn test