Skip to main content

com.sabre.redapp.example3.desktop.linkpayment Sample

It allows you to invoke link payment form for travellers and have it added to PNR and assign one of three form of payments to each traveller (cash, check, credit card).

Modal with link payment form
Modal with link payment form with choosen credit card

In case of empty PNR, not added travellers or travellers not linked to price quotes proper modal with error communicate pops up.

Modal with error message
Modal with error message

After form is submitted, callback function can be passed as an argument. It may communicate through Command Flow with given service, i.e. Validations, checks and so.


showLinkPaymentModal(isFullAmount, this.afterLinkPaymentSubmit)

Returns depending on results one of values:

'success' : when link payment modal is succesfully opened

'no-travellers-linked' : when travelers are not linked to price quotes

'no-travellers': when travellers are not added

displays link payment form and after submit is clicked afterLinkPaymentSubmit can be called.

afterLinkPaymentSubmit(): void {
        const commandMessageRq: CommandMessageRq = {
            showRq: false