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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(connector): [Adyen] Fix error message for fraud check from Adyen connector (#1763)
Prasunna Soppa78ce8f756357
diff --git a/crates/router/src/connector/adyen/transformers.rs b/crates/router/src/connector/adyen/transformers.rsindex d04fd1b84e..dbb48f60bc 100644--- a/crates/router/src/connector/adyen/transformers.rs+++ b/crates/router/src/connector/adyen/transformers.rs@@ -2003,8 +2003,9 @@ pub fn get_adyen_response(.unwrap_or_else(|| consts::NO_ERROR_CODE.to_string()),message: response.refusal_reason+ .clone().unwrap_or_else(|| consts::NO_ERROR_MESSAGE.to_string()),- reason: None,+ reason: response.refusal_reason,status_code,})} else {diff --git a/crates/router/tests/connectors/adyen_uk_ui.rs b/crates/router/tests/connectors/adyen_uk_ui.rsindex e6f64614b1..6cf4aa2782 100644--- a/crates/router/tests/connectors/adyen_uk_ui.rs+++ b/crates/router/tests/connectors/adyen_uk_ui.rs@@ -749,5 +749,3 @@ fn should_make_adyen_dana_payment_test() {fn should_make_adyen_online_banking_fpx_payment_test() {tester!(should_make_adyen_online_banking_fpx_payment);}--// https://hs-payments-test.netlify.app/paypal-redirect?amount=70.00&country=US¤cy=USD&mandate_data[customer_acceptance][acceptance_type]=offline&mandate_data[customer_acceptance][accepted_at]=1963-05-03T04:07:52.723Z&mandate_data[customer_acceptance][online][ip_address]=127.0.0.1&mandate_data[customer_acceptance][online][user_agent]=amet%20irure%20esse&mandate_data[mandate_type][multi_use][amount]=700&mandate_data[mandate_type][multi_use][currency]=USD&apikey=dev_uFpxA0r6jjbVaxHSY3X0BZLL3erDUzvg3i51abwB1Bknu3fdiPxw475DQgnByn1z