/** * Validates session data and retrieves payment status * @param {Request} request - the request * @param {string} uuid - the payment UUID * @param {FormsService} formsService - the forms service * @returns {Promise<{ session: PaymentSessionData, sessionKey: string, paymentStatus: GetPaymentResponse }>} */ export function getPaymentContext(request: Request, uuid: string, formsService: FormsService): Promise<{ session: PaymentSessionData; sessionKey: string; paymentStatus: GetPaymentResponse; }>; /** * Builds an object for logging payment information * @param {string} action * @param {string} outcome * @param {string} reason * @param {boolean} isLivePayment * @param {string} paymentId */ export function buildPaymentInfo(action: string, outcome: string, reason: string, isLivePayment: boolean, paymentId: string): { event: { category: string; action: string; outcome: string; reason: string; type: string; reference: string; }; }; /** * @param {number} amount */ export function convertPenceToPounds(amount: number): string; import type { Request } from '@hapi/hapi'; import type { FormsService } from '~/src/server/types.js'; import type { PaymentSessionData } from '~/src/server/plugins/payment/types.js'; import type { GetPaymentResponse } from '~/src/server/plugins/payment/types.js';