Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(configs): add configs for deployments to environments #3265

Merged
merged 27 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c793d81
refactor(configs): Simplify the existing configs
pixincreate Jan 5, 2024
f65767f
Merge branch 'main' of github.com:juspay/hyperswitch into env_split
pixincreate Jan 8, 2024
109bd84
Some refinement and beautification
pixincreate Jan 8, 2024
2a92d17
feat(configs): changes to add payment_method_data for complete auth f…
Sakilmostak Jan 9, 2024
a7364f8
Update env
pixincreate Jan 9, 2024
9469782
Merge branch 'env_split' of github.com:juspay/hyperswitch into env_split
pixincreate Jan 9, 2024
e3eb833
Merge branch 'main' of github.com:juspay/hyperswitch into env_split
pixincreate Jan 9, 2024
83371a2
fix env
pixincreate Jan 10, 2024
eeb0c28
Merge branch 'main' of github.com:juspay/hyperswitch into env_split
pixincreate Jan 10, 2024
0b13430
Update configs
pixincreate Jan 11, 2024
99401c0
Merge branch 'main' of github.com:juspay/hyperswitch into env_split
pixincreate Jan 13, 2024
35781b4
Update missing env
pixincreate Jan 13, 2024
e58e1ec
Merge branch 'main' of github.com:juspay/hyperswitch into env_split
pixincreate Jan 17, 2024
efb4fe0
Address comments
pixincreate Jan 17, 2024
333d96f
Revert moving lock settings to env
pixincreate Jan 17, 2024
1a23641
Merge branch 'main' of github.com:juspay/hyperswitch into env_split
pixincreate Jan 17, 2024
6e6ca65
Add one more thing
pixincreate Jan 17, 2024
03bf0c4
Update envs cybersource
pixincreate Jan 18, 2024
31c9b4c
Merge branch 'main' of github.com:juspay/hyperswitch into env_split
pixincreate Jan 18, 2024
98565dc
Update envs, again
pixincreate Jan 18, 2024
84b8a2e
Refinement and address comments
pixincreate Jan 19, 2024
6176692
Format doc
pixincreate Jan 19, 2024
d0082b8
Formatting fix
pixincreate Jan 19, 2024
284b479
Update env
pixincreate Jan 19, 2024
97c03db
Revert "Update env"
pixincreate Jan 20, 2024
30bdf02
Update applepay comments
pixincreate Jan 24, 2024
d611a20
move comment up a bit
pixincreate Jan 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions config/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,28 @@ adyen.banks = "bangkok_bank,krungsri_bank,krung_thai_bank,the_siam_commercial_ba
supported_connectors = "braintree"

[applepay_decrypt_keys]
apple_pay_ppc = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE" #Payment Processing Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Payment Processing Certificate
apple_pay_ppc_key = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE_KEY" #Private key generate by Elliptic-curve prime256v1 curve
apple_pay_merchant_cert = "APPLE_PAY_MERCHNAT_CERTIFICATE" #Merchant Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Merchant Identity Certificate
apple_pay_merchant_cert_key = "APPLE_PAY_MERCHNAT_CERTIFICATE_KEY" #Private key generate by RSA:2048 algorithm
apple_pay_ppc = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE" # Payment Processing Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Payment Processing Certificate
apple_pay_ppc_key = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE_KEY" # Private key generated by Elliptic-curve prime256v1 curve. You can use `openssl ecparam -out private.key -name prime256v1 -genkey` to generate the private key
apple_pay_merchant_cert = "APPLE_PAY_MERCHNAT_CERTIFICATE" # Merchant Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Merchant Identity Certificate
apple_pay_merchant_cert_key = "APPLE_PAY_MERCHNAT_CERTIFICATE_KEY" # Private key generated by RSA:2048 algorithm. Refer Hyperswitch Docs (https://docs.hyperswitch.io/hyperswitch-cloud/payment-methods-setup/wallets/apple-pay/ios-application/) to generate the private key

[applepay_merchant_configs]
common_merchant_identifier = "APPLE_PAY_COMMON_MERCHANT_IDENTIFIER" # This can be obtained by decrypting the apple_pay_ppc_key as shown below in comments
merchant_cert = "APPLE_PAY_MERCHANT_CERTIFICATE" # Merchant Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Merchant Identity Certificate
merchant_cert_key = "APPLE_PAY_MERCHANT_CERTIFICATE_KEY" # Private key generate by RSA:2048 algorithm. Refer Hyperswitch Docs (https://docs.hyperswitch.io/hyperswitch-cloud/payment-methods-setup/wallets/apple-pay/ios-application/) to generate the private key
applepay_endpoint = "https://apple-pay-gateway.apple.com/paymentservices/registerMerchant" # Apple pay gateway merchant endpoint

# In shell, run below command to get common merchant identifier for applepay
#
# CERT_PATH="path/to/certificate.pem"
# MERCHANT_ID=$(openssl x509 -in "$CERT_PATH" -noout -text |
# awk -v oid="1.2.840.113635.100.6.32" '
# BEGIN { RS = "\n\n" }
# /X509v3 extensions/ { in_extension=1 }
# in_extension && /'"$oid"'/ { print $0; exit }' |
# grep -oE '\.@[A-F0-9]+' | sed 's/^\.@//'
# )
# echo "Merchant ID: $MERCHANT_ID"
pixincreate marked this conversation as resolved.
Show resolved Hide resolved

[payment_link]
sdk_url = "http://localhost:9090/0.16.7/v0/HyperLoader.js"
Expand Down
8 changes: 4 additions & 4 deletions config/deployments/env_specific.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ apple_pay_merchant_cert = "APPLE_PAY_MERCHNAT_CERTIFICATE" # Merchant Ce
apple_pay_merchant_cert_key = "APPLE_PAY_MERCHNAT_CERTIFICATE_KEY" # Private key generated by RSA:2048 algorithm. Refer Hyperswitch Docs (https://docs.hyperswitch.io/hyperswitch-cloud/payment-methods-setup/wallets/apple-pay/ios-application/) to generate the private key

[applepay_merchant_configs]
common_merchant_identifier = "apple_pay_common_merchant_identifier" # This can be obtained by decrypting the apple_pay_ppc_key
merchant_cert = "apple_pay_merchant_certificate"
merchant_cert_key = "apple_pay_merchant_certificate_key"
applepay_endpoint = "https://apple-pay-gateway.apple.com/paymentservices/registerMerchant"
common_merchant_identifier = "APPLE_PAY_COMMON_MERCHANT_IDENTIFIER" # Refer to config.example.toml to learn how you can generate this value
merchant_cert = "APPLE_PAY_MERCHANT_CERTIFICATE" # Merchant Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Merchant Identity Certificate
merchant_cert_key = "APPLE_PAY_MERCHANT_CERTIFICATE_KEY" # Private key generate by RSA:2048 algorithm. Refer Hyperswitch Docs (https://docs.hyperswitch.io/hyperswitch-cloud/payment-methods-setup/wallets/apple-pay/ios-application/) to generate the private key
applepay_endpoint = "https://apple-pay-gateway.apple.com/paymentservices/registerMerchant" # Apple pay gateway merchant endpoint

[connector_onboarding.paypal]
enabled = true # boolean
Expand Down
Loading