Navigation: 10. Documentation >

10.2. Sample Source Code

 

 

 

 

To assist implementation the WASP Portal provides users customised, downloadable sample source code. Selecting the <Sample Code> option from the <Documentation> menu opens the Payment Transaction Sample Code window.

 

Select a merchant from the <Select Merchant> dropdown menu, which will auto fill the JavaScript configuration file demo_payment_config.js window with the merchant’s details.

Download the sample source code files demo_payment_config.js and demo_payment.html using the <Save Config/Application File> options.

 

To run the source code; save both files to the same directory and execute the demo_payment.html file.

 

These files can be edited using most text editors and the relevant API calls copied and pasted if required.

 

Close the Payment Transaction Sample Code window using the browser back button or by choosing any other option from the main menu.

 

 

 

 

 

Copyright © 2024 SPG