This is a repository of all the different kinds of integrations that can be done using Lyra's JavaScript library.
- custom/errors/errorsByField: When there is an error on a specific field, displays the error on an element behind it.
- [custom/customFields][custom/customFields]: How to add an additional checkbox with the form styles and make it mandatory
The examples included are fully functional, in order to run them, just execute the following:
Add your server API Keys and endpoints in:
- in server/createPayment.js line 4
- in server/index.js line 36
And Client API Keys and enpoints in:
- examples/custom/errors/errorsByField/form.js lines 3 to 5 and/or in
- examples/custom/customFields/form.js lines 3 to 5
npm install
npm run buildThe payment application needs an API to generate the test payment tokens. It can be set it up with:
npm run serverTo serve the examples, set up the static server with:
npm run e2e:serverAfter that you can access to the example path:
To run the included e2e tests:
npm run test