- Add
<script src="https://cdn.omise.co/omise.js"></script>
to src/index.html - Declare OmiseCard const as any under component import using
declare const OmiseCard: any;
- Configure your omise public key in component file
ngOnInit()
usingOmiseCard.configure
- Configure your submit button element id, amount, currency, and others properties in component file using
OmiseCard.configureButton
. - Add
OmiseCard.attach();
to apply configuration - Please refer to https://www.omise.co/omise-js for more information
This project was generated with Angular CLI version 11.2.11.
Run ng serve
for a dev server. Navigate to https://localhost:4200/
. The app will automatically reload if you change any of the source files.