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
test(connector): [Adyen] Add UI test for Adyen Payment methods (#1648)
Swangi Kumari2e9b78329a6b
diff --git a/.github/secrets/connector_auth.toml.gpg b/.github/secrets/connector_auth.toml.gpgindex 9f1e13ea89..806d0a5887 100644Binary files a/.github/secrets/connector_auth.toml.gpg and b/.github/secrets/connector_auth.toml.gpg differdiff --git a/.github/testcases/ui_tests.json b/.github/testcases/ui_tests.jsonindex 83805db28b..e104c42a2f 100644--- a/.github/testcases/ui_tests.json+++ b/.github/testcases/ui_tests.json@@ -309,7 +309,7 @@"id": 52,"name": "ADYEN IDEAL","connector": "adyen_uk",- "request": "{\"amount\":1000,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":1000,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://google.com\",\"billing\":{\"address\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"NL\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"bank_redirect\",\"payment_method_type\":\"ideal\",\"payment_method_data\":{\"bank_redirect\":{\"ideal\":{\"billing_details\":{\"billing_name\":\"John Doe\"},\"bank_name\":\"ing\",\"preferred_language\":\"en\",\"country\":\"NL\"}}}}"+ "request": "{\"amount\":1000,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":1000,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://hs-payments-test.netlify.app/payments/\",\"billing\":{\"address\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"NL\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"bank_redirect\",\"payment_method_type\":\"ideal\",\"payment_method_data\":{\"bank_redirect\":{\"ideal\":{\"billing_details\":{\"billing_name\":\"John Doe\"},\"bank_name\":\"ing\",\"preferred_language\":\"en\",\"country\":\"NL\"}}}}"},"53": {"id": 53,@@ -363,13 +363,13 @@"id": 61,"name": "Adyen eps","connector": "adyen_uk",- "request": "{\"amount\":1000,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":1000,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://google.com\",\"billing\":{\"address\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"AT\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"bank_redirect\",\"payment_method_type\":\"eps\",\"payment_method_data\":{\"bank_redirect\":{\"eps\":{\"billing_details\":{\"billing_name\":\"John Doe\"},\"bank_name\":\"ing\",\"preferred_language\":\"en\",\"country\":\"AT\"}}}}"+ "request": "{\"amount\":1000,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":1000,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://hs-payments-test.netlify.app/payments/\",\"billing\":{\"address\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"AT\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"bank_redirect\",\"payment_method_type\":\"eps\",\"payment_method_data\":{\"bank_redirect\":{\"eps\":{\"billing_details\":{\"billing_name\":\"John Doe\"},\"bank_name\":\"ing\",\"preferred_language\":\"en\",\"country\":\"AT\"}}}}"},"62": {"id": 62,"name": "adyen card 3ds success","connector": "adyen_uk",- "request": "{\"amount\":10000,\"currency\":\"USD\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://google.com\",\"setup_future_usage\":\"off_session\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"card_number\":\"4917 6100 0000 0000\",\"card_exp_month\":\"03\",\"card_exp_year\":\"2030\",\"card_holder_name\":\"CL-BRW1\",\"card_cvc\":\"737\"}}}"+ "request": "{\"amount\":10000,\"currency\":\"USD\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://hs-payments-test.netlify.app/payments\",\"setup_future_usage\":\"off_session\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"card_number\":\"4917 6100 0000 0000\",\"card_exp_month\":\"03\",\"card_exp_year\":\"2030\",\"card_holder_name\":\"CL-BRW1\",\"card_cvc\":\"737\"}}}"},"63": {"id": 63,@@ -405,7 +405,7 @@"id": 68,"name": "bancontact card adyen failure","connector": "adyen_uk",- "request": "{\"amount\":1000,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":1000,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://google.com\",\"billing\":{\"address\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"BE\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"bank_redirect\",\"payment_method_type\":\"bancontact_card\",\"payment_method_data\":{\"bank_redirect\":{\"bancontact_card\":{\"billing_details\":{\"billing_name\":\"John Doe\"},\"card_number\":\"6703444444444449\",\"card_exp_month\":\"03\",\"card_exp_year\":\"2030\",\"card_holder_name\":\"S. Hopper\"}}}}"+ "request": "{\"amount\":1000,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":1000,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://hs-payments-test.netlify.app/payments\",\"billing\":{\"address\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"BE\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"bank_redirect\",\"payment_method_type\":\"bancontact_card\",\"payment_method_data\":{\"bank_redirect\":{\"bancontact_card\":{\"billing_details\":{\"billing_name\":\"John Doe\"},\"card_number\":\"6703444444444449\",\"card_exp_month\":\"03\",\"card_exp_year\":\"2030\",\"card_holder_name\":\"S. Hopper\"}}}}"},"69": {"id": 69,@@ -447,7 +447,7 @@"id": 75,"name": "wechatpay adyen","connector": "adyen_uk",- "request": "{\"amount\":6540,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":6540,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+1\",\"description\":\"Its my first payment request\",\"authentication_type\":\"no_three_ds\",\"return_url\":\"https://google.com/\",\"payment_method\":\"wallet\",\"payment_method_type\":\"we_chat_pay\",\"payment_method_data\":{\"wallet\":{\"we_chat_pay_redirect\":{}}}}"+ "request": "{\"amount\":6540,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":6540,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+1\",\"description\":\"Its my first payment request\",\"authentication_type\":\"no_three_ds\",\"return_url\":\"https://hs-payments-test.netlify.app/payments/\",\"payment_method\":\"wallet\",\"payment_method_type\":\"we_chat_pay\",\"payment_method_data\":{\"wallet\":{\"we_chat_pay_redirect\":{}}}}"},"76": {"id": 76,@@ -465,7 +465,7 @@"id": 78,"name": "ADYEN Online banking FINLAND","connector": "adyen_uk",- "request": "{\"amount\":1000,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":1000,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://google.com\",\"billing\":{\"address\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"FI\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"bank_redirect\",\"payment_method_type\":\"online_banking_finland\",\"payment_method_data\":{\"bank_redirect\":{\"online_banking_finland\":{\"billing_details\":{\"billing_name\":\"John Doe\"},\"bank_name\":\"ing\",\"preferred_language\":\"en\",\"country\":\"FI\"}}}}"+ "request": "{\"amount\":1000,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":1000,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://hs-payments-test.netlify.app/payments/\",\"billing\":{\"address\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"FI\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"bank_redirect\",\"payment_method_type\":\"online_banking_finland\",\"payment_method_data\":{\"bank_redirect\":{\"online_banking_finland\":{\"billing_details\":{\"billing_name\":\"John Doe\"},\"bank_name\":\"ing\",\"preferred_language\":\"en\",\"country\":\"FI\"}}}}"},"79": {"id": 79,@@ -975,7 +975,7 @@"id": 163,"name": "Adyen ClearPay","connector": "adyen_uk",- "request": "{\"amount\":6540,\"currency\":\"GBP\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":6540,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+1\",\"description\":\"Its my first payment request\",\"authentication_type\":\"no_three_ds\",\"return_url\":\"https://google.com\",\"payment_method\":\"pay_later\",\"payment_method_type\":\"afterpay_clearpay\",\"payment_method_data\":{\"pay_later\":{\"afterpay_clearpay_redirect\":{\"billing_email\":\"[email protected]\",\"billing_name\":\"sakil\"}}},\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"GB\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"GB\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"order_details\":{\"product_name\":\"Socks\",\"amount\":7000,\"quantity\":1}}}"+ "request": "{\"amount\":6540,\"currency\":\"GBP\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":6540,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+1\",\"description\":\"Its my first payment request\",\"authentication_type\":\"no_three_ds\",\"return_url\":\"https://hs-payments-test.netlify.app/payments\",\"payment_method\":\"pay_later\",\"payment_method_type\":\"afterpay_clearpay\",\"payment_method_data\":{\"pay_later\":{\"afterpay_clearpay_redirect\":{\"billing_email\":\"[email protected]\",\"billing_name\":\"sakil\"}}},\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"GB\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"GB\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"order_details\":{\"product_name\":\"Socks\",\"amount\":7000,\"quantity\":1}}}"},"164": {"id": 164,@@ -1017,7 +1017,7 @@"id": 170,"name": "Adyen Twint","connector": "adyen_uk",- "request": "{\"amount\":6540,\"currency\":\"CHF\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":6540,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+1\",\"description\":\"Its my first payment request\",\"authentication_type\":\"no_three_ds\",\"return_url\":\"https://google.com\",\"payment_method\":\"wallet\",\"payment_method_type\":\"twint\",\"payment_method_data\":{\"wallet\":{\"twint_redirect\":{}}},\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"}}"+ "request": "{\"amount\":6540,\"currency\":\"CHF\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":6540,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+1\",\"description\":\"Its my first payment request\",\"authentication_type\":\"no_three_ds\",\"return_url\":\"https://hs-payments-test.netlify.app/payments/\",\"payment_method\":\"wallet\",\"payment_method_type\":\"twint\",\"payment_method_data\":{\"wallet\":{\"twint_redirect\":{}}},\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"}}"},"171": {"id": 171,@@ -1209,7 +1209,7 @@"id": 202,"name": "ADYEN PAYPAL","connector": "adyen_uk",- "request": "{\"amount\":1000,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":1000,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://google.com\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"DE\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"wallet\",\"payment_method_type\":\"paypal\",\"payment_method_data\":{\"wallet\":{\"paypal_redirect\":{}}}}"+ "request": "{\"amount\":1000,\"currency\":\"EUR\",\"confirm\":true,\"capture_method\":\"automatic\",\"capture_on\":\"2022-09-10T10:11:12Z\",\"amount_to_capture\":1000,\"customer_id\":\"StripeCustomer\",\"email\":\"[email protected]\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\",\"description\":\"Its my first payment request\",\"authentication_type\":\"three_ds\",\"return_url\":\"https://google.com\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"DE\"}},\"browser_info\":{\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"language\":\"nl-NL\",\"color_depth\":24,\"screen_height\":723,\"screen_width\":1536,\"time_zone\":0,\"java_enabled\":true,\"java_script_enabled\":true,\"ip_address\":\"127.0.0.1\"},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"payment_method\":\"wallet\",\"payment_method_type\":\"paypal\",\"payment_method_data\":{\"wallet\":{\"paypal_redirect\":{}}}}"},"203": {"id": 203,diff --git a/.typos.toml b/.typos.tomlindex f593d95330..32852fa8aa 100644--- a/.typos.toml+++ b/.typos.toml@@ -16,6 +16,7 @@ RegioBank = "RegioBank"SOM = "SOM" # Somalia country codeTHA = "THA" # Thailand country codeZAR = "ZAR" # South African Rand currency code+passord = "passord" # name of a css class for adyen ui testklick = "klick" # Swedish word for clicks[default.extend-words]diff --git a/crates/router/tests/connectors/adyen_uk_ui.rs b/crates/router/tests/connectors/adyen_uk_ui.rsindex 46692e63e2..7ac037121d 100644--- a/crates/router/tests/connectors/adyen_uk_ui.rs+++ b/crates/router/tests/connectors/adyen_uk_ui.rs@@ -44,11 +44,49 @@ async fn should_make_adyen_3ds_payment_success(Event::Trigger(Trigger::SendKeys(By::ClassName("input-field"), "password")),Event::Trigger(Trigger::Click(By::Id("buttonSubmit"))),Event::Trigger(Trigger::Sleep(5)),- Event::Assert(Assert::IsPresent("Google")),- Event::Assert(Assert::Contains(- Selector::QueryParamStr,- "status=succeeded",- )),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_3ds_mandate_payment(+ web_driver: WebDriver,+) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/203"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ Event::Assert(Assert::IsPresent("Mandate ID")),+ Event::Assert(Assert::IsPresent("man_")), // mandate id starting with man_+ Event::Trigger(Trigger::Click(By::Css("a.btn"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_3ds_mandate_with_zero_dollar_payment(+ web_driver: WebDriver,+) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/204"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ Event::Assert(Assert::IsPresent("Mandate ID")),+ Event::Assert(Assert::IsPresent("man_")), // mandate id starting with man_+ Event::Trigger(Trigger::Click(By::Css("a.btn"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Assert(Assert::IsPresent("succeeded")),],).await?;@@ -171,16 +209,16 @@ async fn should_make_adyen_alipay_hk_payment(web_driver: WebDriver) -> Result<()Ok(())}-async fn should_make_adyen_bizum_payment(driver: WebDriver) -> Result<(), WebDriverError> {+async fn should_make_adyen_bizum_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {let conn = AdyenSeleniumTest {};conn.make_redirection_payment(- driver,+ web_driver,vec![Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/186"))),Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),Event::Trigger(Trigger::SendKeys(By::Id("iPhBizInit"), "700000000")),Event::Trigger(Trigger::Click(By::Id("bBizInit"))),- Event::Trigger(Trigger::Click(By::ClassName("btn"))),+ Event::Trigger(Trigger::Click(By::Css("input.btn.btn-lg.btn-continue"))),Event::Assert(Assert::IsPresent("Google")),Event::Assert(Assert::Contains(Selector::QueryParamStr,@@ -197,11 +235,22 @@ async fn should_make_adyen_clearpay_payment(driver: WebDriver) -> Result<(), Webconn.make_clearpay_payment(driver,&format!("{CHEKOUT_BASE_URL}/saved/163"),+ vec![Event::Assert(Assert::IsPresent("succeeded"))],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_paypal_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_paypal_payment(+ web_driver,+ &format!("{CHEKOUT_BASE_URL}/saved/202"),vec![Event::Assert(Assert::IsPresent("Google")),Event::Assert(Assert::ContainsAny(Selector::QueryParamStr,- vec!["status=succeeded"],+ vec!["status=processing"], //final status of this payment method will remain in processing state)),],)@@ -209,20 +258,274 @@ async fn should_make_adyen_clearpay_payment(driver: WebDriver) -> Result<(), WebOk(())}-async fn should_make_adyen_twint_payment(driver: WebDriver) -> Result<(), WebDriverError> {+async fn should_make_adyen_ach_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {let conn = AdyenSeleniumTest {};conn.make_redirection_payment(- driver,+ web_driver,vec![- Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/170"))),+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/58"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_sepa_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/51"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_bacs_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/54"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Assert(Assert::IsPresent("Status")),+ Event::Assert(Assert::IsPresent("processing")), //final status of this payment method will remain in processing state+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_ideal_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/52"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Trigger(Trigger::Click(By::ClassName("btnLink"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_eps_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/61"))),Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),- Event::Trigger(Trigger::Sleep(5)),Event::Trigger(Trigger::Click(By::Css("button[value='authorised']"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_blik_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/64"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Assert(Assert::IsPresent("Status")),+ Event::Assert(Assert::IsPresent("processing")), //final status of this payment method will remain in processing state+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_bancontact_card_payment(+ web_driver: WebDriver,+) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ let user = &conn+ .get_configs()+ .automation_configs+ .unwrap()+ .adyen_bancontact_username+ .unwrap();++ let pass = &conn+ .get_configs()+ .automation_configs+ .unwrap()+ .adyen_bancontact_pass+ .unwrap();++ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/68"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Trigger(Trigger::SendKeys(By::Id("username"), user)),+ Event::Trigger(Trigger::SendKeys(By::Id("password"), pass)),+ Event::Trigger(Trigger::Click(By::ClassName("button"))),+ Event::Trigger(Trigger::Sleep(2)),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_wechatpay_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/75"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Trigger(Trigger::Click(By::Css("button[value='authorised']"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_mbway_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/196"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Assert(Assert::IsPresent("Status")),+ Event::Assert(Assert::IsPresent("processing")), //final status of this payment method will remain in processing state+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_ebanking_fi_payment(+ web_driver: WebDriver,+) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/78"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Trigger(Trigger::Click(By::ClassName("css-ns0tbt"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_onlinebanking_pl_payment(+ web_driver: WebDriver,+) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/197"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Trigger(Trigger::Click(By::Id("user_account_pbl_correct"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++#[ignore]+async fn should_make_adyen_giropay_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/70"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Trigger(Trigger::SendKeys(+ By::Css("input[id='tags']"),+ "Testbank Fiducia 44448888 GENODETT488",+ )),+ Event::Trigger(Trigger::Click(By::Css("input[id='tags']"))),+ Event::Trigger(Trigger::Sleep(3)),+ Event::Trigger(Trigger::Click(By::Id("ui-id-3"))),+ Event::Trigger(Trigger::Click(By::ClassName("blueButton"))),+ Event::Trigger(Trigger::SendKeys(By::Name("sc"), "10")),+ Event::Trigger(Trigger::SendKeys(By::Name("extensionSc"), "4000")),+ Event::Trigger(Trigger::SendKeys(By::Name("customerName1"), "Hopper")),+ Event::Trigger(Trigger::SendKeys(+ By::Name("customerIBAN"),+ "DE36444488881234567890",+ )),+ Event::Trigger(Trigger::Click(By::Css("input[value='Absenden']"))),Event::Assert(Assert::IsPresent("Google")),Event::Assert(Assert::ContainsAny(Selector::QueryParamStr,- vec!["status=succeeded"],+ vec!["status=processing"], //final status of this payment method will remain in processing state+ )),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_twint_payment(driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/170"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Trigger(Trigger::Click(By::Css("button[value='authorised']"))),+ Event::Assert(Assert::IsPresent("succeeded")),+ ],+ )+ .await?;+ Ok(())+}++async fn should_make_adyen_walley_payment(web_driver: WebDriver) -> Result<(), WebDriverError> {+ let conn = AdyenSeleniumTest {};+ conn.make_redirection_payment(+ web_driver,+ vec![+ Event::Trigger(Trigger::Goto(&format!("{CHEKOUT_BASE_URL}/saved/198"))),+ Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Assert(Assert::IsPresent("Teknikmössor AB")),+ Event::Trigger(Trigger::SwitchFrame(By::ClassName(+ "collector-checkout-iframe",+ ))),+ Event::Trigger(Trigger::Click(By::Id("purchase"))),+ Event::Trigger(Trigger::Sleep(10)),+ Event::Trigger(Trigger::SwitchFrame(By::Css(+ "iframe[title='Walley Modal - idp-choices']",+ ))),+ Event::Assert(Assert::IsPresent("Identifisering")),+ Event::Trigger(Trigger::Click(By::Id("optionLoggInnMedBankId"))),+ Event::Trigger(Trigger::SwitchFrame(By::Css("iframe[title='BankID']"))),+ Event::Assert(Assert::IsPresent("Engangskode")),+ Event::Trigger(Trigger::SendKeys(By::Css("input[type='password']"), "otp")),+ Event::Trigger(Trigger::Sleep(4)),+ Event::Trigger(Trigger::Click(By::Css("button[title='Neste']"))),+ Event::Assert(Assert::IsPresent("Ditt BankID-passord")),+ Event::Trigger(Trigger::Sleep(4)),+ Event::Trigger(Trigger::SendKeys(+ By::Css("input[type='password']"),+ "qwer1234",)),+ Event::Trigger(Trigger::Click(By::Css("button[title='Neste']"))),+ Event::Trigger(Trigger::SwitchTab(Position::Prev)),+ Event::Assert(Assert::IsPresent("succeeded")),],).await?;@@ -262,6 +565,18 @@ fn should_make_adyen_3ds_payment_failed_test() {tester!(should_make_adyen_3ds_payment_failed);}+#[test]+#[serial]+fn should_make_adyen_3ds_mandate_payment_test() {+ tester!(should_make_adyen_3ds_mandate_payment);+}++#[test]+#[serial]+fn should_make_adyen_3ds_mandate_with_zero_dollar_payment_test() {+ tester!(should_make_adyen_3ds_mandate_with_zero_dollar_payment);+}+#[test]#[serial]fn should_make_adyen_3ds_payment_success_test() {@@ -292,4 +607,90 @@ fn should_make_adyen_twint_payment_test() {tester!(should_make_adyen_twint_payment);}+#[test]+#[serial]+fn should_make_adyen_paypal_payment_test() {+ tester!(should_make_adyen_paypal_payment);+}++#[test]+#[serial]+fn should_make_adyen_ach_payment_test() {+ tester!(should_make_adyen_ach_payment);+}++#[test]+#[serial]+fn should_make_adyen_sepa_payment_test() {+ tester!(should_make_adyen_sepa_payment);+}++#[test]+#[serial]+fn should_make_adyen_bacs_payment_test() {+ tester!(should_make_adyen_bacs_payment);+}++#[test]+#[serial]+fn should_make_adyen_ideal_payment_test() {+ tester!(should_make_adyen_ideal_payment);+}++#[test]+#[serial]+fn should_make_adyen_eps_payment_test() {+ tester!(should_make_adyen_eps_payment);+}++#[test]+#[serial]+fn should_make_adyen_blik_payment_test() {+ tester!(should_make_adyen_blik_payment);+}++#[test]+#[serial]+fn should_make_adyen_bancontact_card_payment_test() {+ tester!(should_make_adyen_bancontact_card_payment);+}++#[test]+#[serial]+fn should_make_adyen_wechatpay_payment_test() {+ tester!(should_make_adyen_wechatpay_payment);+}++#[test]+#[serial]+fn should_make_adyen_mbway_payment_test() {+ tester!(should_make_adyen_mbway_payment);+}++#[test]+#[serial]+fn should_make_adyen_ebanking_fi_payment_test() {+ tester!(should_make_adyen_ebanking_fi_payment);+}++#[test]+#[serial]+fn should_make_adyen_onlinebanking_pl_payment_test() {+ tester!(should_make_adyen_onlinebanking_pl_payment);+}++#[ignore]+#[test]+#[serial]+fn should_make_adyen_giropay_payment_test() {+ tester!(should_make_adyen_giropay_payment);+}++#[ignore]+#[test]+#[serial]+fn should_make_adyen_walley_payment_test() {+ tester!(should_make_adyen_walley_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_uFpxA0r6jjbVaxHSY3X0BZLL3erDUzvg3i51abwB1Bknu3fdiPxw475DQgnByn1zdiff --git a/crates/router/tests/connectors/selenium.rs b/crates/router/tests/connectors/selenium.rsindex d8f78f3f45..9b547890cc 100644--- a/crates/router/tests/connectors/selenium.rs+++ b/crates/router/tests/connectors/selenium.rs@@ -553,6 +553,14 @@ pub trait SeleniumTest {vec![Event::Trigger(Trigger::Goto(url)),Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),+ Event::Trigger(Trigger::Sleep(5)),+ Event::RunIf(+ Assert::IsPresentNow("Manage Cookies"),+ vec![+ Event::Trigger(Trigger::Click(By::Css("button.cookie-setting-link"))),+ Event::Trigger(Trigger::Click(By::Id("accept-recommended-btn-handler"))),+ ],+ ),],).await?;@@ -573,18 +581,25 @@ pub trait SeleniumTest {let mut clearpay_actions = vec![Event::Trigger(Trigger::Sleep(3)),Event::EitherOr(- Assert::IsPresent("Review your order | Clearpay"),- vec![Event::Trigger(Trigger::Click(By::ClassName("ai_az")))],+ Assert::IsPresent("Please enter your password"),vec![- Event::Trigger(Trigger::SendKeys(By::ClassName("n8_fl"), email)),- Event::Trigger(Trigger::Click(By::ClassName("ai_az"))),+ Event::Trigger(Trigger::SendKeys(By::Css("input[name='password']"), pass)),+ Event::Trigger(Trigger::Click(By::Css("button.a_l.a_i.a_n.a_m"))),+ ],+ vec![+ Event::Trigger(Trigger::SendKeys(+ By::Css("input[name='identifier']"),+ email,+ )),+ Event::Trigger(Trigger::Click(By::Css("button[type='submit']"))),Event::Trigger(Trigger::Sleep(3)),- Event::Trigger(Trigger::SendKeys(By::ClassName("n8_fl"), pass)),- Event::Trigger(Trigger::Click(By::ClassName("ai_az"))),- Event::Trigger(Trigger::Sleep(10)), //Time needed for login- Event::Trigger(Trigger::Click(By::ClassName("ai_az"))),+ Event::Trigger(Trigger::SendKeys(By::Css("input[name='password']"), pass)),+ Event::Trigger(Trigger::Click(By::Css("button[type='submit']"))),],),+ Event::Trigger(Trigger::Click(By::Css(+ "button[data-testid='summary-button']",+ ))),];clearpay_actions.extend(actions);self.complete_actions(&driver, clearpay_actions).awaitdiff --git a/crates/test_utils/src/connector_auth.rs b/crates/test_utils/src/connector_auth.rsindex 7b1ae8f49d..d478e32955 100644--- a/crates/test_utils/src/connector_auth.rs+++ b/crates/test_utils/src/connector_auth.rs@@ -260,4 +260,6 @@ pub struct AutomationConfigs {pub authorizedotnet_gateway_merchant_id: Option<String>,pub run_minimum_steps: Option<bool>,pub airwallex_merchant_name: Option<String>,+ pub adyen_bancontact_username: Option<String>,+ pub adyen_bancontact_pass: Option<String>,}