Skip to content

Commit 673b869

Browse files
feat(connector): [Novalnet] Integrate wallets Paypal and Googlepay (#6370)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
1 parent a31d164 commit 673b869

File tree

5 files changed

+285
-23
lines changed

5 files changed

+285
-23
lines changed

crates/connector_configs/toml/development.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,12 +2260,35 @@ type="Text"
22602260
payment_method_type = "CartesBancaires"
22612261
[[novalnet.debit]]
22622262
payment_method_type = "UnionPay"
2263+
[[novalnet.wallet]]
2264+
payment_method_type = "google_pay"
2265+
[[novalnet.wallet]]
2266+
payment_method_type = "paypal"
22632267
[novalnet.connector_auth.SignatureKey]
22642268
api_key="Product Activation Key"
22652269
key1="Payment Access Key"
22662270
api_secret="Tariff ID"
22672271
[novalnet.connector_webhook_details]
22682272
merchant_secret="Source verification key"
2273+
placeholder="Enter Payment Access Key"
2274+
[[novalnet.metadata.google_pay]]
2275+
name="merchant_name"
2276+
label="Google Pay Merchant Name"
2277+
placeholder="Enter Google Pay Merchant Name"
2278+
required=true
2279+
type="Text"
2280+
[[novalnet.metadata.google_pay]]
2281+
name="merchant_id"
2282+
label="Google Pay Merchant Id"
2283+
placeholder="Enter Google Pay Merchant Id"
2284+
required=true
2285+
type="Text"
2286+
[[novalnet.metadata.google_pay]]
2287+
name="gateway_merchant_id"
2288+
label="Google Pay Merchant Key"
2289+
placeholder="Enter Google Pay Merchant Key"
2290+
required=true
2291+
type="Text"
22692292

22702293
[nuvei]
22712294
[[nuvei.credit]]

crates/connector_configs/toml/production.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,12 +1782,35 @@ merchant_secret="Source verification key"
17821782
payment_method_type = "CartesBancaires"
17831783
[[novalnet.debit]]
17841784
payment_method_type = "UnionPay"
1785+
[[novalnet.wallet]]
1786+
payment_method_type = "google_pay"
1787+
[[novalnet.wallet]]
1788+
payment_method_type = "paypal"
17851789
[novalnet.connector_auth.SignatureKey]
17861790
api_key="Product Activation Key"
17871791
key1="Payment Access Key"
17881792
api_secret="Tariff ID"
17891793
[novalnet.connector_webhook_details]
17901794
merchant_secret="Source verification key"
1795+
placeholder="Enter Payment Access Key"
1796+
[[novalnet.metadata.google_pay]]
1797+
name="merchant_name"
1798+
label="Google Pay Merchant Name"
1799+
placeholder="Enter Google Pay Merchant Name"
1800+
required=true
1801+
type="Text"
1802+
[[novalnet.metadata.google_pay]]
1803+
name="merchant_id"
1804+
label="Google Pay Merchant Id"
1805+
placeholder="Enter Google Pay Merchant Id"
1806+
required=true
1807+
type="Text"
1808+
[[novalnet.metadata.google_pay]]
1809+
name="gateway_merchant_id"
1810+
label="Google Pay Merchant Key"
1811+
placeholder="Enter Google Pay Merchant Key"
1812+
required=true
1813+
type="Text"
17911814

17921815
[nuvei]
17931816
[[nuvei.credit]]

crates/connector_configs/toml/sandbox.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,12 +2256,35 @@ type="Text"
22562256
payment_method_type = "CartesBancaires"
22572257
[[novalnet.debit]]
22582258
payment_method_type = "UnionPay"
2259+
[[novalnet.wallet]]
2260+
payment_method_type = "google_pay"
2261+
[[novalnet.wallet]]
2262+
payment_method_type = "paypal"
22592263
[novalnet.connector_auth.SignatureKey]
22602264
api_key="Product Activation Key"
22612265
key1="Payment Access Key"
22622266
api_secret="Tariff ID"
22632267
[novalnet.connector_webhook_details]
22642268
merchant_secret="Source verification key"
2269+
placeholder="Enter Payment Access Key"
2270+
[[novalnet.metadata.google_pay]]
2271+
name="merchant_name"
2272+
label="Google Pay Merchant Name"
2273+
placeholder="Enter Google Pay Merchant Name"
2274+
required=true
2275+
type="Text"
2276+
[[novalnet.metadata.google_pay]]
2277+
name="merchant_id"
2278+
label="Google Pay Merchant Id"
2279+
placeholder="Enter Google Pay Merchant Id"
2280+
required=true
2281+
type="Text"
2282+
[[novalnet.metadata.google_pay]]
2283+
name="gateway_merchant_id"
2284+
label="Google Pay Merchant Key"
2285+
placeholder="Enter Google Pay Merchant Key"
2286+
required=true
2287+
type="Text"
22652288

22662289
[nuvei]
22672290
[[nuvei.credit]]

crates/hyperswitch_connectors/src/connectors/novalnet.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,11 @@ impl ConnectorValidation for Novalnet {
195195
pm_type: Option<enums::PaymentMethodType>,
196196
pm_data: PaymentMethodData,
197197
) -> CustomResult<(), errors::ConnectorError> {
198-
let mandate_supported_pmd: HashSet<PaymentMethodDataType> =
199-
HashSet::from([PaymentMethodDataType::Card]);
198+
let mandate_supported_pmd: HashSet<PaymentMethodDataType> = HashSet::from([
199+
PaymentMethodDataType::Card,
200+
PaymentMethodDataType::GooglePay,
201+
PaymentMethodDataType::PaypalRedirect,
202+
]);
200203
utils::is_mandate_supported(pm_data, pm_type, mandate_supported_pmd, self.id())
201204
}
202205
}

0 commit comments

Comments
 (0)