From 585638b7cb55730c572face4f1ed6bda1bf51cb0 Mon Sep 17 00:00:00 2001 From: Timea <117268143+Tymmmy@users.noreply.github.com> Date: Tue, 3 Dec 2024 12:01:51 +0200 Subject: [PATCH] fix: Use WA resource server (#1857) Update service.ts --- packages/boutique/backend/src/open-payments/service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/boutique/backend/src/open-payments/service.ts b/packages/boutique/backend/src/open-payments/service.ts index 0bf7eae9f..6a15365a3 100644 --- a/packages/boutique/backend/src/open-payments/service.ts +++ b/packages/boutique/backend/src/open-payments/service.ts @@ -501,7 +501,7 @@ export class OpenPayments implements IOpenPayments { return await this.opClient.incomingPayment .create( { - url: new URL(walletAddress.id).origin, + url: walletAddress.resourceServer, accessToken: accessToken }, { @@ -548,7 +548,7 @@ export class OpenPayments implements IOpenPayments { return await this.opClient.quote .create( { - url: new URL(walletAddress.id).origin, + url: walletAddress.resourceServer, accessToken: grant.access_token.value }, {