mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 20:38:17 +00:00
Merge branch 'alpha' of github.com:Tria-plc/edr-platform into alpha
This commit is contained in:
@@ -598,6 +598,17 @@ export class PaymentsService {
|
|||||||
where: { bookingId },
|
where: { bookingId },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
if (local?.status === PaymentIntentStatus.SUCCEEDED) {
|
||||||
|
const booking = await this.prisma.booking.findUnique({
|
||||||
|
where: { id: bookingId },
|
||||||
|
select: { status: true },
|
||||||
|
});
|
||||||
|
if (booking?.status === "CONFIRMED") {
|
||||||
|
return this.formatIntentStatus(local);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// WALLET payments never leave this app — no remote intent exists for them.
|
// WALLET payments never leave this app — no remote intent exists for them.
|
||||||
if (local?.method === PaymentMethodType.WALLET) {
|
if (local?.method === PaymentMethodType.WALLET) {
|
||||||
return this.formatIntentStatus(local);
|
return this.formatIntentStatus(local);
|
||||||
|
|||||||
Reference in New Issue
Block a user