-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
googlepay secrets implementation (#180)
* googlepay secrets impl * remove unnecessary DEFAULT_CONFIG usages * corrects gatewayMerchantId key and fixes page to display googlepay tokens * use test env (prod not yet enabled) Co-authored-by: Huawei Gu <hgu@circle.com>
- Loading branch information
1 parent
0c1c8a6
commit c470133
Showing
3 changed files
with
56 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const googlePaySecretsAreSet = !( | ||
process.env.GOOGLE_PAY_PAYFAC_MERCHANT_ID == null || | ||
process.env.GOOGLE_PAY_PAYFAC_MERCHANT_NAME == null || | ||
process.env.GOOGLE_PAY_PAYFAC_CHECKOUT_KEY == null | ||
) | ||
|
||
const merchantId: string = googlePaySecretsAreSet | ||
? process.env.GOOGLE_PAY_PAYFAC_MERCHANT_ID! | ||
: '' | ||
|
||
const merchantName: string = googlePaySecretsAreSet | ||
? process.env.GOOGLE_PAY_PAYFAC_MERCHANT_NAME! | ||
: '' | ||
|
||
const checkoutKey: string = googlePaySecretsAreSet | ||
? process.env.GOOGLE_PAY_PAYFAC_CHECKOUT_KEY! | ||
: '' | ||
|
||
export { merchantId, merchantName, checkoutKey } |