summaryrefslogtreecommitdiff
path: root/src/headless/merchant.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/headless/merchant.ts')
-rw-r--r--src/headless/merchant.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/headless/merchant.ts b/src/headless/merchant.ts
index 3324924fd..34ca5564d 100644
--- a/src/headless/merchant.ts
+++ b/src/headless/merchant.ts
@@ -37,7 +37,10 @@ export class MerchantBackendConnection {
reason: string,
refundAmount: string,
): Promise<string> {
- const reqUrl = new URL(`private/orders/${orderId}/refund`, this.merchantBaseUrl);
+ const reqUrl = new URL(
+ `private/orders/${orderId}/refund`,
+ this.merchantBaseUrl,
+ );
const refundReq = {
reason,
refund: refundAmount,
@@ -123,7 +126,8 @@ export class MerchantBackendConnection {
}
async checkPayment(orderId: string): Promise<CheckPaymentResponse> {
- const reqUrl = new URL(`private/orders/${orderId}`, this.merchantBaseUrl).href;
+ const reqUrl = new URL(`private/orders/${orderId}`, this.merchantBaseUrl)
+ .href;
const resp = await axios({
method: "get",
url: reqUrl,