Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion crates/router/src/core/payments/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ pub fn filter_mca_based_on_business_profile(
if let Some(profile_id) = profile_id {
merchant_connector_accounts
.into_iter()
.filter(|mca| mca.profile_id.as_ref() == Some(&profile_id))
.filter(|mca| {
mca.profile_id.as_ref() == Some(&profile_id)
&& mca.connector_type == ConnectorType::PaymentProcessor
})
.collect::<Vec<_>>()
} else {
merchant_connector_accounts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_name": "aci",
"connector_account_details": {
"auth_type": "BodyKey",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_name": "adyen",
"connector_account_details": {
"auth_type": "BodyKey",
Expand Down Expand Up @@ -313,10 +313,7 @@
{
"type": "CARD",
"parameters": {
"allowed_auth_methods": [
"PAN_ONLY",
"CRYPTOGRAM_3DS"
],
"allowed_auth_methods": ["PAN_ONLY", "CRYPTOGRAM_3DS"],
"allowed_card_networks": [
"AMEX",
"DISCOVER",
Expand All @@ -340,14 +337,8 @@
},
"url": {
"raw": "{{baseUrl}}/account/:account_id/connectors",
"host": [
"{{baseUrl}}"
],
"path": [
"account",
":account_id",
"connectors"
],
"host": ["{{baseUrl}}"],
"path": ["account", ":account_id", "connectors"],
"variable": [
{
"key": "account_id",
Expand All @@ -357,4 +348,4 @@
]
},
"description": "Create a new Payment Connector for the merchant account. The connector could be a payment processor / facilitator / acquirer or specialised services like Fraud / Accounting etc."
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_name": "airwallex",
"connector_account_details": {
"auth_type": "BodyKey",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_name": "authorizedotnet",
"connector_account_details": {
"auth_type": "BodyKey",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_account_details": {
"auth_type": "BodyKey",
"api_key": "{{connector_api_key}}",
Expand All @@ -49,7 +49,7 @@
"url": {
"raw": "{{baseUrl}}/account/:account_id/connectors/:connector_id",
"host": ["{{baseUrl}}"],
"path": ["account", ":account_id", "connectors",":connector_id"],
"path": ["account", ":account_id", "connectors", ":connector_id"],
"variable": [
{
"key": "account_id",
Expand All @@ -61,7 +61,6 @@
"value": "{{merchant_connector_id}}",
"description": "(Required) The unique identifier for the merchant connector account"
}

]
},
"description": "Create a new Payment Connector for the merchant account. The connector could be a payment processor / facilitator / acquirer or specialised services like Fraud / Accounting etc."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_name": "bambora",
"connector_account_details": {
"auth_type": "BodyKey",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_name": "bambora",
"connector_account_details": {
"auth_type": "BodyKey",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_name": "bankofamerica",
"business_country": "US",
"business_label": "default",
Expand All @@ -57,21 +57,15 @@
"payment_method_types": [
{
"payment_method_type": "credit",
"card_networks": [
"Visa",
"Mastercard"
],
"card_networks": ["Visa", "Mastercard"],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "debit",
"card_networks": [
"Visa",
"Mastercard"
],
"card_networks": ["Visa", "Mastercard"],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
Expand All @@ -88,14 +82,8 @@
},
"url": {
"raw": "{{baseUrl}}/account/:account_id/connectors",
"host": [
"{{baseUrl}}"
],
"path": [
"account",
":account_id",
"connectors"
],
"host": ["{{baseUrl}}"],
"path": ["account", ":account_id", "connectors"],
"variable": [
{
"key": "account_id",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_name": "bankofamerica",
"business_country": "US",
"business_label": "default",
Expand All @@ -57,21 +57,15 @@
"payment_method_types": [
{
"payment_method_type": "credit",
"card_networks": [
"Visa",
"Mastercard"
],
"card_networks": ["Visa", "Mastercard"],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "debit",
"card_networks": [
"Visa",
"Mastercard"
],
"card_networks": ["Visa", "Mastercard"],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
Expand All @@ -88,14 +82,8 @@
},
"url": {
"raw": "{{baseUrl}}/account/:account_id/connectors",
"host": [
"{{baseUrl}}"
],
"path": [
"account",
":account_id",
"connectors"
],
"host": ["{{baseUrl}}"],
"path": ["account", ":account_id", "connectors"],
"variable": [
{
"key": "account_id",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_account_details": {
"auth_type": "SignatureKey",
"api_key": "{{connector_api_key}}",
Expand All @@ -54,21 +54,15 @@
"payment_method_types": [
{
"payment_method_type": "credit",
"card_networks": [
"Visa",
"Mastercard"
],
"card_networks": ["Visa", "Mastercard"],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "debit",
"card_networks": [
"Visa",
"Mastercard"
],
"card_networks": ["Visa", "Mastercard"],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
Expand All @@ -85,15 +79,8 @@
},
"url": {
"raw": "{{baseUrl}}/account/:account_id/connectors/:connector_id",
"host": [
"{{baseUrl}}"
],
"path": [
"account",
":account_id",
"connectors",
":connector_id"
],
"host": ["{{baseUrl}}"],
"path": ["account", ":account_id", "connectors", ":connector_id"],
"variable": [
{
"key": "account_id",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_name": "bluesnap",
"connector_account_details": {
"auth_type": "BodyKey",
Expand All @@ -53,25 +53,35 @@
"payment_method_types": [
{
"payment_method_type": "credit",
"card_networks": ["AmericanExpress",
"Discover",
"Interac",
"JCB",
"Mastercard",
"Visa", "DinersClub","UnionPay","RuPay"],
"card_networks": [
"AmericanExpress",
"Discover",
"Interac",
"JCB",
"Mastercard",
"Visa",
"DinersClub",
"UnionPay",
"RuPay"
],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "debit",
"card_networks": ["AmericanExpress",
"Discover",
"Interac",
"JCB",
"Mastercard",
"Visa", "DinersClub","UnionPay","RuPay"],
"card_networks": [
"AmericanExpress",
"Discover",
"Interac",
"JCB",
"Mastercard",
"Visa",
"DinersClub",
"UnionPay",
"RuPay"
],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
},
"raw_json_formatted": {
"connector_type": "fiz_operations",
"connector_type": "payment_processor",
"connector_name": "braintree",
"connector_account_details": {
"auth_type": "SignatureKey",
Expand Down
Loading
Loading