This directory contains the Angular implementation of Airwallex Payment Element. This project was generated with Angular CLI version 11.0.1.
- node.js
npm
oryarn
package manager- Angular CLI
- Clone the root airwallex-payment-demo project to your local machine
git clone https://github.com/airwallex/airwallex-payment-demo
-
Navigate into the react directory with
cd integrations/angular
-
Install the package with
yarn
ornpm install
-
Run the project in development mode with
npm start
oryarn start
orng serve
. See the project at localhost:4200
Each of the payment methods are written as a separate component found in the /src/app folder.
To test each of the payment methods, be sure to replace the intent_id
and client_secret
variables at the top of each x.component.ts
file with your own unique keys. These values can be created with the backend API integration with PaymentIntent.
const intent_id = "replace-with-your-intent-id";
const client_secret = "replace-with-your-client-secret";
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
Roy Yang and Josie Ku