This sample project will invoke the payment modal when the user clicks the Pay Now button. This project is for demonstration purposes only. For explicit contracts please refer to official documentation.
NOTE: Replace the 'one-inc-js' placeholder in 'index.html' file with the One Inc Js library CDN to run the application.
- 'one-inc-js' - cdn endpoint which serves One Inc js library. See index.html
The constants file is where we set the authentication key and API base URL. The instant-payment-component contains the Angular component for the Instant Payment card. This is where the payment modal integration takes place. index.html shows how to include the PortalOne library to the app.