add payment success and failure pages with environment variable support

This commit is contained in:
Marshal
2026-06-17 17:13:19 +00:00
parent 3798b28bcd
commit 5b9fed57fe
6 changed files with 126 additions and 7 deletions

View File

@@ -157,8 +157,8 @@ export class PaymentService {
provider: dto.method as unknown as ProviderMethod,
platform: dto.platform,
payerAccount: dto.payerAccount,
returnUrl: dto.returnUrl ?? process.env.PAYMENT_RETURN_URL,
failureUrl: dto.failureUrl ?? process.env.PAYMENT_FAILURE_URL,
returnUrl:'https://edrfreight.triaplc.com/payment/success',
failureUrl: 'https://edrfreight.triaplc.com/payment/failure',
});
const intent = await this.syncIntentProjection(booking.id, booking, snapshot);