Skip to content

Commit

Permalink
feat: zen
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteagle3k committed Sep 16, 2024
1 parent db781d5 commit 5561bae
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiBaseUrl=http://sandbox.singularitytools.net
apiBaseUrl=https://sandbox.singularitytools.net
sdkBaseUrl=https://checkout.sandbox.singularitytools.net/HyperLoader.js
mixpanelToken=
mixpanelToken=
15 changes: 15 additions & 0 deletions public/hyperswitch/Gateway/ZENPAYMENTS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/hyperswitch/wasm/euclid_bg.wasm
Binary file not shown.
1 change: 1 addition & 0 deletions src/screens/HyperSwitch/Connectors/ConnectorTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type connectorName =
| HELCIM
| EVERYPAY
| MAKECOMMERCE
| ZENPAYMENTS
| UnknownConnector(string)

type paymentMethod =
Expand Down
10 changes: 10 additions & 0 deletions src/screens/HyperSwitch/Connectors/ConnectorUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ let connectorList: array<connectorName> = [
WORLDLINE,
WORLDPAY,
ZEN,
ZENPAYMENTS,
]

let connectorListForLive: array<connectorName> = [
STRIPE,
EVERYPAY,
MAKECOMMERCE,
ADYEN,
AUTHORIZEDOTNET,
PAYPAL,
BANKOFAMERICA,
BLUESNAP,
Expand All @@ -87,6 +89,7 @@ let connectorListForLive: array<connectorName> = [
PAYME,
TRUSTPAY,
ZEN,
ZENPAYMENTS,
]

let getPaymentMethodFromString = paymentMethod => {
Expand Down Expand Up @@ -362,6 +365,10 @@ let makecommerceInfo = {
description: "EU payment platform",
}

let zenpaymentsInfo = {
description: "Zen Payments payment platform",
}

let getConnectorNameString = connector => {
switch connector {
| ADYEN => "adyen"
Expand Down Expand Up @@ -417,6 +424,7 @@ let getConnectorNameString = connector => {
| HELCIM => "helcim"
| EVERYPAY => "everypay"
| MAKECOMMERCE => "makecommerce"
| ZENPAYMENTS => "zenpayments"
| UnknownConnector(str) => str
}
}
Expand Down Expand Up @@ -476,6 +484,7 @@ let getConnectorNameTypeFromString = connector => {
| "helcim" => HELCIM
| "everypay" => EVERYPAY
| "makecommerce" => MAKECOMMERCE
| "zenpayments" => ZENPAYMENTS
| _ => UnknownConnector("Not known")
}
}
Expand Down Expand Up @@ -535,6 +544,7 @@ let getConnectorInfo = (connector: connectorName) => {
| HELCIM => helcimInfo
| EVERYPAY => everypayInfo
| MAKECOMMERCE => makecommerceInfo
| ZENPAYMENTS => zenpaymentsInfo
| UnknownConnector(_) => unknownConnectorInfo
}
}
Expand Down

0 comments on commit 5561bae

Please sign in to comment.