Skip to main content Sample

The sample includes the following functionalities:

  • Browser technologies that create a website with a custom editor browser implementation and Java code. The editor is rendered as a tab in Sabre Red 360. The sample class is JSTestEditor. The browser URL links to resource HTML file jsfunction.html. The webpage contains a sample form where mandatory fields of BillingTransaction can be set. Submit action calls JavaScript method, which is handler to Billing Service.

  • The EMU_COMMAND service intercepts the BILL command in Sabre emulator, parse the billing transaction arguments CommandService.parseBillingTransaction and the Billing Service CommandService.storeBillingTransaction.

  • Authorization to use the host communications service in a redapp.xml configuration file.

  • The contact details extension point in plugin.xml. To see these details, choose Contact us > Application Vendor Support in Sabre Red 360.

Running the Sample

  1. In Eclipse, import the plug-in into your workspace and add it to your run configuration.

  2. Launch Sabre Red 360 from your run configuration.

  3. Execute command BILL:transactionId,eventName,component and verify the results. In a debug mode the results file can be found here: <WORKING_DIRECTORY>\.metadata\.plugins\\billing_yyyy_MM_dd.csv.

Custom Browser Editor with JavaScript sample

  1. From the Tools > Other menu in Sabre Red 360, choose CF Billing API Sample.