UoaWDCC / ASPA-EnrollmentForm

6 stars 1 forks source link

[ASPA-3] Deployment Environment Fix for Constants #87

Closed lucas2005gao closed 3 years ago

lucas2005gao commented 3 years ago

Issue: Constants are defined incorrectly in under deployment environment

Solution: Updated the path to the stripeCredentials.json and used define for the stripe credentials.

The reason to be using define for the stripe public and private keys are because the const keyword can only be used for static strings and it is to be defined at compile time. Stripe credentials are being read at run time so it needs to be using the define keyword.

Risk: None