Breadcrumb
- Sabre Red 360 Software Development Kit Help
- Sabre Red 360 Developer Toolkit
- Web Modules
- Examples
- com.sabre.redapp.example3.desktop.linkpayment Sample
com.sabre.redapp.example3.desktop.linkpayment Sample
Link Payment
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).


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


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.
Usage
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 = {
rq: 'NGV://REDAPP/SERVICE/COM.SABRE.REDAPP.EXAMPLE3.DESKTOP.LINKPAYMENT.SERVICE.LINKPAYMENTSAMPLESERVICE:EXECUTE',
showRq: false
};
getService(ICommandMessageService).send(commandMessageRq);
}