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.
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 thedefine
keyword.Risk: None