Developer Portal

5 Sample Application

There is a sample application in the form of .jsp pages and a JavaScript. The following files constitute the sample application. The files are commented on to explain each step and indicate where you can customize the JavaScript for your needs.


File Description
Cart.jsp Simple shopping cart page containing amount and transaction type specification (authorize, sale, credit).
Checkout.jsp Payment page including Apple Pay button. This is where the queue transaction requests happen, sending the transaction information to PaywayWS. This page Includes calls to the JavaScript to execute the payment
TransactionResults.jsp This page simply presents the result of the payment, the PaywayWS code and any error message that was returned to the browser.
TransactionDetails.jsp Optional page that requests all payment details. Note this is executed from the host application server to PaywayWS, NOT from the client browser.
PaywayApple.js Where the Apple Pay merchant validation and transaction are completed. This is the JavaScript you can modify to suit your application needs.
PaywayApple.css Styles for the Apple Pay button.




Every post in your inbox