Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat(connector): migrate Fiuu connector to fiuu.com domain (#14353)

Aniket Burman5973547ac654
diff --git a/.github/data/gateway_status_map.csv b/.github/data/gateway_status_map.csv
index 1cc5bda5e6..e21f6785a5 100644
--- a/.github/data/gateway_status_map.csv
+++ b/.github/data/gateway_status_map.csv
@@ -16,7 +16,7 @@ paypal,Payment,Authorize,0500,DO_NOT_HONOR.,failure,,retry,2026-03-16 09:47:18,2
trustpay,Payment,Authorize,85,the card is not enrolled for a supported 3DS version,failure,,retry,2026-03-16 09:53:07,2026-03-16 09:53:18,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
checkout,Payment,Authorize,2005C,Transaction not supported/blocked by issuer,failure,,retry,2026-03-16 10:48:43,2026-03-16 10:48:43,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
finix,Payment,Authorize,DO_NOT_HONOR,The card was declined for an unknown reason. The cardholder needs to contact their issuing bank for more information.,failure,,retry,2026-03-16 11:02:08,2026-03-16 11:02:08,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
-fiuu,Payment,Authorize,05,Do not honor,failure,,retry,2026-03-16 11:25:15,2026-03-16 11:25:15,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
+fiuu,Payment,Authorize,CC_82,Invalid CVV/CVC,failure,,retry,2026-03-16 11:25:15,2026-03-16 11:25:15,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
nmi,Payment,Authorize,200,DECLINE,failure,,retry,2025-12-02 07:40:50,2025-12-24 09:05:16,TRUE,UE_3000,Technical issue with PSP,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,do_not_honor,Do not honor,Something went wrong. Try again or contact your bank
bankofamerica,Payment,Authorize,INVALID_DATA,INVALID_DATA,failure,,retry,2025-12-02 07:40:24,2026-03-16 12:06:28,TRUE,UE_4000,Issue with Integration,processor_decline_incorrect_data,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,missing_or_invalid_param,Missing or invalid parameter,Something went wrong. Try another payment method or contact your bank
datatrans,Payment,Authorize,DECLINED,Declined,failure,,retry,2026-03-16 12:10:53,2026-03-16 12:10:53,TRUE,,,,false,"{""retry"": {""decision"": ""retry"", ""step_up_possible"": true, ""clear_pan_possible"": false, ""alternate_network_possible"": false}}",retry,,,
diff --git a/.github/workflows/cypress-tests-runner.yml b/.github/workflows/cypress-tests-runner.yml
index bb4bb6dd07..ec5a4036f1 100644
--- a/.github/workflows/cypress-tests-runner.yml
+++ b/.github/workflows/cypress-tests-runner.yml
@@ -20,7 +20,7 @@ env:
MANDATORY_PAYMENTS_CONNECTORS_BATCH_1: "stripe"
OPTIONAL_PAYMENTS_CONNECTORS_BATCH_1: "worldpay braintree cryptopay paypal worldpayxml volt"
OPTIONAL_PAYMENTS_CONNECTORS_BATCH_2: "gigadat checkout redsys novalnet noon"
- OPTIONAL_PAYMENTS_CONNECTORS_BATCH_3: "loonio zift airwallex fiuu"
+ OPTIONAL_PAYMENTS_CONNECTORS_BATCH_3: "loonio zift airwallex"
ALPHA_PAYMENTS_CONNECTORS: "celero silverflow"
PLATFORM_CONNECTORS: "stripe"
EXTENDED_PAYMENTS_CONNECTORS_BATCH_1: "bluesnap gigadat loonio nmi"
@@ -28,7 +28,7 @@ env:
EXTENDED_PAYOUTS_CONNECTORS: "adyenplatform wise"
MOCK_PAYMENTS_CONNECTORS_BATCH_1: "gigadat zift loonio payload redsys worldpayxml"
MOCK_PAYMENTS_CONNECTORS_BATCH_2: "cybersource braintree nmi calida adyen peachpayments"
- MOCK_PAYMENTS_CONNECTORS_BATCH_3: "novalnet checkout authorizedotnet cashtocode fiuu nexixpay"
+ MOCK_PAYMENTS_CONNECTORS_BATCH_3: "novalnet checkout authorizedotnet cashtocode nexixpay"
MOCK_PAYMENTS_CONNECTORS_BATCH_4: "finix"
MOCK_PAYOUTS_CONNECTORS: "adyenplatform wise"
RUST_BACKTRACE: short
diff --git a/config/config.example.toml b/config/config.example.toml
index 9d6c23f0fb..dcc74aac6f 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -389,10 +389,9 @@ finix.base_url = "https://finix.sandbox-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
fiservcommercehub.base_url = "https://connect-cert.fiservapis.com/ch/"
fiservemea.base_url = "https://prod.emea.api.fiservapps.com/sandbox"
-fiuu.base_url = "https://sandbox.merchant.razer.com/"
+fiuu.base_url = "https://sandbox-payment.fiuu.com/"
flexiti.base_url = "https://onlineapi.flexiti.fi/flexiti/online-api/"
-fiuu.secondary_base_url="https://sandbox.merchant.razer.com/"
-fiuu.third_base_url="https://api.merchant.razer.com/"
+fiuu.secondary_base_url="https://sandbox-api.fiuu.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
gigadat.base_url = "https://interac.express-connect.com/"
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml
index 6bd38318ba..1c4f5b3d33 100644
--- a/config/deployments/integration_test.toml
+++ b/config/deployments/integration_test.toml
@@ -87,10 +87,9 @@ finix.base_url = "https://finix.sandbox-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
fiservcommercehub.base_url = "https://connect-cert.fiservapis.com/ch/"
fiservemea.base_url = "https://prod.emea.api.fiservapps.com/sandbox"
-fiuu.base_url = "https://sandbox.merchant.razer.com/"
+fiuu.base_url = "https://sandbox-payment.fiuu.com/"
flexiti.base_url = "https://onlineapi.flexiti.fi/flexiti/online-api/"
-fiuu.secondary_base_url="https://sandbox.merchant.razer.com/"
-fiuu.third_base_url="https://api.merchant.razer.com/"
+fiuu.secondary_base_url="https://sandbox-api.fiuu.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
gigadat.base_url = "https://interac.express-connect.com/"
diff --git a/config/deployments/production.toml b/config/deployments/production.toml
index f4dbd94544..758dc115aa 100644
--- a/config/deployments/production.toml
+++ b/config/deployments/production.toml
@@ -90,10 +90,9 @@ finix.base_url = "https://finix.live-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
fiservcommercehub.base_url = "https://connect.fiservapis.com/ch/"
fiservemea.base_url = "https://prod.emea.api.fiservapps.com"
-fiuu.base_url = "https://pay.merchant.razer.com/"
+fiuu.base_url = "https://pay.fiuu.com/"
flexiti.base_url = "https://onlineapi.flexiti.fi/flexiti/online-api/"
-fiuu.secondary_base_url="https://api.merchant.razer.com/"
-fiuu.third_base_url="https://api.merchant.razer.com/"
+fiuu.secondary_base_url="https://api.fiuu.com/"
forte.base_url = "https://api.forte.net/v3"
getnet.base_url = "https://api.getneteurope.com/engine/rest"
gigadat.base_url = "https://interac.express-connect.com/"
diff --git a/config/deployments/sandbox.toml b/config/deployments/sandbox.toml
index 1d7bc80d31..5bf68e7640 100644
--- a/config/deployments/sandbox.toml
+++ b/config/deployments/sandbox.toml
@@ -90,10 +90,9 @@ finix.base_url = "https://finix.sandbox-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
fiservcommercehub.base_url = "https://connect-cert.fiservapis.com/ch/"
fiservemea.base_url = "https://prod.emea.api.fiservapps.com/sandbox"
-fiuu.base_url = "https://sandbox.merchant.razer.com/"
+fiuu.base_url = "https://sandbox-payment.fiuu.com/"
flexiti.base_url = "https://onlineapi.flexiti.fi/flexiti/online-api/"
-fiuu.secondary_base_url="https://sandbox.merchant.razer.com/"
-fiuu.third_base_url="https://api.merchant.razer.com/"
+fiuu.secondary_base_url="https://sandbox-api.fiuu.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
gigadat.base_url = "https://interac.express-connect.com/"
diff --git a/config/development.toml b/config/development.toml
index bff9845c0e..889d67806c 100644
--- a/config/development.toml
+++ b/config/development.toml
@@ -405,10 +405,9 @@ finix.base_url = "https://finix.sandbox-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
fiservcommercehub.base_url = "https://connect-cert.fiservapis.com/ch/"
fiservemea.base_url = "https://prod.emea.api.fiservapps.com/sandbox"
-fiuu.base_url = "https://sandbox.merchant.razer.com/"
+fiuu.base_url = "https://sandbox-payment.fiuu.com/"
flexiti.base_url = "https://onlineapi.flexiti.fi/flexiti/online-api/"
-fiuu.secondary_base_url = "https://sandbox.merchant.razer.com/"
-fiuu.third_base_url = "https://api.merchant.razer.com/"
+fiuu.secondary_base_url = "https://sandbox-api.fiuu.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
gigadat.base_url = "https://interac.express-connect.com/"
diff --git a/config/docker_compose.toml b/config/docker_compose.toml
index 920f072e30..fe17b96416 100644
--- a/config/docker_compose.toml
+++ b/config/docker_compose.toml
@@ -296,10 +296,9 @@ finix.base_url = "https://finix.sandbox-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
fiservcommercehub.base_url = "https://connect-cert.fiservapis.com/ch/"
fiservemea.base_url = "https://prod.emea.api.fiservapps.com/sandbox"
-fiuu.base_url = "https://sandbox.merchant.razer.com/"
+fiuu.base_url = "https://sandbox-payment.fiuu.com/"
flexiti.base_url = "https://onlineapi.flexiti.fi/flexiti/online-api/"
-fiuu.secondary_base_url = "https://sandbox.merchant.razer.com/"
-fiuu.third_base_url = "https://api.merchant.razer.com/"
+fiuu.secondary_base_url = "https://sandbox-api.fiuu.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
gigadat.base_url = "https://interac.express-connect.com/"
diff --git a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs b/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
index 19fdd12274..25f76eeee0 100644
--- a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
@@ -826,7 +826,7 @@ pub struct FiuuRecurringResponse {
#[serde(rename = "orderid")]
order_id: Option<String>,
#[serde(rename = "tranID")]
- tran_id: Option<String>,
+ tran_id: Option<u64>,
reason: Option<String>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
@@ -948,18 +948,6 @@ impl TryFrom<PaymentsResponseRouterData<FiuuPaymentsResponse>> for PaymentsAutho
})
}
RequestData::NonThreeDS(non_threeds_data) => {
- let mandate_reference =
- non_threeds_data
- .extra_parameters
- .as_ref()
- .and_then(|extra_p| {
- extra_p.token.as_ref().map(|token| MandateReference {
- connector_mandate_id: Some(token.clone().expose()),
- payment_method_id: None,
- mandate_metadata: None,
- connector_mandate_request_reference_id: None,
- })
- });
let status = match non_threeds_data.status.as_str() {
"00" => {
if item.data.request.is_auto_capture()? {
@@ -995,6 +983,15 @@ impl TryFrom<PaymentsResponseRouterData<FiuuPaymentsResponse>> for PaymentsAutho
connector_metadata: None,
})
} else {
+ let mandate_reference =
+ non_threeds_data.extra_parameters.as_ref().and_then(|ep| {
+ ep.token.as_ref().map(|token| MandateReference {
+ connector_mandate_id: Some(token.clone().expose()),
+ payment_method_id: None,
+ mandate_metadata: None,
+ connector_mandate_request_reference_id: None,
+ })
+ });
Ok(PaymentsResponseData::TransactionResponse {
resource_id: ResponseId::ConnectorTransactionId(data.txn_id.clone()),
redirection_data: Box::new(None),
@@ -1026,9 +1023,8 @@ impl TryFrom<PaymentsResponseRouterData<FiuuPaymentsResponse>> for PaymentsAutho
);
let connector_transaction_id = recurring_response
.tran_id
- .as_ref()
.map_or(ResponseId::NoResponseId, |tran_id| {
- ResponseId::ConnectorTransactionId(tran_id.clone())
+ ResponseId::ConnectorTransactionId(tran_id.to_string())
});
let response = if status == common_enums::AttemptStatus::Failure {
Err(ErrorResponse {
@@ -1043,7 +1039,9 @@ impl TryFrom<PaymentsResponseRouterData<FiuuPaymentsResponse>> for PaymentsAutho
reason: recurring_response.reason.clone(),
status_code: item.http_code,
attempt_status: None,
- connector_transaction_id: recurring_response.tran_id.clone(),
+ connector_transaction_id: recurring_response
+ .tran_id
+ .map(|id| id.to_string()),
connector_response_reference_id: None,
network_advice_code: None,
network_decline_code: None,
@@ -1764,11 +1762,11 @@ impl TryFrom<&PaymentsCancelRouterData> for FiuuPaymentCancelRequest {
let auth = FiuuAuthType::try_from(&item.connector_auth_type)?;
let txn_id = item.request.connector_transaction_id.clone();
let merchant_id = auth.merchant_id.peek().to_string();
- let secret_key = auth.secret_key.peek().to_string();
+ let verify_key = auth.verify_key.peek().to_string();
Ok(Self {
txn_id: txn_id.clone(),
domain: merchant_id.clone(),
- skey: calculate_signature(format!("{txn_id}{merchant_id}{secret_key}"))?,
+ skey: calculate_signature(format!("{txn_id}{merchant_id}{verify_key}"))?,
})
}
}
diff --git a/crates/hyperswitch_domain_models/src/connector_endpoints.rs b/crates/hyperswitch_domain_models/src/connector_endpoints.rs
index a477a7f1eb..77c7324a8d 100644
--- a/crates/hyperswitch_domain_models/src/connector_endpoints.rs
+++ b/crates/hyperswitch_domain_models/src/connector_endpoints.rs
@@ -63,7 +63,7 @@ pub struct Connectors {
pub fiserv: ConnectorParams,
pub fiservcommercehub: ConnectorParams,
pub fiservemea: ConnectorParams,
- pub fiuu: ConnectorParamsWithThreeUrls,
+ pub fiuu: ConnectorParamsWithSecondaryBaseUrl,
pub flexiti: ConnectorParams,
pub forte: ConnectorParams,
pub getnet: ConnectorParams,
diff --git a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
index e14a34b531..3f4d47efa1 100644
--- a/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
+++ b/cypress-tests/cypress/e2e/configs/Payment/Fiuu.js
@@ -8,19 +8,19 @@ import {
} from "./Commons";
const successfulNo3DSCardDetails = {
- card_number: "5105105105105100",
+ card_number: "5567630009904309",
card_exp_month: "12",
- card_exp_year: "2030",
+ card_exp_year: "2049",
card_holder_name: "joseph Doe",
- card_cvc: "444",
+ card_cvc: "433",
};
const successfulThreeDSTestCardDetails = {
- card_number: "4111111111111111",
+ card_number: "4229989999000012",
card_exp_month: "12",
card_exp_year: "2031",
card_holder_name: "joseph Doe",
- card_cvc: "444",
+ card_cvc: "871",
};
const failedNo3DSCardDetails = {
@@ -167,6 +167,7 @@ export const connectorDetails = {
"3DSManualCapture": {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulThreeDSTestCardDetails,
},
@@ -185,6 +186,7 @@ export const connectorDetails = {
"3DSAutoCapture": {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulThreeDSTestCardDetails,
},
@@ -203,6 +205,7 @@ export const connectorDetails = {
No3DSManualCapture: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
},
@@ -221,6 +224,7 @@ export const connectorDetails = {
No3DSAutoCapture: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
},
@@ -273,6 +277,15 @@ export const connectorDetails = {
},
},
},
+ VoidAfterConfirm: {
+ Request: {},
+ Response: {
+ status: 200,
+ body: {
+ status: "cancelled",
+ },
+ },
+ },
Refund: {
Request: {
amount: 6000,
@@ -280,7 +293,7 @@ export const connectorDetails = {
Response: {
status: 200,
body: {
- status: "pending",
+ status: "succeeded",
},
},
},
@@ -291,7 +304,7 @@ export const connectorDetails = {
Response: {
status: 200,
body: {
- status: "pending",
+ status: "succeeded",
},
},
},
@@ -299,13 +312,36 @@ export const connectorDetails = {
Response: {
status: 200,
body: {
- status: "pending",
+ status: "succeeded",
+ },
+ },
+ },
+ manualPaymentRefund: {
+ Request: {
+ amount: 6000,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
+ },
+ },
+ },
+ manualPaymentPartialRefund: {
+ Request: {
+ amount: 2000,
+ },
+ Response: {
+ status: 200,
+ body: {
+ status: "succeeded",
},
},
},
MandateSingleUse3DSAutoCapture: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulThreeDSTestCardDetails,
},
@@ -323,6 +359,7 @@ export const connectorDetails = {
MandateSingleUse3DSManualCapture: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulThreeDSTestCardDetails,
},
@@ -341,6 +378,7 @@ export const connectorDetails = {
Request: {
amount: 6000,
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
billing: billingAddress,
@@ -359,6 +397,7 @@ export const connectorDetails = {
Request: {
amount: 6000,
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
billing: billingAddress,
@@ -377,6 +416,7 @@ export const connectorDetails = {
Request: {
amount: 6000,
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
billing: billingAddress,
@@ -395,6 +435,7 @@ export const connectorDetails = {
Request: {
amount: 6000,
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
billing: billingAddress,
@@ -412,6 +453,7 @@ export const connectorDetails = {
MandateMultiUse3DSAutoCapture: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulThreeDSTestCardDetails,
},
@@ -429,6 +471,7 @@ export const connectorDetails = {
MandateMultiUse3DSManualCapture: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulThreeDSTestCardDetails,
},
@@ -528,6 +571,7 @@ export const connectorDetails = {
Request: {
amount: 6000,
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
billing: billingAddress,
@@ -547,6 +591,7 @@ export const connectorDetails = {
SaveCardUseNo3DSAutoCapture: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
},
@@ -565,6 +610,7 @@ export const connectorDetails = {
SaveCardUseNo3DSManualCapture: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
billing: billingAddress,
@@ -584,6 +630,7 @@ export const connectorDetails = {
SaveCardUseNo3DSAutoCaptureOffSession: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
billing: billingAddress,
@@ -603,6 +650,7 @@ export const connectorDetails = {
SaveCardUse3DSAutoCaptureOffSession: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulThreeDSTestCardDetails,
billing: billingAddress,
@@ -621,6 +669,7 @@ export const connectorDetails = {
SaveCardUseNo3DSManualCaptureOffSession: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
billing: billingAddress,
@@ -653,6 +702,7 @@ export const connectorDetails = {
Request: {
amount: 6000,
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
billing: billingAddress,
@@ -673,6 +723,7 @@ export const connectorDetails = {
Request: {
amount: 6000,
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulThreeDSTestCardDetails,
billing: billingAddress,
@@ -694,6 +745,7 @@ export const connectorDetails = {
Request: {
amount: 6000,
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulThreeDSTestCardDetails,
billing: billingAddress,
@@ -714,6 +766,7 @@ export const connectorDetails = {
PaymentConfirmWithShippingCost: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
},
@@ -739,6 +792,7 @@ export const connectorDetails = {
Request: {
amount: 0,
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
},
@@ -814,9 +868,25 @@ export const connectorDetails = {
},
},
},
+ CaptureGreaterAmount: {
+ Request: {
+ amount_to_capture: 6000000,
+ },
+ Response: {
+ status: 400,
+ body: {
+ error: {
+ type: "invalid_request",
+ message: "amount_to_capture is greater than amount",
+ code: "IR_06",
+ },
+ },
+ },
+ },
No3DSFailPayment: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: failedNo3DSCardDetails,
},
@@ -828,8 +898,8 @@ export const connectorDetails = {
status: 200,
body: {
status: "failed",
- error_code: "05",
- error_message: "Do not honor",
+ error_code: "CC_82",
+ error_message: "Invalid CVV/CVC",
unified_code: "UE_9000",
unified_message: "Something went wrong",
},
@@ -928,6 +998,7 @@ export const connectorDetails = {
ManualRetryPaymentDisabled: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
},
@@ -948,6 +1019,7 @@ export const connectorDetails = {
ManualRetryPaymentEnabled: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
},
@@ -967,6 +1039,7 @@ export const connectorDetails = {
ManualRetryPaymentCutoffExpired: {
Request: {
payment_method: "card",
+ payment_method_type: "credit",
payment_method_data: {
card: successfulNo3DSCardDetails,
},
diff --git a/cypress-tests/cypress/support/redirectionHandler.js b/cypress-tests/cypress/support/redirectionHandler.js
index 4f90602ea1..12b9eddb16 100644
--- a/cypress-tests/cypress/support/redirectionHandler.js
+++ b/cypress-tests/cypress/support/redirectionHandler.js
@@ -2321,6 +2321,57 @@ function bankRedirectRedirection(
cy.wait(5000);
verifyUrl = false;
+ } else if (
+ connectorId === "fiuu" &&
+ paymentMethodType === "online_banking_fpx"
+ ) {
+ // Fiuu FPX: sandbox-payment.fiuu.com auto-redirects to bank-simulator.fiuu.com
+ // which is a different origin. Use cy.origin() to handle the cross-origin bank
+ // login, TAC request, OTP entry, and payment confirmation.
+ cy.origin(
+ "https://bank-simulator.fiuu.com",
+ { args: { timeout: CONSTANTS.TIMEOUT } },
+ ({ timeout }) => {
+ // Wait for the login form to render before typing — the simulator
+ // renders fields asynchronously, so the fields must be awaited.
+ cy.get("#username", { timeout }).should("be.visible");
+ cy.get("#username").clear().type("Gaara", { delay: 10 });
+ cy.get("#password").clear().type("Letmepaywithsand", { delay: 10 });
+ cy.get("#login-btn", { timeout }).should("be.visible").click();
+
+ // Wait for the TAC screen to render after the async verify-login POST
+ cy.get("#tac-btn", { timeout }).should("be.visible");
+
+ // Request TAC — the click handler generates a random 6-digit code
+ // into the readonly #otp display field and reveals the pay button
+ cy.get("#tac-btn").click();
+
+ // Read the generated TAC from #otp and enter it into #tac_no
+ cy.get("#otp")
+ .invoke("val")
+ .then((tacValue) => {
+ const tac = (tacValue || "").match(/\d+/);
+ if (!tac) {
+ throw new Error(
+ `FIUU FPX: no TAC digits found in #otp (got: ${JSON.stringify(
+ tacValue
+ )})`
+ );
+ }
+ cy.get("#tac_no", { timeout })
+ .should("be.visible")
+ .should("be.enabled")
+ .clear()
+ .type(tac[0]);
+ });
+
+ // Set payment status to Approved ("00" is the default selection)
+ cy.get("#status_code", { timeout }).select("Approved");
+
+ cy.get("#pay-btn", { timeout }).should("be.visible").click();
+ }
+ );
+ verifyUrl = true;
} else {
handleFlow(
redirectionUrl,
@@ -3110,7 +3161,7 @@ function bankRedirectRedirection(
if ($body.find("#txtPassword").length > 0) {
cy.get("#txtPassword")
.clear()
- .type("letmepaywithsand", { delay: 10 });
+ .type("Letmepaywithsand", { delay: 10 });
}
if ($body.find("#login-btn").length > 0) {
@@ -3517,6 +3568,30 @@ function threeDsRedirection(
return;
}
+ // Fiuu 3DS: sandbox-payment.fiuu.com auto-submits a form to bank-simulator.fiuu.com.
+ // handleFlow's host-change detection races with the auto-submit, so we handle Fiuu
+ // explicitly with cy.origin targeting the bank simulator origin.
+ if (connectorId === "fiuu") {
+ cy.origin(
+ "https://bank-simulator.fiuu.com",
+ { args: { timeout: CONSTANTS.TIMEOUT } },
+ ({ timeout }) => {
+ cy.get('form[id="otpForm"]', { timeout })
+ .should("exist")
+ .then(() => {
+ cy.get("input#otpInput").should("not.be.disabled").type("123456");
+ cy.get('button[type="submit"].cil-btn.pay-btn').click();
+ });
+ }
+ );
+ cy.url({ timeout: CONSTANTS.TIMEOUT }).should(
+ "include",
+ new URL(expectedUrl.href).origin
+ );
+ verifyReturnUrl(redirectionUrl, expectedUrl, true);
+ return;
+ }
+
// For all other connectors, use the standard flow
waitForRedirect(redirectionUrl.href);
@@ -3726,17 +3801,11 @@ function threeDsRedirection(
break;
case "fiuu":
- cy.get('form[id="cc_form"]', { timeout: constants.TIMEOUT })
+ cy.get('form[id="otpForm"]', { timeout: constants.TIMEOUT })
.should("exist")
.then(() => {
- cy.get('button.pay-btn[name="pay"]').click();
- cy.get("div.otp")
- .invoke("text")
- .then((otpText) => {
- const otp = otpText.match(/\d+/)[0];
- cy.get("input#otp-input").should("not.be.disabled").type(otp);
- cy.get("button.pay-btn").click();
- });
+ cy.get("input#otpInput").should("not.be.disabled").type("123456");
+ cy.get('button[type="submit"].cil-btn.pay-btn').click();
});
break;
case "redsys":
diff --git a/loadtest/config/development.toml b/loadtest/config/development.toml
index c0adb31a54..f0ab753a3b 100644
--- a/loadtest/config/development.toml
+++ b/loadtest/config/development.toml
@@ -174,7 +174,6 @@ fiservemea.base_url = "https://prod.emea.api.fiservapps.com/sandbox"
fiuu.base_url = "https://sandbox.merchant.razer.com/"
flexiti.base_url = "https://onlineapi.flexiti.fi/flexiti/online-api/"
fiuu.secondary_base_url = "https://sandbox.merchant.razer.com/"
-fiuu.third_base_url = "https://api.merchant.razer.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
gigadat.base_url = "https://interac.express-connect.com/"