Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- prs/pr_10002.json +50 -0
- prs/pr_10009.json +29 -0
- prs/pr_10012.json +27 -0
- prs/pr_10015.json +57 -0
- prs/pr_10022.json +78 -0
- prs/pr_10025.json +50 -0
- prs/pr_10028.json +69 -0
- prs/pr_10035.json +90 -0
- prs/pr_10037.json +23 -0
- prs/pr_10044.json +64 -0
- prs/pr_10047.json +64 -0
- prs/pr_10051.json +20 -0
- prs/pr_10062.json +24 -0
- prs/pr_10071.json +48 -0
- prs/pr_10074.json +72 -0
- prs/pr_10080.json +139 -0
- prs/pr_10091.json +139 -0
- prs/pr_10105.json +22 -0
- prs/pr_10111.json +59 -0
- prs/pr_10116.json +22 -0
- prs/pr_10128.json +44 -0
- prs/pr_10133.json +62 -0
- prs/pr_10136.json +20 -0
- prs/pr_10137.json +20 -0
- prs/pr_10138.json +20 -0
- prs/pr_10148.json +20 -0
- prs/pr_10161.json +22 -0
- prs/pr_10164.json +76 -0
- prs/pr_10165.json +65 -0
- prs/pr_10167.json +27 -0
- prs/pr_10170.json +43 -0
- prs/pr_10178.json +120 -0
- prs/pr_10183.json +85 -0
- prs/pr_10191.json +64 -0
- prs/pr_10194.json +20 -0
- prs/pr_10204.json +71 -0
- prs/pr_10205.json +27 -0
- prs/pr_10211.json +29 -0
- prs/pr_6677.json +30 -0
- prs/pr_6680.json +23 -0
- prs/pr_6690.json +38 -0
- prs/pr_6705.json +51 -0
- prs/pr_6710.json +72 -0
- prs/pr_6720.json +29 -0
- prs/pr_6722.json +128 -0
- prs/pr_6725.json +135 -0
- prs/pr_6727.json +27 -0
- prs/pr_6728.json +23 -0
- prs/pr_6730.json +121 -0
- prs/pr_6732.json +37 -0
prs/pr_10002.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10002,
|
| 3 |
+
"title": "fix(authentication): fix connector and profile CRUD authentication and authorization",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nThis PR fixes authentication and authorization issues in connector and profile CRUD operations by:\r\n\r\n- Removing unnecessary `HeaderAuth` wrapper from route authentication handlers\r\n- Fixing `merchant_id` parameter handling in the `update_connector` function (changed from reference to owned value)\r\n- Adding proper `merchant_id` parameter to `retrieve_profile` and `update_profile` functions for enhanced authorization\r\n- Using authenticated `merchant_id` from auth context (`auth.merchant_account.get_id().clone()`) instead of route parameters to ensure proper authorization\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n-->\r\n\r\nThis change is required to fix authentication and authorization vulnerabilities in connector and profile CRUD operations. The previous implementation had inconsistent authentication handling and was using route parameters for merchant identification instead of properly validated authenticated merchant IDs, which could lead to unauthorized access.\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n- Code review and analysis of authentication flow\r\n- Verified that all affected endpoints now use authenticated merchant IDs consistently\r\n- Ensured parameter handling is correct throughout the call chain\r\n\r\n### Profile APIs:\r\n\r\n<details>\r\n<summary>1. Business Profile - Create</summary>\r\n\r\nRequest\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1761407178/business_profile' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: <api-key>' \\\r\n--header 'Accept: */*' \\\r\n--data '{\r\n \"profile_name\": \"test_profile-1\"\r\n}'\r\n```\r\n\r\nResponse\r\n```json\r\n{\r\n \"merchant_id\": \"merchant_1761407178\",\r\n \"profile_id\": \"pro_YXy3HGrb73qDRgGXrBkL\",\r\n \"profile_name\": \"test_profile-1\",\r\n \"return_url\": null,\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"2COFm6lIl3pRVXo4WfmtrlSDhJ3Lao7ZG3mhEygZyYn06HRRey6dHAcFjO4kVFVx\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"webhook_details\": null,\r\n \"metadata\": null,\r\n \"routing_algorithm\": null,\r\n \"intent_fulfillment_time\": 900,\r\n \"frm_routing_algorithm\": null,\r\n \"payout_routing_algorithm\": null,\r\n \"applepay_verified_domains\": null,\r\n \"session_expiry\": 900,\r\n \"payment_link_config\": null,\r\n \"authentication_connector_details\": null,\r\n \"use_billing_as_payment_method_billing\": true,\r\n \"extended_card_info_config\": null,\r\n \"collect_shipping_details_from_wallet_connector\": false,\r\n \"collect_billing_details_from_wallet_connector\": false,\r\n \"always_collect_shipping_details_from_wallet_connector\": false,\r\n \"always_collect_billing_details_from_wallet_connector\": false,\r\n \"is_connector_agnostic_mit_enabled\": false,\r\n \"payout_link_config\": null,\r\n \"outgoing_webhook_custom_http_headers\": null,\r\n \"tax_connector_id\": null,\r\n \"is_tax_connector_enabled\": false,\r\n \"is_network_tokenization_enabled\": false,\r\n \"is_auto_retries_enabled\": false,\r\n \"max_auto_retries_enabled\": null,\r\n \"always_request_extended_authorization\": null,\r\n \"is_click_to_pay_enabled\": false,\r\n \"authentication_product_ids\": null,\r\n \"card_testing_guard_config\": {\r\n \"card_ip_blocking_status\": \"disabled\",\r\n \"card_ip_blocking_threshold\": 3,\r\n \"guest_user_card_blocking_status\": \"disabled\",\r\n \"guest_user_card_blocking_threshold\": 10,\r\n \"customer_id_blocking_status\": \"disabled\",\r\n \"customer_id_blocking_threshold\": 5,\r\n \"card_testing_guard_expiry\": 3600\r\n },\r\n \"is_clear_pan_retries_enabled\": false,\r\n \"force_3ds_challenge\": false,\r\n \"is_debit_routing_enabled\": false,\r\n \"merchant_business_country\": null,\r\n \"is_pre_network_tokenization_enabled\": false,\r\n \"acquirer_configs\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_category_code\": null,\r\n \"merchant_country_code\": null,\r\n \"dispute_polling_interval\": null,\r\n \"is_manual_retry_enabled\": null,\r\n \"always_enable_overcapture\": null,\r\n \"is_external_vault_enabled\": \"skip\",\r\n \"external_vault_connector_details\": null,\r\n \"billing_processor_id\": null,\r\n \"is_l2_l3_enabled\": false\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>2. Business Profile - Retrieve</summary>\r\n\r\nRequest\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1761407178/business_profile/pro_YXy3HGrb73qDRgGXrBkL' \\\r\n--header 'api-key: <api-key>' \\\r\n--header 'Accept: */*'\r\n```\r\n\r\nResponse\r\n```json\r\n{\r\n \"merchant_id\": \"merchant_1761407178\",\r\n \"profile_id\": \"pro_YXy3HGrb73qDRgGXrBkL\",\r\n \"profile_name\": \"test_profile-1\",\r\n \"return_url\": null,\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"2COFm6lIl3pRVXo4WfmtrlSDhJ3Lao7ZG3mhEygZyYn06HRRey6dHAcFjO4kVFVx\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"webhook_details\": null,\r\n \"metadata\": null,\r\n \"routing_algorithm\": null,\r\n \"intent_fulfillment_time\": 900,\r\n \"frm_routing_algorithm\": null,\r\n \"payout_routing_algorithm\": null,\r\n \"applepay_verified_domains\": null,\r\n \"session_expiry\": 900,\r\n \"payment_link_config\": null,\r\n \"authentication_connector_details\": null,\r\n \"use_billing_as_payment_method_billing\": true,\r\n \"extended_card_info_config\": null,\r\n \"collect_shipping_details_from_wallet_connector\": false,\r\n \"collect_billing_details_from_wallet_connector\": false,\r\n \"always_collect_shipping_details_from_wallet_connector\": false,\r\n \"always_collect_billing_details_from_wallet_connector\": false,\r\n \"is_connector_agnostic_mit_enabled\": false,\r\n \"payout_link_config\": null,\r\n \"outgoing_webhook_custom_http_headers\": null,\r\n \"tax_connector_id\": null,\r\n \"is_tax_connector_enabled\": false,\r\n \"is_network_tokenization_enabled\": false,\r\n \"is_auto_retries_enabled\": false,\r\n \"max_auto_retries_enabled\": null,\r\n \"always_request_extended_authorization\": null,\r\n \"is_click_to_pay_enabled\": false,\r\n \"authentication_product_ids\": null,\r\n \"card_testing_guard_config\": {\r\n \"card_ip_blocking_status\": \"disabled\",\r\n \"card_ip_blocking_threshold\": 3,\r\n \"guest_user_card_blocking_status\": \"disabled\",\r\n \"guest_user_card_blocking_threshold\": 10,\r\n \"customer_id_blocking_status\": \"disabled\",\r\n \"customer_id_blocking_threshold\": 5,\r\n \"card_testing_guard_expiry\": 3600\r\n },\r\n \"is_clear_pan_retries_enabled\": false,\r\n \"force_3ds_challenge\": false,\r\n \"is_debit_routing_enabled\": false,\r\n \"merchant_business_country\": null,\r\n \"is_pre_network_tokenization_enabled\": false,\r\n \"acquirer_configs\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_category_code\": null,\r\n \"merchant_country_code\": null,\r\n \"dispute_polling_interval\": null,\r\n \"is_manual_retry_enabled\": null,\r\n \"always_enable_overcapture\": null,\r\n \"is_external_vault_enabled\": \"skip\",\r\n \"external_vault_connector_details\": null,\r\n \"billing_processor_id\": null,\r\n \"is_l2_l3_enabled\": false\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>3. Business Profile - Update</summary>\r\n\r\nRequest\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1761407178/business_profile/pro_YXy3HGrb73qDRgGXrBkL' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: <api-key>' \\\r\n--header 'Accept: */*' \\\r\n--data '{\r\n \"profile_name\": \"Updated profile\"\r\n}'\r\n```\r\n\r\nResponse\r\n```json\r\n{\r\n \"merchant_id\": \"merchant_1761407178\",\r\n \"profile_id\": \"pro_YXy3HGrb73qDRgGXrBkL\",\r\n \"profile_name\": \"Updated profile\",\r\n \"return_url\": null,\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"2COFm6lIl3pRVXo4WfmtrlSDhJ3Lao7ZG3mhEygZyYn06HRRey6dHAcFjO4kVFVx\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"webhook_details\": null,\r\n \"metadata\": null,\r\n \"routing_algorithm\": null,\r\n \"intent_fulfillment_time\": 900,\r\n \"frm_routing_algorithm\": null,\r\n \"payout_routing_algorithm\": null,\r\n \"applepay_verified_domains\": null,\r\n \"session_expiry\": 900,\r\n \"payment_link_config\": null,\r\n \"authentication_connector_details\": null,\r\n \"use_billing_as_payment_method_billing\": true,\r\n \"extended_card_info_config\": null,\r\n \"collect_shipping_details_from_wallet_connector\": false,\r\n \"collect_billing_details_from_wallet_connector\": false,\r\n \"always_collect_shipping_details_from_wallet_connector\": false,\r\n \"always_collect_billing_details_from_wallet_connector\": false,\r\n \"is_connector_agnostic_mit_enabled\": false,\r\n \"payout_link_config\": null,\r\n \"outgoing_webhook_custom_http_headers\": null,\r\n \"tax_connector_id\": null,\r\n \"is_tax_connector_enabled\": false,\r\n \"is_network_tokenization_enabled\": false,\r\n \"is_auto_retries_enabled\": false,\r\n \"max_auto_retries_enabled\": null,\r\n \"always_request_extended_authorization\": null,\r\n \"is_click_to_pay_enabled\": false,\r\n \"authentication_product_ids\": null,\r\n \"card_testing_guard_config\": {\r\n \"card_ip_blocking_status\": \"disabled\",\r\n \"card_ip_blocking_threshold\": 3,\r\n \"guest_user_card_blocking_status\": \"disabled\",\r\n \"guest_user_card_blocking_threshold\": 10,\r\n \"customer_id_blocking_status\": \"disabled\",\r\n \"customer_id_blocking_threshold\": 5,\r\n \"card_testing_guard_expiry\": 3600\r\n },\r\n \"is_clear_pan_retries_enabled\": false,\r\n \"force_3ds_challenge\": false,\r\n \"is_debit_routing_enabled\": false,\r\n \"merchant_business_country\": null,\r\n \"is_pre_network_tokenization_enabled\": false,\r\n \"acquirer_configs\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_category_code\": null,\r\n \"merchant_country_code\": null,\r\n \"dispute_polling_interval\": null,\r\n \"is_manual_retry_enabled\": null,\r\n \"always_enable_overcapture\": null,\r\n \"is_external_vault_enabled\": \"skip\",\r\n \"external_vault_connector_details\": null,\r\n \"billing_processor_id\": null,\r\n \"is_l2_l3_enabled\": false\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>4. Business Profile - List</summary>\r\n\r\nRequest\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1761407178/profile' \\\r\n--header 'api-key: <api-key>' \\\r\n--header 'Accept: */*'\r\n```\r\n\r\nResponse\r\n```json\r\n[\r\n {\r\n \"merchant_id\": \"merchant_1761407178\",\r\n \"profile_id\": \"pro_5y9LEIqbVURmaTGmIAD9\",\r\n \"profile_name\": \"Update\",\r\n \"return_url\": null,\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"2COFm6lIl3pRVXo4WfmtrlSDhJ3Lao7ZG3mhEygZyYn06HRRey6dHAcFjO4kVFVx\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"webhook_details\": null,\r\n \"metadata\": null,\r\n \"routing_algorithm\": null,\r\n \"intent_fulfillment_time\": 900,\r\n \"frm_routing_algorithm\": null,\r\n \"payout_routing_algorithm\": null,\r\n \"applepay_verified_domains\": null,\r\n \"session_expiry\": 900,\r\n \"payment_link_config\": null,\r\n \"authentication_connector_details\": null,\r\n \"use_billing_as_payment_method_billing\": true,\r\n \"extended_card_info_config\": null,\r\n \"collect_shipping_details_from_wallet_connector\": false,\r\n \"collect_billing_details_from_wallet_connector\": false,\r\n \"always_collect_shipping_details_from_wallet_connector\": false,\r\n \"always_collect_billing_details_from_wallet_connector\": false,\r\n \"is_connector_agnostic_mit_enabled\": false,\r\n \"payout_link_config\": null,\r\n \"outgoing_webhook_custom_http_headers\": null,\r\n \"tax_connector_id\": null,\r\n \"is_tax_connector_enabled\": false,\r\n \"is_network_tokenization_enabled\": false,\r\n \"is_auto_retries_enabled\": false,\r\n \"max_auto_retries_enabled\": null,\r\n \"always_request_extended_authorization\": null,\r\n \"is_click_to_pay_enabled\": false,\r\n \"authentication_product_ids\": null,\r\n \"card_testing_guard_config\": {\r\n \"card_ip_blocking_status\": \"disabled\",\r\n \"card_ip_blocking_threshold\": 3,\r\n \"guest_user_card_blocking_status\": \"disabled\",\r\n \"guest_user_card_blocking_threshold\": 10,\r\n \"customer_id_blocking_status\": \"disabled\",\r\n \"customer_id_blocking_threshold\": 5,\r\n \"card_testing_guard_expiry\": 3600\r\n },\r\n \"is_clear_pan_retries_enabled\": false,\r\n \"force_3ds_challenge\": false,\r\n \"is_debit_routing_enabled\": false,\r\n \"merchant_business_country\": null,\r\n \"is_pre_network_tokenization_enabled\": false,\r\n \"acquirer_configs\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_category_code\": null,\r\n \"merchant_country_code\": null,\r\n \"dispute_polling_interval\": null,\r\n \"is_manual_retry_enabled\": null,\r\n \"always_enable_overcapture\": null,\r\n \"is_external_vault_enabled\": \"skip\",\r\n \"external_vault_connector_details\": null,\r\n \"billing_processor_id\": null,\r\n \"is_l2_l3_enabled\": false\r\n },\r\n {\r\n \"merchant_id\": \"merchant_1761407178\",\r\n \"profile_id\": \"pro_YXy3HGrb73qDRgGXrBkL\",\r\n \"profile_name\": \"Updated profile\",\r\n \"return_url\": null,\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"2COFm6lIl3pRVXo4WfmtrlSDhJ3Lao7ZG3mhEygZyYn06HRRey6dHAcFjO4kVFVx\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"webhook_details\": null,\r\n \"metadata\": null,\r\n \"routing_algorithm\": null,\r\n \"intent_fulfillment_time\": 900,\r\n \"frm_routing_algorithm\": null,\r\n \"payout_routing_algorithm\": null,\r\n \"applepay_verified_domains\": null,\r\n \"session_expiry\": 900,\r\n \"payment_link_config\": null,\r\n \"authentication_connector_details\": null,\r\n \"use_billing_as_payment_method_billing\": true,\r\n \"extended_card_info_config\": null,\r\n \"collect_shipping_details_from_wallet_connector\": false,\r\n \"collect_billing_details_from_wallet_connector\": false,\r\n \"always_collect_shipping_details_from_wallet_connector\": false,\r\n \"always_collect_billing_details_from_wallet_connector\": false,\r\n \"is_connector_agnostic_mit_enabled\": false,\r\n \"payout_link_config\": null,\r\n \"outgoing_webhook_custom_http_headers\": null,\r\n \"tax_connector_id\": null,\r\n \"is_tax_connector_enabled\": false,\r\n \"is_network_tokenization_enabled\": false,\r\n \"is_auto_retries_enabled\": false,\r\n \"max_auto_retries_enabled\": null,\r\n \"always_request_extended_authorization\": null,\r\n \"is_click_to_pay_enabled\": false,\r\n \"authentication_product_ids\": null,\r\n \"card_testing_guard_config\": {\r\n \"card_ip_blocking_status\": \"disabled\",\r\n \"card_ip_blocking_threshold\": 3,\r\n \"guest_user_card_blocking_status\": \"disabled\",\r\n \"guest_user_card_blocking_threshold\": 10,\r\n \"customer_id_blocking_status\": \"disabled\",\r\n \"customer_id_blocking_threshold\": 5,\r\n \"card_testing_guard_expiry\": 3600\r\n },\r\n \"is_clear_pan_retries_enabled\": false,\r\n \"force_3ds_challenge\": false,\r\n \"is_debit_routing_enabled\": false,\r\n \"merchant_business_country\": null,\r\n \"is_pre_network_tokenization_enabled\": false,\r\n \"acquirer_configs\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_category_code\": null,\r\n \"merchant_country_code\": null,\r\n \"dispute_polling_interval\": null,\r\n \"is_manual_retry_enabled\": null,\r\n \"always_enable_overcapture\": null,\r\n \"is_external_vault_enabled\": \"skip\",\r\n \"external_vault_connector_details\": null,\r\n \"billing_processor_id\": null,\r\n \"is_l2_l3_enabled\": false\r\n },\r\n {\r\n \"merchant_id\": \"merchant_1761407178\",\r\n \"profile_id\": \"pro_p0xfTz5c7ysxLLlQY61k\",\r\n \"profile_name\": \"test_profile\",\r\n \"return_url\": null,\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"2COFm6lIl3pRVXo4WfmtrlSDhJ3Lao7ZG3mhEygZyYn06HRRey6dHAcFjO4kVFVx\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"webhook_details\": null,\r\n \"metadata\": null,\r\n \"routing_algorithm\": null,\r\n \"intent_fulfillment_time\": 900,\r\n \"frm_routing_algorithm\": null,\r\n \"payout_routing_algorithm\": null,\r\n \"applepay_verified_domains\": null,\r\n \"session_expiry\": 900,\r\n \"payment_link_config\": null,\r\n \"authentication_connector_details\": null,\r\n \"use_billing_as_payment_method_billing\": true,\r\n \"extended_card_info_config\": null,\r\n \"collect_shipping_details_from_wallet_connector\": false,\r\n \"collect_billing_details_from_wallet_connector\": false,\r\n \"always_collect_shipping_details_from_wallet_connector\": false,\r\n \"always_collect_billing_details_from_wallet_connector\": false,\r\n \"is_connector_agnostic_mit_enabled\": false,\r\n \"payout_link_config\": null,\r\n \"outgoing_webhook_custom_http_headers\": null,\r\n \"tax_connector_id\": null,\r\n \"is_tax_connector_enabled\": false,\r\n \"is_network_tokenization_enabled\": false,\r\n \"is_auto_retries_enabled\": false,\r\n \"max_auto_retries_enabled\": null,\r\n \"always_request_extended_authorization\": null,\r\n \"is_click_to_pay_enabled\": false,\r\n \"authentication_product_ids\": null,\r\n \"card_testing_guard_config\": {\r\n \"card_ip_blocking_status\": \"disabled\",\r\n \"card_ip_blocking_threshold\": 3,\r\n \"guest_user_card_blocking_status\": \"disabled\",\r\n \"guest_user_card_blocking_threshold\": 10,\r\n \"customer_id_blocking_status\": \"disabled\",\r\n \"customer_id_blocking_threshold\": 5,\r\n \"card_testing_guard_expiry\": 3600\r\n },\r\n \"is_clear_pan_retries_enabled\": false,\r\n \"force_3ds_challenge\": false,\r\n \"is_debit_routing_enabled\": false,\r\n \"merchant_business_country\": null,\r\n \"is_pre_network_tokenization_enabled\": false,\r\n \"acquirer_configs\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_category_code\": null,\r\n \"merchant_country_code\": null,\r\n \"dispute_polling_interval\": null,\r\n \"is_manual_retry_enabled\": null,\r\n \"always_enable_overcapture\": null,\r\n \"is_external_vault_enabled\": \"skip\",\r\n \"external_vault_connector_details\": null,\r\n \"billing_processor_id\": null,\r\n \"is_l2_l3_enabled\": false\r\n },\r\n {\r\n \"merchant_id\": \"merchant_1761407178\",\r\n \"profile_id\": \"pro_f9KWGfWgjGLE9WKKd4a5\",\r\n \"profile_name\": \"test_profile2\",\r\n \"return_url\": null,\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"2COFm6lIl3pRVXo4WfmtrlSDhJ3Lao7ZG3mhEygZyYn06HRRey6dHAcFjO4kVFVx\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"webhook_details\": null,\r\n \"metadata\": null,\r\n \"routing_algorithm\": null,\r\n \"intent_fulfillment_time\": 900,\r\n \"frm_routing_algorithm\": null,\r\n \"payout_routing_algorithm\": null,\r\n \"applepay_verified_domains\": null,\r\n \"session_expiry\": 900,\r\n \"payment_link_config\": null,\r\n \"authentication_connector_details\": null,\r\n \"use_billing_as_payment_method_billing\": true,\r\n \"extended_card_info_config\": null,\r\n \"collect_shipping_details_from_wallet_connector\": false,\r\n \"collect_billing_details_from_wallet_connector\": false,\r\n \"always_collect_shipping_details_from_wallet_connector\": false,\r\n \"always_collect_billing_details_from_wallet_connector\": false,\r\n \"is_connector_agnostic_mit_enabled\": false,\r\n \"payout_link_config\": null,\r\n \"outgoing_webhook_custom_http_headers\": null,\r\n \"tax_connector_id\": null,\r\n \"is_tax_connector_enabled\": false,\r\n \"is_network_tokenization_enabled\": false,\r\n \"is_auto_retries_enabled\": false,\r\n \"max_auto_retries_enabled\": null,\r\n \"always_request_extended_authorization\": null,\r\n \"is_click_to_pay_enabled\": false,\r\n \"authentication_product_ids\": null,\r\n \"card_testing_guard_config\": {\r\n \"card_ip_blocking_status\": \"disabled\",\r\n \"card_ip_blocking_threshold\": 3,\r\n \"guest_user_card_blocking_status\": \"disabled\",\r\n \"guest_user_card_blocking_threshold\": 10,\r\n \"customer_id_blocking_status\": \"disabled\",\r\n \"customer_id_blocking_threshold\": 5,\r\n \"card_testing_guard_expiry\": 3600\r\n },\r\n \"is_clear_pan_retries_enabled\": false,\r\n \"force_3ds_challenge\": false,\r\n \"is_debit_routing_enabled\": false,\r\n \"merchant_business_country\": null,\r\n \"is_pre_network_tokenization_enabled\": false,\r\n \"acquirer_configs\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_category_code\": null,\r\n \"merchant_country_code\": null,\r\n \"dispute_polling_interval\": null,\r\n \"is_manual_retry_enabled\": null,\r\n \"always_enable_overcapture\": null,\r\n \"is_external_vault_enabled\": \"skip\",\r\n \"external_vault_connector_details\": null,\r\n \"billing_processor_id\": null,\r\n \"is_l2_l3_enabled\": false\r\n }\r\n]\r\n```\r\n</details>\r\n\r\n\r\n### Connector APIs:\r\n<details>\r\n<summary>1. Payment Connector - Create</summary>\r\n\r\nRequest\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1761407178/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: <api-key>' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"profile_id\": \"pro_5y9LEIqbVURmaTGmIAD9\",\r\n \"disabled\": false,\r\n \"connector_label\": \"stripe_test4\",\r\n \"test_mode\": true,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true,\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n }\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true,\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {},\r\n \"connector_account_details\": {\r\n \"api_key\": \"test_key\",\r\n \"auth_type\": \"HeaderKey\"\r\n },\r\n \"additional_merchant_data\": null,\r\n \"status\": \"active\",\r\n \"pm_auth_config\": null,\r\n \"connector_wallets_details\": null\r\n}'\r\n```\r\n\r\nResponse\r\n```json\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"stripe_test4\",\r\n \"merchant_connector_id\": \"mca_YseU3fl4YU2wLIlP0wRY\",\r\n \"profile_id\": \"pro_5y9LEIqbVURmaTGmIAD9\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"te****ey\"\r\n },\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_webhook_details\": null,\r\n \"metadata\": {},\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\",\r\n \"additional_merchant_data\": null,\r\n \"connector_wallets_details\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>2. Payment Connector - Retrieve</summary>\r\n\r\nRequest\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1761407178/connectors/mca_YseU3fl4YU2wLIlP0wRY' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: <api-key>' \\\r\n```\r\n\r\nResponse\r\n```json\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"stripe_test4\",\r\n \"merchant_connector_id\": \"mca_YseU3fl4YU2wLIlP0wRY\",\r\n \"profile_id\": \"pro_5y9LEIqbVURmaTGmIAD9\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"te****ey\"\r\n },\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_webhook_details\": null,\r\n \"metadata\": {},\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\",\r\n \"additional_merchant_data\": null,\r\n \"connector_wallets_details\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>3. Payment Connector - Update</summary>\r\n\r\nRequest\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1761407178/connectors/mca_YseU3fl4YU2wLIlP0wRY' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: <api-key>' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"12345\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true,\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n }\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true,\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MyWebhookSecret\"\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```json\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"stripe_test4\",\r\n \"merchant_connector_id\": \"mca_YseU3fl4YU2wLIlP0wRY\",\r\n \"profile_id\": \"pro_5y9LEIqbVURmaTGmIAD9\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"12*45\"\r\n },\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MyWebhookSecret\",\r\n \"additional_secret\": null\r\n },\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\",\r\n \"additional_merchant_data\": null,\r\n \"connector_wallets_details\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>4. Payment Connector - List by MID</summary>\r\n\r\nRequest\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1761407178/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: <api-key>' \\\r\n--header 'Accept: */*'\r\n```\r\n\r\nResponse\r\n```json\r\n[\r\n {\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"stripe_test2\",\r\n \"merchant_connector_id\": \"mca_TNkhsD72bm17RDo44XZg\",\r\n \"profile_id\": \"pro_5y9LEIqbVURmaTGmIAD9\",\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\"\r\n },\r\n {\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"stripe_test4\",\r\n \"merchant_connector_id\": \"mca_YseU3fl4YU2wLIlP0wRY\",\r\n \"profile_id\": \"pro_5y9LEIqbVURmaTGmIAD9\",\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\"\r\n }\r\n]\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>5. Payment Connector - List by MID at Profile level</summary>\r\n\r\nRequest\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1761407178/profile/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: <api-key>' \\\r\n--header 'Accept: */*'\r\n```\r\n\r\nResponse\r\n```json\r\n[\r\n {\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"stripe_test2\",\r\n \"merchant_connector_id\": \"mca_TNkhsD72bm17RDo44XZg\",\r\n \"profile_id\": \"pro_5y9LEIqbVURmaTGmIAD9\",\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\"\r\n },\r\n {\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"stripe_test4\",\r\n \"merchant_connector_id\": \"mca_YseU3fl4YU2wLIlP0wRY\",\r\n \"profile_id\": \"pro_5y9LEIqbVURmaTGmIAD9\",\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n },\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\"\r\n }\r\n]\r\n```\r\n</details>\r\n\r\n Test Setup\r\n\r\n 1. Create two merchant accounts: merchant_A and merchant_B in same organization, or separate organizations.\r\n 2. Generate API keys: One API key for each merchant account\r\n 3. Create merchant connector accounts (MCAs): One MCA for each merchant account\r\n - mca_A belongs to merchant_A\r\n - mca_B belongs to merchant_B\r\n\r\nNeed to test all possible combinations of merchant_id, api-key, profile_id, mca_id based on the parameters used in each API (both happy and unauthorized cases)\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n\r\n\ud83e\udd16 Generated with [Claude Code](https://claude.ai/code)",
|
| 5 |
+
"author": "tsdk02",
|
| 6 |
+
"created_at": "2025-10-25T18:57:31+00:00",
|
| 7 |
+
"merged_at": "2025-11-19T16:12:36+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"C-bug"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10002",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "c27425869cb155e3f2502baaa3da34cbfa859bce",
|
| 16 |
+
"message": "fix(authentication): fix connector and profile CRUD authentication and authorization\n\n- Remove unnecessary HeaderAuth wrapper from route authentication\n- Fix merchant_id parameter handling in update_connector function\n- Add proper merchant_id authorization to profile retrieve/update operations\n- Use authenticated merchant_id from auth context instead of route parameters\n\n\ud83e\udd16 Generated with [Claude Code](https://claude.ai/code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>",
|
| 17 |
+
"author": "Sandeep Kumar",
|
| 18 |
+
"date": "2025-10-25T18:56:45+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/c27425869cb155e3f2502baaa3da34cbfa859bce"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "1871e0a201f5e2997b11e17eac242752082a55e7",
|
| 23 |
+
"message": "fix(authentication): fix V2 admin API authentication for profiles and connectors\n\n- Fix merchant_id cloning in V2 admin connector update route\n- Add proper merchant_id parameter to V2 admin profile operations using authenticated merchant account\n- Ensure consistent authentication data usage across V2 admin endpoints\n\n\ud83e\udd16 Generated with [Claude Code](https://claude.ai/code)\n\nCo-Authored-By: Claude <noreply@anthropic.com>",
|
| 24 |
+
"author": "Sandeep Kumar",
|
| 25 |
+
"date": "2025-10-25T19:31:31+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1871e0a201f5e2997b11e17eac242752082a55e7"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "901eca86020ef8d0a27afd778578ce770a0429bc",
|
| 30 |
+
"message": "Merge branch 'main' into fix-connector-crud-auth",
|
| 31 |
+
"author": "Sandeep Kumar",
|
| 32 |
+
"date": "2025-11-02T13:52:36+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/901eca86020ef8d0a27afd778578ce770a0429bc"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "8adc253b894686df983ce7d7a160a56c38b91f18",
|
| 37 |
+
"message": "Merge branch 'main' into fix-connector-crud-auth",
|
| 38 |
+
"author": "Sandeep Kumar",
|
| 39 |
+
"date": "2025-11-10T14:52:50+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8adc253b894686df983ce7d7a160a56c38b91f18"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"sha": "7f98aeed4bc86297a5f15a4959cacb2b91683ced",
|
| 44 |
+
"message": "Merge branch 'main' into fix-connector-crud-auth",
|
| 45 |
+
"author": "Sandeep Kumar",
|
| 46 |
+
"date": "2025-11-18T10:09:22+00:00",
|
| 47 |
+
"url": "https://github.com/juspay/hyperswitch/commit/7f98aeed4bc86297a5f15a4959cacb2b91683ced"
|
| 48 |
+
}
|
| 49 |
+
]
|
| 50 |
+
}
|
prs/pr_10009.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10009,
|
| 3 |
+
"title": "ci(cypress): add card tests for adyen platform",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [x] CI/CD\r\n\r\n## Description\r\n\r\nAdded cards test cases in adyen platform connector cypress tests .\r\nFixed Wise payout connector by updating the payout method data\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\ntest cases enhancement\r\n\r\n## How did you test it?\r\n\r\n- Adyenplatform \r\n\r\n<img width=\"922\" height=\"378\" alt=\"image\" src=\"https://github.com/user-attachments/assets/bff0cdd5-5566-49d7-9022-839f454ad9c6\" />\r\n\r\n- Wise \r\n\r\n<img width=\"922\" height=\"378\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e3b59953-ec1d-44bc-bcc6-6dd9d2d75870\" />\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "likhinbopanna",
|
| 6 |
+
"created_at": "2025-10-27T09:48:54+00:00",
|
| 7 |
+
"merged_at": "2025-10-27T14:05:25+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-CI-CD"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10009",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "2340a957530e0aab3e398e10fe72ed2d07c7e636",
|
| 16 |
+
"message": "ci(cypress",
|
| 17 |
+
"author": "likhinbopanna",
|
| 18 |
+
"date": "2025-10-27T09:45:52+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2340a957530e0aab3e398e10fe72ed2d07c7e636"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "5ed88244bb61c7af9e3cbab6412facc157d81a25",
|
| 23 |
+
"message": "fix: wise connector",
|
| 24 |
+
"author": "likhinbopanna",
|
| 25 |
+
"date": "2025-10-27T11:10:24+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/5ed88244bb61c7af9e3cbab6412facc157d81a25"
|
| 27 |
+
}
|
| 28 |
+
]
|
| 29 |
+
}
|
prs/pr_10012.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10012,
|
| 3 |
+
"title": "feat(euclid_wasm): Add wasm support for billing connectors",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nThis PR adds wasm support for billing connectors by implementing the `getBillingConnectorConfig` function in the euclid_wasm interface. The changes include updating TOML configuration files across all envs with Chargebee billing connector settings. \r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nCloses #10011\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n<img width=\"720\" height=\"417\" alt=\"image\" src=\"https://github.com/user-attachments/assets/225cd7a9-8b71-4516-8bb5-9cb876d79fc9\" />\r\n\r\n<img width=\"720\" height=\"187\" alt=\"image\" src=\"https://github.com/user-attachments/assets/5b6b0c81-6cf6-42e7-ae38-e29cceeccc90\" />\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "spritianeja03",
|
| 6 |
+
"created_at": "2025-10-27T10:20:45+00:00",
|
| 7 |
+
"merged_at": "2025-11-03T14:49:55+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10012",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "a805cadbda44b57d0cdcca8b23d065ee8177ccab",
|
| 14 |
+
"message": "add wasm function for billing connectors",
|
| 15 |
+
"author": "Spriti Aneja",
|
| 16 |
+
"date": "2025-10-24T11:39:47+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/a805cadbda44b57d0cdcca8b23d065ee8177ccab"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "2a8ca9f264e9ee9ed7be5e845f5e58de2d7b0b31",
|
| 21 |
+
"message": "update wasm config for chargebee",
|
| 22 |
+
"author": "Spriti Aneja",
|
| 23 |
+
"date": "2025-10-27T07:59:02+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2a8ca9f264e9ee9ed7be5e845f5e58de2d7b0b31"
|
| 25 |
+
}
|
| 26 |
+
]
|
| 27 |
+
}
|
prs/pr_10015.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10015,
|
| 3 |
+
"title": "feat(subscriptions): add support to pause, resume and cancel subscription",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [X] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\n1. Add support in subscriptions module to pause, resume, and cancel a subscription\r\n2. Update openapi ref for the newly added flows\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n3. `crates/router/src/configs`\r\n4. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n#10016 \r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n<details>\r\n<summary>1. Create customer</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/customers' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'X-tenant-id: public' \\\r\n--header 'api-key: dev_AyM2dBHmwN0PfdX1kCLjYGhrcntGszAZPn806ysy83s4DJ6bVjrZ8C3yUl6rbinR' \\\r\n--data '{\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"First customer\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"IN\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"customer_id\": \"cus_aAUHFICmJVr0QdGGpcVA\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"First customer\",\r\n \"address\": null,\r\n \"created_at\": \"2025-10-27T11:45:28.328Z\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"default_payment_method_id\": null,\r\n \"tax_registration_id\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>2. Subscription create</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/subscriptions/create' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'X-Profile-Id: pro_hrjhbsMiSK5HrwNkbXo3' \\\r\n--header 'api-key: dev_AyM2dBHmwN0PfdX1kCLjYGhrcntGszAZPn806ysy83s4DJ6bVjrZ8C3yUl6rbinR' \\\r\n--header 'Accept: */*' \\\r\n--data '{\r\n \"customer_id\": \"cus_aAUHFICmJVr0QdGGpcVA\",\r\n \"item_price_id\": \"standard-plan-USD-Monthly\",\r\n \"amount\": 1200,\r\n \"currency\": \"USD\",\r\n \"payment_details\": {\r\n \"authentication_type\": \"no_three_ds\",\r\n \"setup_future_usage\": \"off_session\",\r\n \"capture_method\": \"automatic\",\r\n \"return_url\": \"https://google.com\"\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"id\": \"sub_nVjcfvzeicw3JVrIxIXy\",\r\n \"merchant_reference_id\": null,\r\n \"status\": \"created\",\r\n \"plan_id\": null,\r\n \"item_price_id\": \"standard-plan-USD-Monthly\",\r\n \"profile_id\": \"pro_hrjhbsMiSK5HrwNkbXo3\",\r\n \"client_secret\": \"sub_nVjcfvzeicw3JVrIxIXy_secret_OWTmjNW6rPB6W3WUKY5k\",\r\n \"merchant_id\": \"merchant_1761554619\",\r\n \"coupon_code\": null,\r\n \"customer_id\": \"cus_aAUHFICmJVr0QdGGpcVA\",\r\n \"payment\": {\r\n \"payment_id\": \"pay_GIcDFItj8ui2jv7rKOPt\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 1200,\r\n \"currency\": \"USD\",\r\n \"profile_id\": \"pro_hrjhbsMiSK5HrwNkbXo3\",\r\n \"connector\": null,\r\n \"payment_method_id\": null,\r\n \"return_url\": \"https://google.com/\",\r\n \"next_action\": null,\r\n \"payment_experience\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"payment_method_type\": null,\r\n \"client_secret\": \"pay_GIcDFItj8ui2jv7rKOPt_secret_N7Bz65Mwf5GLWA7rcSyP\",\r\n \"billing\": null,\r\n \"shipping\": null,\r\n \"payment_type\": null\r\n },\r\n \"invoice\": {\r\n \"id\": \"invoice_pgSvJ8vQHi2LZ90KAUaa\",\r\n \"subscription_id\": \"sub_nVjcfvzeicw3JVrIxIXy\",\r\n \"merchant_id\": \"merchant_1761554619\",\r\n \"profile_id\": \"pro_hrjhbsMiSK5HrwNkbXo3\",\r\n \"merchant_connector_id\": \"mca_iCf5VJbWivFZqiFJ2Vyb\",\r\n \"payment_intent_id\": \"pay_GIcDFItj8ui2jv7rKOPt\",\r\n \"payment_method_id\": null,\r\n \"customer_id\": \"cus_aAUHFICmJVr0QdGGpcVA\",\r\n \"amount\": 1200,\r\n \"currency\": \"USD\",\r\n \"status\": \"invoice_created\"\r\n }\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>3. Subscription confirm</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/subscriptions/sub_nVjcfvzeicw3JVrIxIXy/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'X-Profile-Id: pro_hrjhbsMiSK5HrwNkbXo3' \\\r\n--header 'api-key: dev_AyM2dBHmwN0PfdX1kCLjYGhrcntGszAZPn806ysy83s4DJ6bVjrZ8C3yUl6rbinR' \\\r\n--data '{\r\n \"payment_details\": {\r\n \"shipping\": {\r\n \"address\": {\r\n \"state\": \"zsaasdas\",\r\n \"city\": \"Banglore\",\r\n \"country\": \"US\",\r\n \"line1\": \"sdsdfsdf\",\r\n \"line2\": \"hsgdbhd\",\r\n \"line3\": \"alsksoe\",\r\n \"zip\": \"571201\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n }\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4111111111111111\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"CLBRW dffdg\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"127.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"id\": \"sub_nVjcfvzeicw3JVrIxIXy\",\r\n \"merchant_reference_id\": null,\r\n \"status\": \"active\",\r\n \"plan_id\": null,\r\n \"item_price_id\": \"standard-plan-USD-Monthly\",\r\n \"coupon\": null,\r\n \"profile_id\": \"pro_hrjhbsMiSK5HrwNkbXo3\",\r\n \"payment\": {\r\n \"payment_id\": \"pay_GIcDFItj8ui2jv7rKOPt\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1200,\r\n \"currency\": \"USD\",\r\n \"profile_id\": \"pro_hrjhbsMiSK5HrwNkbXo3\",\r\n \"connector\": \"stripe\",\r\n \"payment_method_id\": \"pm_IhGYfzsgspMpxwkzRsYL\",\r\n \"return_url\": \"https://google.com/\",\r\n \"next_action\": null,\r\n \"payment_experience\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"client_secret\": \"pay_GIcDFItj8ui2jv7rKOPt_secret_N7Bz65Mwf5GLWA7rcSyP\",\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": null\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"Banglore\",\r\n \"country\": \"US\",\r\n \"line1\": \"sdsdfsdf\",\r\n \"line2\": \"hsgdbhd\",\r\n \"line3\": \"alsksoe\",\r\n \"zip\": \"571201\",\r\n \"state\": \"zsaasdas\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": null\r\n },\r\n \"payment_type\": null\r\n },\r\n \"customer_id\": \"cus_aAUHFICmJVr0QdGGpcVA\",\r\n \"invoice\": {\r\n \"id\": \"invoice_pgSvJ8vQHi2LZ90KAUaa\",\r\n \"subscription_id\": \"sub_nVjcfvzeicw3JVrIxIXy\",\r\n \"merchant_id\": \"merchant_1761554619\",\r\n \"profile_id\": \"pro_hrjhbsMiSK5HrwNkbXo3\",\r\n \"merchant_connector_id\": \"mca_iCf5VJbWivFZqiFJ2Vyb\",\r\n \"payment_intent_id\": \"pay_GIcDFItj8ui2jv7rKOPt\",\r\n \"payment_method_id\": \"pm_IhGYfzsgspMpxwkzRsYL\",\r\n \"customer_id\": \"cus_aAUHFICmJVr0QdGGpcVA\",\r\n \"amount\": 1200,\r\n \"currency\": \"USD\",\r\n \"status\": \"payment_pending\"\r\n },\r\n \"billing_processor_subscription_id\": \"sub_nVjcfvzeicw3JVrIxIXy\"\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>4. Get Subscription</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/subscriptions/sub_nVjcfvzeicw3JVrIxIXy' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'X-Profile-Id: pro_hrjhbsMiSK5HrwNkbXo3' \\\r\n--header 'api-key: dev_AyM2dBHmwN0PfdX1kCLjYGhrcntGszAZPn806ysy83s4DJ6bVjrZ8C3yUl6rbinR'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"id\": \"sub_nVjcfvzeicw3JVrIxIXy\",\r\n \"merchant_reference_id\": null,\r\n \"status\": \"active\",\r\n \"plan_id\": null,\r\n \"item_price_id\": \"standard-plan-USD-Monthly\",\r\n \"profile_id\": \"pro_hrjhbsMiSK5HrwNkbXo3\",\r\n \"client_secret\": \"sub_nVjcfvzeicw3JVrIxIXy_secret_OWTmjNW6rPB6W3WUKY5k\",\r\n \"merchant_id\": \"merchant_1761554619\",\r\n \"coupon_code\": null,\r\n \"customer_id\": \"cus_aAUHFICmJVr0QdGGpcVA\",\r\n \"payment\": null,\r\n \"invoice\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>5. Pause Subscription</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/subscriptions/sub_nVjcfvzeicw3JVrIxIXy/pause' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'X-Profile-Id: pro_hrjhbsMiSK5HrwNkbXo3' \\\r\n--header 'api-key: dev_AyM2dBHmwN0PfdX1kCLjYGhrcntGszAZPn806ysy83s4DJ6bVjrZ8C3yUl6rbinR' \\\r\n--data '{\r\n \"pause_option\": \"immediately\"\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"id\": \"sub_nVjcfvzeicw3JVrIxIXy\",\r\n \"status\": \"paused\",\r\n \"merchant_reference_id\": null,\r\n \"profile_id\": \"pro_hrjhbsMiSK5HrwNkbXo3\",\r\n \"merchant_id\": \"merchant_1761554619\",\r\n \"customer_id\": \"cus_aAUHFICmJVr0QdGGpcVA\",\r\n \"paused_at\": \"2025-08-01 11:32:32.0\"\r\n}\r\n```\r\n</details>\r\n<img width=\"1299\" height=\"133\" alt=\"Screenshot 2025-10-27 at 5 16 25\u202fPM\" src=\"https://github.com/user-attachments/assets/c451cb97-1fa1-4678-9d49-ef7f6eadbd86\" />\r\n\r\n\r\n<details>\r\n<summary>6. Resume Subscription</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/subscriptions/sub_nVjcfvzeicw3JVrIxIXy/resume' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'X-Profile-Id: pro_hrjhbsMiSK5HrwNkbXo3' \\\r\n--header 'api-key: dev_AyM2dBHmwN0PfdX1kCLjYGhrcntGszAZPn806ysy83s4DJ6bVjrZ8C3yUl6rbinR' \\\r\n--data '{\r\n \"resume_option\": \"immediately\",\r\n \"unpaid_invoices_handling\": \"schedule_payment_collection\" \r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"id\": \"sub_nVjcfvzeicw3JVrIxIXy\",\r\n \"status\": \"active\",\r\n \"merchant_reference_id\": null,\r\n \"profile_id\": \"pro_hrjhbsMiSK5HrwNkbXo3\",\r\n \"merchant_id\": \"merchant_1761554619\",\r\n \"customer_id\": \"cus_aAUHFICmJVr0QdGGpcVA\",\r\n \"next_billing_at\": \"2025-09-01 11:31:55.0\"\r\n}\r\n```\r\n</details>\r\n<img width=\"1322\" height=\"123\" alt=\"Screenshot 2025-10-27 at 5 16 40\u202fPM\" src=\"https://github.com/user-attachments/assets/6ad28146-e095-462a-b374-6b0e28320e8c\" />\r\n\r\n\r\n<details>\r\n<summary>7. Cancel Subscription</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/subscriptions/sub_nVjcfvzeicw3JVrIxIXy/cancel' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'X-Profile-Id: pro_hrjhbsMiSK5HrwNkbXo3' \\\r\n--header 'api-key: dev_AyM2dBHmwN0PfdX1kCLjYGhrcntGszAZPn806ysy83s4DJ6bVjrZ8C3yUl6rbinR' \\\r\n--data '{\r\n \"cancel_option\": \"immediately\",\r\n \"unbilled_charges_option\": \"invoice\",\r\n \"credit_option_for_current_term_charges\": \"prorate\",\r\n \"refundable_credits_handling\": \"schedule_refund\"\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"id\": \"sub_nVjcfvzeicw3JVrIxIXy\",\r\n \"status\": \"cancelled\",\r\n \"merchant_reference_id\": null,\r\n \"profile_id\": \"pro_hrjhbsMiSK5HrwNkbXo3\",\r\n \"merchant_id\": \"merchant_1761554619\",\r\n \"customer_id\": \"cus_aAUHFICmJVr0QdGGpcVA\",\r\n \"cancelled_at\": \"2025-08-01 11:53:47.0\"\r\n}\r\n```\r\n</details>\r\n<img width=\"1383\" height=\"135\" alt=\"Screenshot 2025-10-27 at 5 37 42\u202fPM\" src=\"https://github.com/user-attachments/assets/a8d601b3-c6b0-46e5-b05f-b4e8d9a975e2\" />\r\n\r\nUpdated API ref also\r\n<img width=\"1608\" height=\"1037\" alt=\"Screenshot 2025-10-27 at 5 52 35\u202fPM\" src=\"https://github.com/user-attachments/assets/d0fada2b-563b-407d-a40b-7061dd4202fe\" />\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "jagan-jaya",
|
| 6 |
+
"created_at": "2025-10-27T12:30:04+00:00",
|
| 7 |
+
"merged_at": "2025-11-03T08:23:41+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"M-api-contract-changes"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10015",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "2a6e9c44d2ccc560eec643b963cc03b6d008faa7",
|
| 16 |
+
"message": "feat(subscriptions): add support to pause, resume and cancel subscription",
|
| 17 |
+
"author": "Jagan Elavarasan",
|
| 18 |
+
"date": "2025-10-27T12:27:04+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2a6e9c44d2ccc560eec643b963cc03b6d008faa7"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "8a9a4b0a57c3cd8567d326c270d2b4669b5a2c7c",
|
| 23 |
+
"message": "chore: run formatter",
|
| 24 |
+
"author": "hyperswitch-bot[bot]",
|
| 25 |
+
"date": "2025-10-27T12:30:55+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8a9a4b0a57c3cd8567d326c270d2b4669b5a2c7c"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "d9fc61f76eda295ec521eacfb1fb5ef39cac335d",
|
| 30 |
+
"message": "fix clippy warnings",
|
| 31 |
+
"author": "Jagan Elavarasan",
|
| 32 |
+
"date": "2025-10-27T13:44:52+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d9fc61f76eda295ec521eacfb1fb5ef39cac335d"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "3825e060dc660ec60d016e6c1af936efb7b7cfd5",
|
| 37 |
+
"message": "Merge branch 'subscription-actions' of https://github.com/juspay/hyperswitch into subscription-actions",
|
| 38 |
+
"author": "Jagan Elavarasan",
|
| 39 |
+
"date": "2025-10-27T13:45:13+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/3825e060dc660ec60d016e6c1af936efb7b7cfd5"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"sha": "4fd2c0124a4f1322155eedd14cdff6944cf27bcd",
|
| 44 |
+
"message": "chore: run formatter",
|
| 45 |
+
"author": "hyperswitch-bot[bot]",
|
| 46 |
+
"date": "2025-10-27T13:46:30+00:00",
|
| 47 |
+
"url": "https://github.com/juspay/hyperswitch/commit/4fd2c0124a4f1322155eedd14cdff6944cf27bcd"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"sha": "941dd24187ef3be4dc38873c00cb169bd50f6d22",
|
| 51 |
+
"message": "fix typos",
|
| 52 |
+
"author": "Jagan Elavarasan",
|
| 53 |
+
"date": "2025-10-28T05:05:04+00:00",
|
| 54 |
+
"url": "https://github.com/juspay/hyperswitch/commit/941dd24187ef3be4dc38873c00cb169bd50f6d22"
|
| 55 |
+
}
|
| 56 |
+
]
|
| 57 |
+
}
|
prs/pr_10022.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10022,
|
| 3 |
+
"title": "docs(routing): add openapi docs for create api",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [x] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nThis pull request adds support for two new dynamic routing algorithms\u2014success-based and elimination-based routing\u2014across the API documentation, OpenAPI specification, and Rust route definitions. The changes introduce new endpoints for creating these routing configurations, update the documentation to reflect the new APIs, and register the corresponding route handlers in the codebase.\r\n\r\n**API and Documentation Additions:**\r\n\r\n* Added new API endpoints to create success-based and elimination-based dynamic routing algorithms in the OpenAPI specification (`openapi_spec_v1.json`). These endpoints accept the relevant configuration in the request body and support standard response codes and security mechanisms.\r\n* Updated the API documentation index (`docs.json`) to include pages for the new routing algorithms.\r\n* Added new documentation files for the success-based and elimination-based routing endpoints (`routing--success-based.mdx`, `routing--elimination.mdx`). [[1]](diffhunk://#diff-c6bcfc5ced057c7ee17f7c97f6e472f76d9849ab61a9571d3a45bccd6b8793eeR1-R3) [[2]](diffhunk://#diff-6adf333791548451504b17b0341db8edc9211ee4208e7ba58cc2ba2ade03c028R1-R3)\r\n\r\n**Backend Route Registration:**\r\n\r\n* Registered the new route handlers (`create_success_based_routing`, `create_elimination_routing`) in the Rust API server's route list.\r\n* Implemented annotated stub functions for the new endpoints in `routes/routing.rs`, including documentation, parameters, request/response schemas, and security definitions. [[1]](diffhunk://#diff-79ccc3dbc2148395e7d79343d567da01e0e9c255e7b78978eb4fc733b4a43029R283-R309) [[2]](diffhunk://#diff-79ccc3dbc2148395e7d79343d567da01e0e9c255e7b78978eb4fc733b4a43029R363-R389)\r\n\r\n\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\n\r\n\r\n<img width=\"650\" height=\"59\" alt=\"Screenshot 2025-10-28 at 1 33 03\u202fPM\" src=\"https://github.com/user-attachments/assets/f42cc6f7-3f85-4230-8d58-9117e1c10f6f\" />\r\n\r\n<img width=\"1588\" height=\"1026\" alt=\"Screenshot 2025-10-28 at 6 49 31\u202fPM\" src=\"https://github.com/user-attachments/assets/286556da-6b25-4302-9ccb-42406386e526\" />\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "AnkitKmrGupta",
|
| 6 |
+
"created_at": "2025-10-28T08:27:59+00:00",
|
| 7 |
+
"merged_at": "2025-11-03T14:47:47+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"M-api-contract-changes"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10022",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "3c8aa82b325254e49bf34a8b072ac2424ff8c096",
|
| 16 |
+
"message": "add openapi docs for create api",
|
| 17 |
+
"author": "Ankit Kumar Gupta",
|
| 18 |
+
"date": "2025-10-28T08:25:57+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/3c8aa82b325254e49bf34a8b072ac2424ff8c096"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "770eec2a47d7904321e559837500b472302bf167",
|
| 23 |
+
"message": "added api-ref docs",
|
| 24 |
+
"author": "Ankit Kumar Gupta",
|
| 25 |
+
"date": "2025-10-28T12:13:36+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/770eec2a47d7904321e559837500b472302bf167"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "c03fd61b7254912997c8ba44f144f52fe64b90cb",
|
| 30 |
+
"message": "refactor",
|
| 31 |
+
"author": "Ankit Kumar Gupta",
|
| 32 |
+
"date": "2025-10-28T12:18:08+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/c03fd61b7254912997c8ba44f144f52fe64b90cb"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "1ed3c7cd2cc15cf8aff05d8f5405791ed5712ff5",
|
| 37 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 38 |
+
"author": "hyperswitch-bot[bot]",
|
| 39 |
+
"date": "2025-10-28T12:24:52+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1ed3c7cd2cc15cf8aff05d8f5405791ed5712ff5"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"sha": "75fa6b097d03d50928ecff2072cf2bc8846f33da",
|
| 44 |
+
"message": "refactor api-ref doc",
|
| 45 |
+
"author": "Ankit Kumar Gupta",
|
| 46 |
+
"date": "2025-10-28T12:33:08+00:00",
|
| 47 |
+
"url": "https://github.com/juspay/hyperswitch/commit/75fa6b097d03d50928ecff2072cf2bc8846f33da"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"sha": "4326d9f6aa1c847ce473b16e13b8f43c02fb3263",
|
| 51 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 52 |
+
"author": "hyperswitch-bot[bot]",
|
| 53 |
+
"date": "2025-10-28T12:39:40+00:00",
|
| 54 |
+
"url": "https://github.com/juspay/hyperswitch/commit/4326d9f6aa1c847ce473b16e13b8f43c02fb3263"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"sha": "7dcd64c81c295d822a507ccf7a83c7515e64039d",
|
| 58 |
+
"message": "add request_body",
|
| 59 |
+
"author": "Ankit Kumar Gupta",
|
| 60 |
+
"date": "2025-10-28T13:17:49+00:00",
|
| 61 |
+
"url": "https://github.com/juspay/hyperswitch/commit/7dcd64c81c295d822a507ccf7a83c7515e64039d"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"sha": "c7c1a9233612a76f244a2bda4a8c2c06b3e5be58",
|
| 65 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 66 |
+
"author": "hyperswitch-bot[bot]",
|
| 67 |
+
"date": "2025-10-28T13:24:36+00:00",
|
| 68 |
+
"url": "https://github.com/juspay/hyperswitch/commit/c7c1a9233612a76f244a2bda4a8c2c06b3e5be58"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"sha": "da6581b27b21506c18fb771186c9a181d778f78f",
|
| 72 |
+
"message": "refactor",
|
| 73 |
+
"author": "Ankit Kumar Gupta",
|
| 74 |
+
"date": "2025-10-28T13:28:28+00:00",
|
| 75 |
+
"url": "https://github.com/juspay/hyperswitch/commit/da6581b27b21506c18fb771186c9a181d778f78f"
|
| 76 |
+
}
|
| 77 |
+
]
|
| 78 |
+
}
|
prs/pr_10025.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10025,
|
| 3 |
+
"title": "feat(connector): [PAYJUSTNOW] Add payjustnow payment flow",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nAdded support to payjustnow BNPL.\r\nAdded payjustnow payment flow for new connector PAYJUSTNOW.\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n<details>\r\n<summary>1. Payment</summary>\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_iLbSU2uDSx2NpjKhkLLpe83Guj5PwdKERDVreD00fIFceSIcVbJwvW29IgNQtPgq' \\\r\n--data-raw '{\r\n \"amount\": 2,\r\n \"currency\": \"ZAR\",\r\n \"amount_to_capture\": 2,\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"setup_future_usage\": \"on_session\", \r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"customer_id\": \"customer123\",\r\n \"phone_country_code\": \"+1\",\r\n \"routing\": { \r\n \"type\": \"single\",\r\n \"data\": \"stripe\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_type\": \"payjustnow\",\r\n \"payment_method_data\": {\r\n \"pay_later\": {\r\n \"payjustnow_redirect\": {}\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ZA\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ZA\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 2,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"128.0.0.1\"\r\n },\r\n \"merchant_order_reference_id\": \"test_ord\"\r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_yAxZJEAOtQh2R4HB5iqU\",\"merchant_id\":\"merchant_1761652548\",\"status\":\"requires_customer_action\",\"amount\":2,\"net_amount\":2,\"shipping_cost\":null,\"amount_capturable\":2,\"amount_received\":null,\"connector\":\"payjustnow\",\"client_secret\":\"pay_yAxZJEAOtQh2R4HB5iqU_secret_83cDn0IP7csL3lgnvsub\",\"created\":\"2025-10-28T11:59:39.353Z\",\"currency\":\"ZAR\",\"customer_id\":\"customer123\",\"customer\":{\"id\":\"customer123\",\"name\":\"John Doe\",\"email\":\"customer@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"pay_later\",\"payment_method_data\":{\"pay_later\":{\"klarna_sdk\":null},\"billing\":null},\"payment_token\":null,\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ZA\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ZA\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":2,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customer@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":\"https://google.com/\",\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"next_action\":{\"type\":\"redirect_to_url\",\"redirect_to_url\":\"http://localhost:8080/payments/redirect/pay_yAxZJEAOtQh2R4HB5iqU/merchant_1761652548/pay_yAxZJEAOtQh2R4HB5iqU_1\"},\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"payjustnow\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"customer123\",\"created_at\":1761652779,\"expires\":1761656379,\"secret\":\"epk_e37db190b31a4f41a89b5c8db0b20bbd\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"v2.942.ce1ad704-2b89-468b-b4b6-5fe28001039c\",\"frm_message\":null,\"metadata\":{\"udf1\":\"value1\",\"login_date\":\"2019-09-10T10:11:12Z\",\"new_customer\":\"true\"},\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_y0isCCTySDYtpMW1H0Da\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_0xvviwb3xgvavBDeZQfT\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-10-28T12:14:39.353Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"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\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":null,\"network_transaction_id\":null,\"payment_method_status\":null,\"updated\":\"2025-10-28T11:59:42.189Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":null,\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null,\"is_stored_credential\":null,\"mit_category\":null}\r\n```\r\n</details>\r\n\r\n2. Incoming webhook source verified: true \r\n<img width=\"1725\" height=\"367\" alt=\"Screenshot 2025-10-28 at 5 31 42\u202fPM\" src=\"https://github.com/user-attachments/assets/784257a5-22cc-49fd-95b9-9759dc5308da\" />\r\n\r\n\r\n<details>\r\n<summary>3. PSync</summary\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_yAxZJEAOtQh2R4HB5iqU' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_iLbSU2uDSx2NpjKhkLLpe83Guj5PwdKERDVreD00fIFceSIcVbJwvW29IgNQtPgq'\r\n```\r\n\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_yAxZJEAOtQh2R4HB5iqU\",\"merchant_id\":\"merchant_1761652548\",\"status\":\"succeeded\",\"amount\":2,\"net_amount\":2,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":2,\"connector\":\"payjustnow\",\"client_secret\":\"pay_yAxZJEAOtQh2R4HB5iqU_secret_83cDn0IP7csL3lgnvsub\",\"created\":\"2025-10-28T11:59:39.353Z\",\"currency\":\"ZAR\",\"customer_id\":\"customer123\",\"customer\":{\"id\":\"customer123\",\"name\":\"John Doe\",\"email\":\"customer@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"pay_later\",\"payment_method_data\":{\"pay_later\":{\"klarna_sdk\":null},\"billing\":null},\"payment_token\":null,\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ZA\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ZA\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":2,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customer@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":\"https://google.com/\",\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"payjustnow\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":null,\"connector_transaction_id\":\"v2.942.ce1ad704-2b89-468b-b4b6-5fe28001039c\",\"frm_message\":null,\"metadata\":{\"udf1\":\"value1\",\"login_date\":\"2019-09-10T10:11:12Z\",\"new_customer\":\"true\"},\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_y0isCCTySDYtpMW1H0Da\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_0xvviwb3xgvavBDeZQfT\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-10-28T12:14:39.353Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"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\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":null,\"network_transaction_id\":null,\"payment_method_status\":null,\"updated\":\"2025-10-28T12:00:33.476Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":null,\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null,\"is_stored_credential\":null,\"mit_category\":null}\r\n```\r\n\r\n</details>\r\n\r\n\r\n<details>\r\n<summary>4. Refund</summary>\r\n\r\n```\r\ncurl --location 'http://localhost:8080/refunds' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_iLbSU2uDSx2NpjKhkLLpe83Guj5PwdKERDVreD00fIFceSIcVbJwvW29IgNQtPgq' \\\r\n--data '{\r\n \"payment_id\": \"pay_yAxZJEAOtQh2R4HB5iqU\",\r\n \"amount\": 1,\r\n \"reason\": \"Customer returned product\",\r\n \"refund_type\": \"instant\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n }\r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\"refund_id\":\"ref_88k9empDZ8arh8zIeyjp\",\"payment_id\":\"pay_yAxZJEAOtQh2R4HB5iqU\",\"amount\":1,\"currency\":\"ZAR\",\"status\":\"succeeded\",\"reason\":\"Customer returned product\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"error_message\":null,\"error_code\":null,\"unified_code\":null,\"unified_message\":null,\"created_at\":\"2025-10-28T12:06:59.417Z\",\"updated_at\":\"2025-10-28T12:07:06.584Z\",\"connector\":\"payjustnow\",\"profile_id\":\"pro_y0isCCTySDYtpMW1H0Da\",\"merchant_connector_id\":\"mca_0xvviwb3xgvavBDeZQfT\",\"split_refunds\":null,\"issuer_error_code\":null,\"issuer_error_message\":null}\r\n```\r\n\r\n</details>\r\n\r\n\r\n<details>\r\n<summary>5. RSync</summary>\r\n\r\n```\r\ncurl --location 'http://localhost:8080/refunds/ref_88k9empDZ8arh8zIeyjp' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_iLbSU2uDSx2NpjKhkLLpe83Guj5PwdKERDVreD00fIFceSIcVbJwvW29IgNQtPgq'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\"refund_id\":\"ref_88k9empDZ8arh8zIeyjp\",\"payment_id\":\"pay_yAxZJEAOtQh2R4HB5iqU\",\"amount\":1,\"currency\":\"ZAR\",\"status\":\"succeeded\",\"reason\":\"Customer returned product\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"error_message\":null,\"error_code\":null,\"unified_code\":null,\"unified_message\":null,\"created_at\":\"2025-10-28T12:06:59.417Z\",\"updated_at\":\"2025-10-28T12:07:06.584Z\",\"connector\":\"payjustnow\",\"profile_id\":\"pro_y0isCCTySDYtpMW1H0Da\",\"merchant_connector_id\":\"mca_0xvviwb3xgvavBDeZQfT\",\"split_refunds\":null,\"issuer_error_code\":null,\"issuer_error_message\":null}\r\n```\r\n</details>\r\n\r\n\r\n<details>\r\n<summary>6. Void</summary>\r\n\r\n- create a payment\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_iLbSU2uDSx2NpjKhkLLpe83Guj5PwdKERDVreD00fIFceSIcVbJwvW29IgNQtPgq' \\\r\n--data-raw '{\r\n \"amount\": 2,\r\n \"currency\": \"ZAR\",\r\n \"amount_to_capture\": 2,\r\n \"confirm\": true,\r\n \r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"setup_future_usage\": \"on_session\", \r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"customer_id\": \"customer123\",\r\n \r\n \r\n \r\n \"phone_country_code\": \"+1\",\r\n \"routing\": { \r\n \"type\": \"single\",\r\n \"data\": \"stripe\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_type\": \"payjustnow\",\r\n \"payment_method_data\": {\r\n \"pay_later\": {\r\n \"payjustnow_redirect\": {}\r\n }\r\n },\r\n \r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ZA\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ZA\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 2,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"128.0.0.1\"\r\n },\r\n \"merchant_order_reference_id\": \"test_ord\"\r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_xqvqpbanJPmeTclcvwXR\",\"merchant_id\":\"merchant_1761652548\",\"status\":\"requires_customer_action\",\"amount\":2,\"net_amount\":2,\"shipping_cost\":null,\"amount_capturable\":2,\"amount_received\":null,\"connector\":\"payjustnow\",\"client_secret\":\"pay_xqvqpbanJPmeTclcvwXR_secret_OuMFdNoSTdt3hzgHhXok\",\"created\":\"2025-10-28T12:09:38.304Z\",\"currency\":\"ZAR\",\"customer_id\":\"customer123\",\"customer\":{\"id\":\"customer123\",\"name\":\"John Doe\",\"email\":\"customer@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"pay_later\",\"payment_method_data\":{\"pay_later\":{\"klarna_sdk\":null},\"billing\":null},\"payment_token\":null,\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ZA\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ZA\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":2,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customer@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":\"https://google.com/\",\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"next_action\":{\"type\":\"redirect_to_url\",\"redirect_to_url\":\"http://localhost:8080/payments/redirect/pay_xqvqpbanJPmeTclcvwXR/merchant_1761652548/pay_xqvqpbanJPmeTclcvwXR_1\"},\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"payjustnow\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"customer123\",\"created_at\":1761653378,\"expires\":1761656978,\"secret\":\"epk_fb8370923be34bcc9e2d381d403b89f8\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"v2.942.d88400ba-79b6-4440-b8cc-76d1fce7b8a9\",\"frm_message\":null,\"metadata\":{\"udf1\":\"value1\",\"login_date\":\"2019-09-10T10:11:12Z\",\"new_customer\":\"true\"},\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_y0isCCTySDYtpMW1H0Da\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_0xvviwb3xgvavBDeZQfT\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-10-28T12:24:38.304Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"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\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":null,\"network_transaction_id\":null,\"payment_method_status\":null,\"updated\":\"2025-10-28T12:09:42.110Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":null,\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null,\"is_stored_credential\":null,\"mit_category\":null}\r\n```\r\n- Cancel it \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_xqvqpbanJPmeTclcvwXR/cancel' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_iLbSU2uDSx2NpjKhkLLpe83Guj5PwdKERDVreD00fIFceSIcVbJwvW29IgNQtPgq' \\\r\n--data '{\r\n \"cancellation_reason\": \"requested_by_customer\"\r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_xqvqpbanJPmeTclcvwXR\",\"merchant_id\":\"merchant_1761652548\",\"status\":\"cancelled\",\"amount\":2,\"net_amount\":2,\"shipping_cost\":null,\"amount_capturable\":2,\"amount_received\":null,\"connector\":\"payjustnow\",\"client_secret\":\"pay_xqvqpbanJPmeTclcvwXR_secret_OuMFdNoSTdt3hzgHhXok\",\"created\":\"2025-10-28T12:09:38.304Z\",\"currency\":\"ZAR\",\"customer_id\":\"customer123\",\"customer\":{\"id\":\"customer123\",\"name\":\"John Doe\",\"email\":\"customer@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"pay_later\",\"payment_method_data\":{\"pay_later\":{\"klarna_sdk\":null},\"billing\":null},\"payment_token\":null,\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ZA\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ZA\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":2,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customer@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":\"https://google.com/\",\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"next_action\":null,\"cancellation_reason\":\"requested_by_customer\",\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"payjustnow\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":null,\"connector_transaction_id\":\"v2.942.d88400ba-79b6-4440-b8cc-76d1fce7b8a9\",\"frm_message\":null,\"metadata\":{\"udf1\":\"value1\",\"login_date\":\"2019-09-10T10:11:12Z\",\"new_customer\":\"true\"},\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_y0isCCTySDYtpMW1H0Da\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_0xvviwb3xgvavBDeZQfT\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-10-28T12:24:38.304Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"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\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":null,\"network_transaction_id\":null,\"payment_method_status\":null,\"updated\":\"2025-10-28T12:11:03.501Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":null,\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null,\"is_stored_credential\":null,\"mit_category\":null}\r\n```\r\n\r\n</details>\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "swetasharma03",
|
| 6 |
+
"created_at": "2025-10-28T10:22:59+00:00",
|
| 7 |
+
"merged_at": "2025-11-03T10:14:09+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"M-api-contract-changes"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10025",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "ff44966a6976e8f8105510650558f7102f31ee40",
|
| 16 |
+
"message": "payjustnow flow added",
|
| 17 |
+
"author": "Sweta-Kumari-Sharma",
|
| 18 |
+
"date": "2025-10-28T10:21:46+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ff44966a6976e8f8105510650558f7102f31ee40"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "15190c59749a33d2aca29849e348a50fccd7b8c3",
|
| 23 |
+
"message": "resolved comments",
|
| 24 |
+
"author": "Sweta-Kumari-Sharma",
|
| 25 |
+
"date": "2025-10-29T11:25:14+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/15190c59749a33d2aca29849e348a50fccd7b8c3"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "1245d9a47509a3ac53156013889349d3d5506ece",
|
| 30 |
+
"message": "fixed clippy checks",
|
| 31 |
+
"author": "Sweta-Kumari-Sharma",
|
| 32 |
+
"date": "2025-10-29T12:52:09+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1245d9a47509a3ac53156013889349d3d5506ece"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "9bedc92c4f353b2b7d2707930e3b369b09cd496b",
|
| 37 |
+
"message": "resolved comments",
|
| 38 |
+
"author": "Sweta-Kumari-Sharma",
|
| 39 |
+
"date": "2025-10-30T12:10:47+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9bedc92c4f353b2b7d2707930e3b369b09cd496b"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"sha": "4d25fb5e2f2b4a94202156d2519e3d898e96bb98",
|
| 44 |
+
"message": "resolved comment",
|
| 45 |
+
"author": "Sweta-Kumari-Sharma",
|
| 46 |
+
"date": "2025-10-31T06:57:52+00:00",
|
| 47 |
+
"url": "https://github.com/juspay/hyperswitch/commit/4d25fb5e2f2b4a94202156d2519e3d898e96bb98"
|
| 48 |
+
}
|
| 49 |
+
]
|
| 50 |
+
}
|
prs/pr_10028.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10028,
|
| 3 |
+
"title": "refactor(connector): use existing RouterData Type and RouterResponseData type for existing flows",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nTo use RouterData type and RouterResponseData type instead of using generics in the implementation of response conversion. This reduces the lines of code (~62% reduced) and improves readability.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nCI checks are enough as there is no logical change\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "jagan-jaya",
|
| 6 |
+
"created_at": "2025-10-28T12:13:56+00:00",
|
| 7 |
+
"merged_at": "2025-11-04T14:23:14+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10028",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "2a6e9c44d2ccc560eec643b963cc03b6d008faa7",
|
| 14 |
+
"message": "feat(subscriptions): add support to pause, resume and cancel subscription",
|
| 15 |
+
"author": "Jagan Elavarasan",
|
| 16 |
+
"date": "2025-10-27T12:27:04+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2a6e9c44d2ccc560eec643b963cc03b6d008faa7"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "8a9a4b0a57c3cd8567d326c270d2b4669b5a2c7c",
|
| 21 |
+
"message": "chore: run formatter",
|
| 22 |
+
"author": "hyperswitch-bot[bot]",
|
| 23 |
+
"date": "2025-10-27T12:30:55+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8a9a4b0a57c3cd8567d326c270d2b4669b5a2c7c"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"sha": "d9fc61f76eda295ec521eacfb1fb5ef39cac335d",
|
| 28 |
+
"message": "fix clippy warnings",
|
| 29 |
+
"author": "Jagan Elavarasan",
|
| 30 |
+
"date": "2025-10-27T13:44:52+00:00",
|
| 31 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d9fc61f76eda295ec521eacfb1fb5ef39cac335d"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"sha": "3825e060dc660ec60d016e6c1af936efb7b7cfd5",
|
| 35 |
+
"message": "Merge branch 'subscription-actions' of https://github.com/juspay/hyperswitch into subscription-actions",
|
| 36 |
+
"author": "Jagan Elavarasan",
|
| 37 |
+
"date": "2025-10-27T13:45:13+00:00",
|
| 38 |
+
"url": "https://github.com/juspay/hyperswitch/commit/3825e060dc660ec60d016e6c1af936efb7b7cfd5"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"sha": "e2f98070fec80f8763ecbfcd653f548bdae6dd12",
|
| 42 |
+
"message": "refactor(connectors): use existing RouterData and ResponseRouterData types",
|
| 43 |
+
"author": "Jagan Elavarasan",
|
| 44 |
+
"date": "2025-10-28T12:13:22+00:00",
|
| 45 |
+
"url": "https://github.com/juspay/hyperswitch/commit/e2f98070fec80f8763ecbfcd653f548bdae6dd12"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"sha": "af56ea2ae9a7b788ef2eadea05565a552cf574ca",
|
| 49 |
+
"message": "chore: run formatter",
|
| 50 |
+
"author": "hyperswitch-bot[bot]",
|
| 51 |
+
"date": "2025-10-28T12:16:19+00:00",
|
| 52 |
+
"url": "https://github.com/juspay/hyperswitch/commit/af56ea2ae9a7b788ef2eadea05565a552cf574ca"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"sha": "8a127dffc810816f79b29670b69d2c9516ac2f19",
|
| 56 |
+
"message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into connector-types",
|
| 57 |
+
"author": "Jagan Elavarasan",
|
| 58 |
+
"date": "2025-11-04T05:42:46+00:00",
|
| 59 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8a127dffc810816f79b29670b69d2c9516ac2f19"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"sha": "8975593d7444d5863d7b9ac30f70a6e877ad245e",
|
| 63 |
+
"message": "Merge branch 'connector-types' of https://github.com/juspay/hyperswitch into connector-types",
|
| 64 |
+
"author": "Jagan Elavarasan",
|
| 65 |
+
"date": "2025-11-04T05:42:57+00:00",
|
| 66 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8975593d7444d5863d7b9ac30f70a6e877ad245e"
|
| 67 |
+
}
|
| 68 |
+
]
|
| 69 |
+
}
|
prs/pr_10035.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10035,
|
| 3 |
+
"title": "fix(connector): MIT key name fixed",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\nThere was a typo in MIT key name in 3 connectors.\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n`merchant_initiated_transaction` was being used as `merchant_intitiated_transaction` in cybersource, bankofamerica and wellsfargo connector implementation.\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n-->\r\n1. Payment call to create mandate\r\n- Request \r\n```bash\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_eNN0VtQKpFXvKpYlgtLLglsdailv0tIXwysT9qciiafRreSEGqW_trimmed' \\\r\n--data '{\r\n \"currency\": \"USD\",\r\n \"amount\": 6000,\r\n \"confirm\": true,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"description\": \"Joseph First Crypto\",\r\n \"email\": \"hyperswitch@gmail.com\",\r\n \"setup_future_usage\": \"off_session\",\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"applepay\"\r\n }\r\n },\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\": \"2023-01-01T00:00:00.000Z\",\r\n \"online\": {\r\n \"ip_address\": \"127.0.0.1\",\r\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36\"\r\n }\r\n },\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"cus_cRBLHzSlgDrhplR8cLBe\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4111111111111111\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"2025\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"123 Main St\",\r\n \"city\": \"New York\",\r\n \"state\": \"NY\",\r\n \"zip\": \"10001\",\r\n \"country\": \"US\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"email\": \"hyperswitch@gmail.com\"\r\n }\r\n}'\r\n```\r\n- Response\r\n```bash\r\n{\r\n \"payment_id\": \"pay_x257Djpg8V5Aeo4BOfUA\",\r\n \"merchant_id\": \"merchant_1762419617\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 6000,\r\n \"net_amount\": 6000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 6000,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_x257Djpg8V5Aeo4BOfUA_secret_G89gCEzpYXHl1W_trimed\",\r\n \"created\": \"2025-11-06T09:19:10.059Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cus_cRBLHzSlgDrhplR8cLBe\",\r\n \"customer\": {\r\n \"id\": \"cus_cRBLHzSlgDrhplR8cLBe\",\r\n \"name\": null,\r\n \"email\": \"hyperswitch@gmail.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": \"Joseph First Crypto\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1111\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"JP Morgan\",\r\n \"card_issuing_country\": \"INDIA\",\r\n \"card_isin\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"2025\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"payment_checks\": {\r\n \"avs_response\": {\r\n \"code\": \"Y\",\r\n \"codeRaw\": \"Y\"\r\n },\r\n \"card_verification\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_qT4skkTu1y8z4HHa3_trimmed\",\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"New York\",\r\n \"country\": \"US\",\r\n \"line1\": \"123 Main St\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"10001\",\r\n \"state\": \"NY\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": \"hyperswitch@gmail.com\"\r\n },\r\n \"order_details\": null,\r\n \"email\": \"hyperswitch@gmail.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cus_cRBLHzSlgDrhplR8cLBe\",\r\n \"created_at\": 1762420750,\r\n \"expires\": 1762424350,\r\n \"secret\": \"epk_1cfb71b2ff49434ca59a58f24b63_trimed\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"7624207515416266604805\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": {\r\n \"apple_pay\": null,\r\n \"airwallex\": null,\r\n \"noon\": {\r\n \"order_category\": \"applepay\"\r\n },\r\n \"braintree\": null,\r\n \"adyen\": null\r\n },\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pay_x257Djpg8V5Aeo4BOfUA_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_TkxYpWmFyUXQnSAaKtkT\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_nG0ord46nJz0wljPAjVO\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-06T09:34:10.059Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_aSHyPXAfjdOdlvleBQcP\",\r\n \"network_transaction_id\": \"016150703802094\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-06T09:19:12.333Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"42EA857351BE1AC4E063AF598E0A3C7E\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n2. MandatePayment Using PMID\r\n\r\n- Request \r\n```bash\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_eNN0VtQKpFXvKpYlgtLLglsdailv0tIXwysT9qciiafRreSEGqWDoTtrimmed' \\\r\n--data '{\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cus_cRBLHzSlgDrhplR8cLBe\",\r\n \"confirm\": true,\r\n \"off_session\": true,\r\n \"email\": \"hyperswitch@gmail.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"pm_aSHyPXAfjdOdlvleBQcP\"\r\n },\r\n \"capture_method\": \"automatic\"\r\n}'\r\n```\r\n\r\n- Response\r\n\r\n```bash\r\n{\r\n \"payment_id\": \"pay_lcTa1jPz9ycLZJ9tiN93\",\r\n \"merchant_id\": \"merchant_1762419617\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 100,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_lcTa1jPz9ycLZJ9tiN93_secret_kU7T9Pu5jRgQpEStrimmed\",\r\n \"created\": \"2025-11-06T09:25:59.335Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cus_cRBLHzSlgDrhplR8cLBe\",\r\n \"customer\": {\r\n \"id\": \"cus_cRBLHzSlgDrhplR8cLBe\",\r\n \"name\": null,\r\n \"email\": \"hyperswitch@gmail.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": true,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1111\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"JP Morgan\",\r\n \"card_issuing_country\": \"INDIA\",\r\n \"card_isin\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"2025\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"payment_checks\": {\r\n \"avs_response\": {\r\n \"code\": \"Y\",\r\n \"codeRaw\": \"Y\"\r\n },\r\n \"card_verification\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": \"hyperswitch@gmail.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cus_cRBLHzSlgDrhplR8cLBe\",\r\n \"created_at\": 1762421159,\r\n \"expires\": 1762424759,\r\n \"secret\": \"epk_f9f6f7aeec944082a0bed2d68169trimmed\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"7624211608136593304805\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pay_lcTa1jPz9ycLZJ9tiN93_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_TkxYpWmFyUXQnSAaKtkT\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_nG0ord46nJz0wljPAjVO\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-06T09:40:59.335Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_aSHyPXAfjdOdlvleBQcP\",\r\n \"network_transaction_id\": \"016150703802094\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-06T09:26:01.537Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"42EA857351BE1AC4E063AF598E0A3C7E\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": true,\r\n \"mit_category\": null\r\n}\r\n```\r\nRaw connector Req ss:\r\n\r\n<img width=\"1206\" height=\"123\" alt=\"image\" src=\"https://github.com/user-attachments/assets/2c2fcab6-2006-4f96-836f-b9cb20fb27a4\" />\r\n\r\n\r\n- Diff checker HS <> UCS cybersource (BEFORE)\r\n<img width=\"1728\" height=\"453\" alt=\"image\" src=\"https://github.com/user-attachments/assets/17c4c7da-2b76-4332-90ab-148cd0a6031e\" />\r\n\r\n- AFTER\r\n<img width=\"1722\" height=\"333\" alt=\"image\" src=\"https://github.com/user-attachments/assets/3d5060b0-ce44-414c-9cb8-04d43393a852\" />\r\nonly signature and date were differennt.\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "chaitak-gorai",
|
| 6 |
+
"created_at": "2025-10-29T04:19:20+00:00",
|
| 7 |
+
"merged_at": "2025-11-07T08:14:55+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10035",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "2171bfae42d97350f30d4f51e8660e01f81c29bc",
|
| 14 |
+
"message": "fix(connector): MIT key name fixed",
|
| 15 |
+
"author": "Chaitak Gorai",
|
| 16 |
+
"date": "2025-10-29T04:13:23+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2171bfae42d97350f30d4f51e8660e01f81c29bc"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "97132046e4f5d4a7615a8c67141cd08d9d8b8a7c",
|
| 21 |
+
"message": "Merge branch 'main' into cyb-setup-mandate-fix",
|
| 22 |
+
"author": "Chaitak Gorai",
|
| 23 |
+
"date": "2025-10-29T05:48:59+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/97132046e4f5d4a7615a8c67141cd08d9d8b8a7c"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"sha": "c3264d988da5e7b8d145e97c6d271b1afc9cb45a",
|
| 28 |
+
"message": "Merge branch 'main' into cyb-setup-mandate-fix",
|
| 29 |
+
"author": "Chaitak Gorai",
|
| 30 |
+
"date": "2025-10-29T12:48:12+00:00",
|
| 31 |
+
"url": "https://github.com/juspay/hyperswitch/commit/c3264d988da5e7b8d145e97c6d271b1afc9cb45a"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"sha": "2d2e6d1a4e83af90006c84938ad9a101a8caf068",
|
| 35 |
+
"message": "Merge branch 'main' into cyb-setup-mandate-fix",
|
| 36 |
+
"author": "Chaitak Gorai",
|
| 37 |
+
"date": "2025-10-30T13:10:40+00:00",
|
| 38 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2d2e6d1a4e83af90006c84938ad9a101a8caf068"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"sha": "2e23b7e18ac4554ea7521c025a8c6217b834b006",
|
| 42 |
+
"message": "Merge branch 'main' into cyb-setup-mandate-fix",
|
| 43 |
+
"author": "Chaitak Gorai",
|
| 44 |
+
"date": "2025-10-30T15:44:37+00:00",
|
| 45 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2e23b7e18ac4554ea7521c025a8c6217b834b006"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"sha": "bb850d16e716673cd229666c87f5601c4797fc21",
|
| 49 |
+
"message": "Merge branch 'main' into cyb-setup-mandate-fix",
|
| 50 |
+
"author": "Chaitak Gorai",
|
| 51 |
+
"date": "2025-10-31T07:19:44+00:00",
|
| 52 |
+
"url": "https://github.com/juspay/hyperswitch/commit/bb850d16e716673cd229666c87f5601c4797fc21"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"sha": "9294cb27130ffd62a1db9e259319725adb483ab6",
|
| 56 |
+
"message": "Merge branch 'main' into cyb-setup-mandate-fix",
|
| 57 |
+
"author": "Chaitak Gorai",
|
| 58 |
+
"date": "2025-11-03T07:06:46+00:00",
|
| 59 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9294cb27130ffd62a1db9e259319725adb483ab6"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"sha": "8a1d48305fcb3a02a4606b46aada23a2260b6d6b",
|
| 63 |
+
"message": "Merge branch 'main' into cyb-setup-mandate-fix",
|
| 64 |
+
"author": "Chaitak Gorai",
|
| 65 |
+
"date": "2025-11-05T12:34:44+00:00",
|
| 66 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8a1d48305fcb3a02a4606b46aada23a2260b6d6b"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"sha": "0b9ae56b933c04a7d7c6105af36aab7e77702a0f",
|
| 70 |
+
"message": "Merge branch 'main' into cyb-setup-mandate-fix",
|
| 71 |
+
"author": "Chaitak Gorai",
|
| 72 |
+
"date": "2025-11-06T09:53:58+00:00",
|
| 73 |
+
"url": "https://github.com/juspay/hyperswitch/commit/0b9ae56b933c04a7d7c6105af36aab7e77702a0f"
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"sha": "481040aeb6b99d41d5b4d22e446a73c0e90d78df",
|
| 77 |
+
"message": "Merge branch 'main' into cyb-setup-mandate-fix",
|
| 78 |
+
"author": "Chaitak Gorai",
|
| 79 |
+
"date": "2025-11-06T10:16:36+00:00",
|
| 80 |
+
"url": "https://github.com/juspay/hyperswitch/commit/481040aeb6b99d41d5b4d22e446a73c0e90d78df"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"sha": "0de7baed6502c701d998a720a742b65d6358b83e",
|
| 84 |
+
"message": "Merge branch 'main' into cyb-setup-mandate-fix",
|
| 85 |
+
"author": "Chaitak Gorai",
|
| 86 |
+
"date": "2025-11-07T06:59:20+00:00",
|
| 87 |
+
"url": "https://github.com/juspay/hyperswitch/commit/0de7baed6502c701d998a720a742b65d6358b83e"
|
| 88 |
+
}
|
| 89 |
+
]
|
| 90 |
+
}
|
prs/pr_10037.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10037,
|
| 3 |
+
"title": "refactor(connector): [Payouts] Add bankredirect required fields for payout",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nRefactor bankredirect required fields for payout\r\n\r\nin required fields \r\n- changed `payout_method_data.bank_redirect.interac.email` to `payout_method_data.bank_redirect.email`\r\n- changed `payment_method_data.billing.phone.number` and `payment_method_data.billing.phone.country_code` to `billing.phone.number` and `billing.phone.country_code`\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n1. Create Gigadat payout connector\r\n```\r\n{\r\n \"connector_type\": \"payout_processor\",\r\n \"connector_name\": \"gigadat\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_key\": \"_\r\n \"key1\": \"_\",\r\n \"api_secret\" : \"_\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"interac\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"site\" : \"https://google.com/\"\r\n }\r\n}\r\n\r\n```\r\n2. Create a payout with confirm false\r\n```\r\n{\r\n \"amount\": 1,\r\n \"currency\": \"CAD\",\r\n \"customer_id\": \"{{customer_id}}\",\r\n \"email\": \"payout_customer@example.com\",\r\n \"name\": \"Doest John\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payout request\",\r\n \"connector\": [\r\n \"gigadat\"\r\n ],\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"127.0.0.1\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"CA\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"Doest\",\r\n \"last_name\": \"John\"\r\n },\r\n \"phone\": {\r\n \"number\": \"6168205366\",\r\n \"country_code\": \"1\"\r\n }\r\n },\r\n \"entity_type\": \"Individual\",\r\n \"recurring\": false,\r\n \"payout_link\": true,\r\n \"payout_link_config\": {\r\n \"logo\": \"https://hyperswitch.io/favicon.ico\",\r\n \"merchant_name\": \"Hyperswitch\",\r\n \"theme\": \"#4285F4\",\r\n \"test_mode\": true,\r\n \"form_layout\": \"tabs\"\r\n }\r\n}\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"payout_id\": \"payout_wOL1qmK6JEbrrm4x97y4\",\r\n \"merchant_id\": \"merchant_1761055504\",\r\n \"merchant_order_reference_id\": null,\r\n \"amount\": 1,\r\n \"currency\": \"CAD\",\r\n \"connector\": null,\r\n \"payout_type\": null,\r\n \"payout_method_data\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"CA\",\r\n \"first_name\": \"Doest\",\r\n \"last_name\": \"John\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"6168205366\",\r\n \"country_code\": \"1\"\r\n },\r\n \"email\": null\r\n },\r\n \"auto_fulfill\": false,\r\n \"customer_id\": \"cus_JME76kNhCBZbnCCt7STw\",\r\n \"customer\": {\r\n \"id\": \"cus_JME76kNhCBZbnCCt7STw\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"client_secret\": \"payout_payout_wOL1qmK6JEbrrm4x97y4_secret_MlbMUxpR5ZO8gIiwYv8u\",\r\n \"return_url\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"description\": \"Its my first payout request\",\r\n \"entity_type\": \"Individual\",\r\n \"recurring\": false,\r\n \"metadata\": {},\r\n \"merchant_connector_id\": null,\r\n \"status\": \"requires_payout_method_data\",\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"profile_id\": \"pro_ZBFKeBzE1jVH95KQwzxl\",\r\n \"created\": \"2025-10-21T14:05:31.518Z\",\r\n \"connector_transaction_id\": null,\r\n \"priority\": null,\r\n \"payout_link\": {\r\n \"payout_link_id\": \"payout_link_gJd0iaL268lZI2KxDqpS\",\r\n \"link\": \"http://localhost:8080/payout_link/merchant_1761055504/payout_wOL1qmK6JEbrrm4x97y4?locale=en\"\r\n },\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payout_method_id\": null\r\n}\r\n```\r\nIn payout link , we can see\r\n```\r\n\"enabled_payment_methods_with_required_fields\": [\r\n {\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_types_info\": [\r\n {\r\n \"payment_method_type\": \"interac\",\r\n \"required_fields\": {\r\n \"billing.phone.country_code\": {\r\n \"required_field\": \"billing.phone.country_code\",\r\n \"display_name\": \"dialing_code\",\r\n \"field_type\": \"user_phone_number_country_code\",\r\n \"value\": null\r\n },\r\n \"billing.address.first_name\": {\r\n \"required_field\": \"billing.address.first_name\",\r\n \"display_name\": \"billing_address_first_name\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"payout_method_data.bank_redirect.email\": {\r\n \"required_field\": \"payout_method_data.bank_redirect.email\",\r\n \"display_name\": \"email\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"billing.address.last_name\": {\r\n \"required_field\": \"billing.address.last_name\",\r\n \"display_name\": \"billing_address_last_name\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"billing.phone.number\": {\r\n \"required_field\": \"billing.phone.number\",\r\n \"display_name\": \"phone\",\r\n \"field_type\": \"user_phone_number\",\r\n \"value\": null\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n],\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "swangi-kumari",
|
| 6 |
+
"created_at": "2025-10-29T06:25:30+00:00",
|
| 7 |
+
"merged_at": "2025-10-29T08:38:36+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-connector-integration",
|
| 11 |
+
"Payouts"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10037",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "5106f015486dc53b04ac4e706586d89817a81826",
|
| 17 |
+
"message": "refactor: add bankredirect required fields for payout",
|
| 18 |
+
"author": "Swangi Kumari",
|
| 19 |
+
"date": "2025-10-29T06:24:20+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/5106f015486dc53b04ac4e706586d89817a81826"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
}
|
prs/pr_10044.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10044,
|
| 3 |
+
"title": "fix(connector): Manual capture on adyen results partially_captured ",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nManual full capture on Adyen results in `partial_capture` status. Fix the status should have been `succeeded`\r\n\r\n<img width=\"924\" height=\"1036\" alt=\"Screenshot 2025-10-30 at 1 04 23\u202fPM\" src=\"https://github.com/user-attachments/assets/c91b02a9-b550-4b74-b80f-31952f86f200\" />\r\n\r\n\r\n\r\n### request manual\r\n\r\n```json\r\n{\r\n \"amount\": 689,\r\n \"customer_id\": \"hello_world\",\r\n \"currency\": \"EUR\",\r\n \"connector\": [\r\n \"adyen\"\r\n ],\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"description\": \"hellow world\",\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"560095\",\r\n \"country\": \"US\",\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\",\r\n \"line1\": \"Fasdf\",\r\n \"line2\": \"Fasdf\",\r\n \"city\": \"Fasdf\"\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4917610000000000\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": \"Joseph Doe\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\r\n \"ip_address\": \"192.168.1.1\",\r\n \"java_enabled\": false,\r\n \"java_script_enabled\": true,\r\n \"language\": \"en-US\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 1080,\r\n \"screen_width\": 1920,\r\n \"time_zone\": 330,\r\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\"\r\n }\r\n}\r\n```\r\n\r\n### response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_HYoeROTXYjKJVkC8p9s1\",\r\n \"merchant_id\": \"merchant_1761722310\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 689,\r\n \"net_amount\": 689,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 689,\r\n \"amount_received\": null,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_HYoeROTXYjKJVkC8p9s1_secret_vppAdOmpxx5EktXQYgPD\",\r\n \"created\": \"2025-10-30T04:38:10.102Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"hello_world\",\r\n \"customer\": {\r\n \"id\": \"hello_world\",\r\n \"name\": null,\r\n \"email\": null,\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": \"hellow world\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0000\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"491761\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": \"Joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Fasdf\",\r\n \"country\": \"US\",\r\n \"line1\": \"Fasdf\",\r\n \"line2\": \"Fasdf\",\r\n \"line3\": null,\r\n \"zip\": \"560095\",\r\n \"state\": null,\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"hello_world\",\r\n \"created_at\": 1761799090,\r\n \"expires\": 1761802690,\r\n \"secret\": \"epk_038f6099aa22423291e44b641800dc7f\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"PPB2DHT6LJ88QFV5\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pay_HYoeROTXYjKJVkC8p9s1_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_XsLQoyjSP5Ln0weVBtfW\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_CaJaVaQtjd6cJTtQIBw4\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-30T04:53:10.102Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en-US\",\r\n \"time_zone\": 330,\r\n \"ip_address\": \"192.168.1.1\",\r\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": false,\r\n \"screen_width\": 1920,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\r\n \"screen_height\": 1080,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"925719895542048\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-30T04:38:13.146Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n### Capture request \r\n\r\n```sh\r\ncurl --location 'localhost:8080/payments/pay_HYoeROTXYjKJVkC8p9s1/capture' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_YMtyZJxIUVGwq5InpXiHztRdo8yJVb0XMP7qTk4jXoCEvBN0AfNheeM4jq6FHJpD' \\\r\n--data '{\r\n \"amount_to_capture\": 689\r\n}'\r\n```\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_HYoeROTXYjKJVkC8p9s1\",\r\n \"merchant_id\": \"merchant_1761722310\",\r\n \"status\": \"processing\",\r\n \"amount\": 689,\r\n \"net_amount\": 689,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 689,\r\n \"amount_received\": null,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_HYoeROTXYjKJVkC8p9s1_secret_vppAdOmpxx5EktXQYgPD\",\r\n \"created\": \"2025-10-30T04:38:10.102Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"hello_world\",\r\n \"customer\": {\r\n \"id\": \"hello_world\",\r\n \"name\": null,\r\n \"email\": null,\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": \"hellow world\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0000\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"491761\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": \"Joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Fasdf\",\r\n \"country\": \"US\",\r\n \"line1\": \"Fasdf\",\r\n \"line2\": \"Fasdf\",\r\n \"line3\": null,\r\n \"zip\": \"560095\",\r\n \"state\": null,\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"PPB2DHT6LJ88QFV5\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pay_HYoeROTXYjKJVkC8p9s1_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_XsLQoyjSP5Ln0weVBtfW\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_CaJaVaQtjd6cJTtQIBw4\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-30T04:53:10.102Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en-US\",\r\n \"time_zone\": 330,\r\n \"ip_address\": \"192.168.1.1\",\r\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": false,\r\n \"screen_width\": 1920,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\r\n \"screen_height\": 1080,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"925719895542048\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-30T04:39:04.043Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n### before webhook - amount_revceived=null and `processing` state\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_HYoeROTXYjKJVkC8p9s1\",\r\n \"merchant_id\": \"merchant_1761722310\",\r\n \"status\": \"processing\",\r\n \"amount\": 689,\r\n \"net_amount\": 689,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 689,\r\n \"amount_received\": null,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_HYoeROTXYjKJVkC8p9s1_secret_vppAdOmpxx5EktXQYgPD\",\r\n \"created\": \"2025-10-30T04:38:10.102Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"hello_world\",\r\n \"customer\": {\r\n \"id\": \"hello_world\",\r\n \"name\": null,\r\n \"email\": null,\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": \"hellow world\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0000\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"491761\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": \"Joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Fasdf\",\r\n \"country\": \"US\",\r\n \"line1\": \"Fasdf\",\r\n \"line2\": \"Fasdf\",\r\n \"line3\": null,\r\n \"zip\": \"560095\",\r\n \"state\": null,\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"PPB2DHT6LJ88QFV5\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pay_HYoeROTXYjKJVkC8p9s1_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_XsLQoyjSP5Ln0weVBtfW\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_CaJaVaQtjd6cJTtQIBw4\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-30T04:53:10.102Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en-US\",\r\n \"time_zone\": 330,\r\n \"ip_address\": \"192.168.1.1\",\r\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": false,\r\n \"screen_width\": 1920,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\r\n \"screen_height\": 1080,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"925719895542048\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-30T04:39:50.278Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n### after webhook\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_HYoeROTXYjKJVkC8p9s1\",\r\n \"merchant_id\": \"merchant_1761722310\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 689,\r\n \"net_amount\": 689,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 689,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_HYoeROTXYjKJVkC8p9s1_secret_vppAdOmpxx5EktXQYgPD\",\r\n \"created\": \"2025-10-30T04:38:10.102Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"hello_world\",\r\n \"customer\": {\r\n \"id\": \"hello_world\",\r\n \"name\": null,\r\n \"email\": null,\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": \"hellow world\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0000\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"491761\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": \"Joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Fasdf\",\r\n \"country\": \"US\",\r\n \"line1\": \"Fasdf\",\r\n \"line2\": \"Fasdf\",\r\n \"line3\": null,\r\n \"zip\": \"560095\",\r\n \"state\": null,\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"PPB2DHT6LJ88QFV5\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pay_HYoeROTXYjKJVkC8p9s1_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_XsLQoyjSP5Ln0weVBtfW\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_CaJaVaQtjd6cJTtQIBw4\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-30T04:53:10.102Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en-US\",\r\n \"time_zone\": 330,\r\n \"ip_address\": \"192.168.1.1\",\r\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": false,\r\n \"screen_width\": 1920,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\r\n \"screen_height\": 1080,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"925719895542048\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-30T04:41:29.416Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "Nithin1506200",
|
| 6 |
+
"created_at": "2025-10-29T08:01:58+00:00",
|
| 7 |
+
"merged_at": "2025-10-30T08:13:12+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-connector-integration"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10044",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "ad4d17e9a4981887b27401fba0e8eed694863f32",
|
| 16 |
+
"message": "update",
|
| 17 |
+
"author": "nihtin",
|
| 18 |
+
"date": "2025-10-29T08:01:35+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ad4d17e9a4981887b27401fba0e8eed694863f32"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "e0b5f56606d6b92e87b086778c3d050672986553",
|
| 23 |
+
"message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into adyen-manual-capture",
|
| 24 |
+
"author": "nihtin",
|
| 25 |
+
"date": "2025-10-29T08:04:57+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/e0b5f56606d6b92e87b086778c3d050672986553"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "add3ef711c53c344129a94d09eec22e87051ea72",
|
| 30 |
+
"message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into adyen-manual-capture",
|
| 31 |
+
"author": "nihtin",
|
| 32 |
+
"date": "2025-10-29T08:05:14+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/add3ef711c53c344129a94d09eec22e87051ea72"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "b894f64b59a5eb072fa0c837a9783b6f158dd9a7",
|
| 37 |
+
"message": "update",
|
| 38 |
+
"author": "nihtin",
|
| 39 |
+
"date": "2025-10-29T09:36:58+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b894f64b59a5eb072fa0c837a9783b6f158dd9a7"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"sha": "daa4a6a33afd04921e5e74504c06c5569c8cd35b",
|
| 44 |
+
"message": "cypress",
|
| 45 |
+
"author": "nihtin",
|
| 46 |
+
"date": "2025-10-29T10:34:11+00:00",
|
| 47 |
+
"url": "https://github.com/juspay/hyperswitch/commit/daa4a6a33afd04921e5e74504c06c5569c8cd35b"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"sha": "ccb8b698c4b479de7943252d3fffea1bace67c1e",
|
| 51 |
+
"message": "update cypress",
|
| 52 |
+
"author": "nihtin",
|
| 53 |
+
"date": "2025-10-29T10:38:36+00:00",
|
| 54 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ccb8b698c4b479de7943252d3fffea1bace67c1e"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"sha": "19ad2b3dbd8e599b25db1559f258fbeec511c61e",
|
| 58 |
+
"message": "cypress fix",
|
| 59 |
+
"author": "nihtin",
|
| 60 |
+
"date": "2025-10-30T04:36:44+00:00",
|
| 61 |
+
"url": "https://github.com/juspay/hyperswitch/commit/19ad2b3dbd8e599b25db1559f258fbeec511c61e"
|
| 62 |
+
}
|
| 63 |
+
]
|
| 64 |
+
}
|
prs/pr_10047.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10047,
|
| 3 |
+
"title": "feat(connector): [SANTANDER] Implemented Authorize Flow in Boleto",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nSantander MCA : \r\n\r\ncURL: \r\n\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1761734200/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_lKFVo2SxVuxlY6jx75HyE4sfnuNpwh5QyG0E959R3xZsWoK55NWls3oKbnBgoZOk' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"santander\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"BodyKey\",\r\n \"api_key\": \"CERT\",\r\n \"key1\": \"CERT_KEY\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"pix\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"voucher\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"boleto\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"pix\": {\r\n \"client_id\": \"PIX_CLIENT_ID\",\r\n \"client_secret\": \"PIX_CLIENT_SECRET\",\r\n \"cpf\": \"\",\r\n \"cnpj\": \"\",\r\n \"pix_key\": \"\",\r\n \"merchant_name\": \"josephn doe\",\r\n \"merchant_city\": \"San Fransico\"\r\n },\r\n \"boleto\": {\r\n \"client_id\": \"BOLETO_CLIENT_ID\",\r\n \"client_secret\": \"BOLETO_CLIENT_SECRET\",\r\n \"cpf\": \"\",\r\n \"cnpj\": \"\",\r\n \"workspace_id\": \"BOLETO_WORKSPACE_ID\",\r\n \"covenant_code\": \"\"\r\n }\r\n },\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MERCHANT_SECRET\"\r\n },\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\"\r\n}'\r\n```\r\n\r\n1. Boleto - Payments Create:\r\n\r\ncURL: \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_lKFVo2SxVuxlY6jx75HyE4sfnuNpwh5QyG0E959R3xZsWoK55NWls3oKbnBgoZOk' \\\r\n--data-raw '{\r\n \"amount\": 2500,\r\n \"currency\": \"BRL\",\r\n \"connector\": [\r\n \"santander\"\r\n ],\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 2500,\r\n \"customer_id\": \"abcdef\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"Jo\u00e3o da Silva santos\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://duck.com\",\r\n \"payment_method\": \"voucher\",\r\n \"payment_method_type\": \"boleto\",\r\n \"payment_method_data\": {\r\n \"voucher\": {\r\n \"boleto\": {\r\n \"bank_number\": \"10189\",\r\n \"document_type\": \"CPF\",\r\n \"social_security_number\": \"94620639079\"\r\n }\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"rua nove de janeiro\",\r\n \"line2\": \"bela vista\",\r\n \"city\": \"sao paulo\",\r\n \"state\": \"SP\",\r\n \"zip\": \"05134-897\",\r\n \"country\": \"BR\",\r\n \"first_name\": \"Jo\u00e3o da Silva\",\r\n \"last_name\": \"santos\"\r\n },\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"feature_metadata\": {\r\n \"boleto_additional_details\": {\r\n \"write_off_quantity_days\": \"30\",\r\n \"due_date\": \"2025-12-31\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_1nU6YaXifJswki6GdlgL\",\r\n \"merchant_id\": \"merchant_1761734200\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 2500,\r\n \"net_amount\": 2500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 2500,\r\n \"amount_received\": null,\r\n \"connector\": \"santander\",\r\n \"client_secret\": \"pay_1nU6YaXifJswki6GdlgL_secret_30ty6HPRvA07EO5m8fpA\",\r\n \"created\": \"2025-10-29T10:36:50.398Z\",\r\n \"currency\": \"BRL\",\r\n \"customer_id\": \"abcdef\",\r\n \"customer\": {\r\n \"id\": \"abcdef\",\r\n \"name\": \"Jo\u00e3o da Silva santos\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"voucher\",\r\n \"payment_method_data\": {\r\n \"voucher\": {\r\n \"boleto\": {\r\n \"social_security_number\": \"94620639079\",\r\n \"bank_number\": \"10189\",\r\n \"document_type\": \"CPF\",\r\n \"fine_percentage\": null,\r\n \"fine_quantity_days\": null,\r\n \"interest_percentage\": null,\r\n \"write_off_quantity_days\": null,\r\n \"messages\": null,\r\n \"due_date\": null\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"sao paulo\",\r\n \"country\": \"BR\",\r\n \"line1\": \"rua nove de janeiro\",\r\n \"line2\": \"bela vista\",\r\n \"line3\": null,\r\n \"zip\": \"05134-897\",\r\n \"state\": \"SP\",\r\n \"first_name\": \"Jo\u00e3o da Silva\",\r\n \"last_name\": \"santos\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"Jo\u00e3o da Silva santos\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://duck.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": {\r\n \"type\": \"display_voucher_information\",\r\n \"voucher_details\": {\r\n \"entry_date\": \"2025-10-29\",\r\n \"expires_at\": null,\r\n \"reference\": \"TST6327542873214899\",\r\n \"download_url\": null,\r\n \"instructions_url\": null,\r\n \"digitable_line\": \"03399356862530000000401018901015113120000002500\",\r\n \"bank_number\": \"10189\"\r\n }\r\n },\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"boleto\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcdef\",\r\n \"created_at\": 1761734210,\r\n \"expires\": 1761737810,\r\n \"secret\": \"epk_3c3c5e73f77045cca79068e8e3639341\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\",\r\n \"pix_qr_expiry_time\": null,\r\n \"boleto_additional_details\": {\r\n \"fine_percentage\": null,\r\n \"fine_quantity_days\": null,\r\n \"interest_percentage\": null,\r\n \"write_off_quantity_days\": \"30\",\r\n \"messages\": null,\r\n \"due_date\": \"2025-12-31\"\r\n }\r\n },\r\n \"reference_id\": \"03399356862530000000401018901015113120000002500\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_nOcg2ThHtu3rHnEdGoaf\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_906vb2hxmcczu3LxIQUo\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-29T10:51:50.398Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-29T10:36:56.474Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null,\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "bsayak03",
|
| 6 |
+
"created_at": "2025-10-29T10:44:17+00:00",
|
| 7 |
+
"merged_at": "2025-10-31T10:54:01+00:00",
|
| 8 |
+
"base_branch": "santander/cert",
|
| 9 |
+
"labels": [
|
| 10 |
+
"M-api-contract-changes"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10047",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "b009fc244cdf48e17e6909b4f09b544cd7433b7d",
|
| 16 |
+
"message": "boleto",
|
| 17 |
+
"author": "Sayak Bhattacharya",
|
| 18 |
+
"date": "2025-10-27T04:36:58+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b009fc244cdf48e17e6909b4f09b544cd7433b7d"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "b07d203c8371c2c5cc902a3fbf00adcd4082c97d",
|
| 23 |
+
"message": "boleto",
|
| 24 |
+
"author": "Sayak Bhattacharya",
|
| 25 |
+
"date": "2025-10-27T10:26:25+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b07d203c8371c2c5cc902a3fbf00adcd4082c97d"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "155d63ceff28a3bd77deadc6fe5436ca8aa5e356",
|
| 30 |
+
"message": "boleto",
|
| 31 |
+
"author": "Sayak Bhattacharya",
|
| 32 |
+
"date": "2025-10-28T12:31:49+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/155d63ceff28a3bd77deadc6fe5436ca8aa5e356"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "f05ee11d69b23ac64a37e57e65d5a1951bef1cee",
|
| 37 |
+
"message": "feat(connector): [SANTANDER] Implemented Authorize Flow in Boleto",
|
| 38 |
+
"author": "Sayak Bhattacharya",
|
| 39 |
+
"date": "2025-10-29T10:26:54+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f05ee11d69b23ac64a37e57e65d5a1951bef1cee"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"sha": "9053d0a8f9c7189cafd7106dd1a885d148587260",
|
| 44 |
+
"message": "feat(connector): [SANTANDER] Implemented Authorize Flow in Boleto",
|
| 45 |
+
"author": "Sayak Bhattacharya",
|
| 46 |
+
"date": "2025-10-29T10:38:56+00:00",
|
| 47 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9053d0a8f9c7189cafd7106dd1a885d148587260"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"sha": "92c3a6934298b6f56349d759b325531c6ba6918a",
|
| 51 |
+
"message": "Merge branch 'santander/cert' into santander/boleto",
|
| 52 |
+
"author": "Sayak Bhattacharya",
|
| 53 |
+
"date": "2025-10-29T10:47:25+00:00",
|
| 54 |
+
"url": "https://github.com/juspay/hyperswitch/commit/92c3a6934298b6f56349d759b325531c6ba6918a"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"sha": "67812310188202b0adfe55e21f2984c67a796c06",
|
| 58 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 59 |
+
"author": "hyperswitch-bot[bot]",
|
| 60 |
+
"date": "2025-10-29T10:55:01+00:00",
|
| 61 |
+
"url": "https://github.com/juspay/hyperswitch/commit/67812310188202b0adfe55e21f2984c67a796c06"
|
| 62 |
+
}
|
| 63 |
+
]
|
| 64 |
+
}
|
prs/pr_10051.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10051,
|
| 3 |
+
"title": "feat(connector): [NOVALNET] Receive Chargeback Webhooks During Customer Dispute ",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nIn Novalnet, particularly in SEPA Payment Method, the customer has the right to report a unauthorized transaction to the bank. The Bank refunds the amount (no questions asked) to the customer. The constraint being the dispute reporting has to be <=8 weeks from the original transaction date. During such an event, Novalnet sends a incoming webhook to the merchant with event.type = \"CHARGEBACK\" and transaction.payment_type = \"RETURN_DEBIT_SEPA\". Upon receiving this webhook, Hyperswitch marks the event as `DisputeLost` and sends back an outgoing webhook to the merchant. It also creates an entry in the Dispute table and marks the `DisputeStatus` as `DisputeLost`. \r\n\r\nRef: https://developer.novalnet.com/asynchronousnotification/parameterspassed\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nNote: This PR cannot be tested in an hosted env. \r\n\r\nStep 1: Make a Payments Confirm Call to Novalnet - PM should be SEPA\r\n\r\ncURL: \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_Dc2yjDPcK0YWrjW8k3bgG8nYgupkj74xswTLMylYUZzeq2aaIX9ikOob1HU2daOr' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"payment_link\": false,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 1000,\r\n \"customer_id\": \"StripeCustomer\",\r\n \"email\": \"test.accepted@novalnet.de\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"bank_debit\",\r\n \"payment_method_type\": \"sepa\",\r\n \"payment_method_data\": {\r\n \"bank_debit\": {\r\n \"sepa_bank_debit\": {\r\n \"iban\": \"DE24300209002411761956\",\r\n \"bank_account_holder_name\": \"Joseph Doe\"\r\n }\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"CA\",\r\n \"line3\": \"CA\",\r\n \"city\": \"Musterhausen\",\r\n \"state\": \"California\",\r\n \"zip\": \"12345\",\r\n \"country\": \"DE\",\r\n \"first_name\": \"Max\",\r\n \"last_name\": \"Mustermann\"\r\n },\r\n \"email\": \"test.accepted@novalnet.de\",\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"Musterstr\",\r\n \"line2\": \"CA\",\r\n \"line3\": \"CA\",\r\n \"city\": \"Musterhausen\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"DE\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,\\/;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"ip_address\": \"103.77.139.95\",\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n }\r\n}'\r\n```\r\n\r\nResponse: \r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_omexSf0sym8f7fWIhdXC\",\r\n \"merchant_id\": \"merchant_1761743373\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1000,\r\n \"connector\": \"novalnet\",\r\n \"client_secret\": \"pay_omexSf0sym8f7fWIhdXC_secret_1rVjZX4L4dDt2eHHd7dq\",\r\n \"created\": \"2025-10-29T13:09:50.423Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"test.accepted@novalnet.de\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"bank_debit\",\r\n \"payment_method_data\": {\r\n \"bank_debit\": {\r\n \"sepa\": {\r\n \"iban\": \"DE243************61956\",\r\n \"bank_account_holder_name\": \"Joseph Doe\"\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"Musterhausen\",\r\n \"country\": \"DE\",\r\n \"line1\": \"Musterstr\",\r\n \"line2\": \"CA\",\r\n \"line3\": \"CA\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Musterhausen\",\r\n \"country\": \"DE\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"CA\",\r\n \"line3\": \"CA\",\r\n \"zip\": \"12345\",\r\n \"state\": \"California\",\r\n \"first_name\": \"Max\",\r\n \"last_name\": \"Mustermann\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"test.accepted@novalnet.de\"\r\n },\r\n \"order_details\": null,\r\n \"email\": \"test.accepted@novalnet.de\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"sepa\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"StripeCustomer\",\r\n \"created_at\": 1761743390,\r\n \"expires\": 1761746990,\r\n \"secret\": \"epk_af1162c279944f4fa1b8830a9765d9c2\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"15250900088106237\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\",\r\n \"pix_qr_expiry_time\": null,\r\n \"boleto_additional_details\": null\r\n },\r\n \"reference_id\": \"15250900088106237\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_FG1OSXk8CHt5yIvQT8uF\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_z2Z5ExTgWqxSVzVt6OXW\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-29T13:24:50.423Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"103.77.139.95\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-29T13:09:51.675Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null,\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\nStep 2: Host HS BE in ngrok and Send a webhook from postman to Hyperswitch (hardcode `Ok(true)` in fn `verify_webhook_source` under the `IncomingWebhooks trait`.)\r\n\r\nNote: This is for testing in local\r\n\r\ncURL: \r\n\r\n```\r\ncurl --location 'https://8506ba5bb9af.ngrok-free.app/webhooks/merchant_1761743373/mca_z2Z5ExTgWqxSVzVt6OXW' \\\r\n--header 'Content-Type: application/json' \\\r\n--data '{\r\n \"event\": {\r\n \"checksum\": \"55602fc815b46b88368b6c9d80feb0e54a71c13098e2af8d5b9c9ffd2f787c56\",\r\n \"parent_tid\": 1234,\r\n \"tid\": 15250900088106237,\r\n \"type\": \"CHARGEBACK\"\r\n },\r\n \"result\": {\r\n \"status\": \"SUCCESS\",\r\n \"status_code\": 100,\r\n \"status_text\": \"Successful\"\r\n },\r\n \"transaction\": {\r\n \"amount\": 1000,\r\n \"currency\": \"EUR\",\r\n \"order_no\": \"pay_omexSf0sym8f7fWIhdXC_1\",\r\n \"payment_type\": \"RETURN_DEBIT_SEPA\",\r\n \"reason\": \"abc\",\r\n \"reason_code\": \"abcd\",\r\n \"status\": \"CONFIRMED\",\r\n \"status_code\": 100,\r\n \r\n \"tid\": 15250900088106237\r\n }\r\n}'\r\n```\r\n\r\nDB Screenshot of Dispute Table: \r\n\r\n<img width=\"1246\" height=\"148\" alt=\"Screenshot 2025-10-29 at 6 54 36\u202fPM\" src=\"https://github.com/user-attachments/assets/72f75f19-4cae-498d-8e2b-b1e203233349\" />\r\n\r\n\r\nProof of outgoing webhooks: \r\n<img width=\"1728\" height=\"966\" alt=\"Screenshot 2025-10-29 at 6 54 15\u202fPM\" src=\"https://github.com/user-attachments/assets/95a701a3-29c8-4288-ab18-a5a203b3bfb1\" />\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [x] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "bsayak03",
|
| 6 |
+
"created_at": "2025-10-29T13:25:34+00:00",
|
| 7 |
+
"merged_at": "2025-11-04T14:19:27+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10051",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "fb23500dab93b9430846222f7c5fb60b5ebb52ca",
|
| 14 |
+
"message": "feat(connector): [NOVALNET] Receive Chargeback Webhooks During Customer Dispute",
|
| 15 |
+
"author": "Sayak Bhattacharya",
|
| 16 |
+
"date": "2025-10-29T13:16:39+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/fb23500dab93b9430846222f7c5fb60b5ebb52ca"
|
| 18 |
+
}
|
| 19 |
+
]
|
| 20 |
+
}
|
prs/pr_10062.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10062,
|
| 3 |
+
"title": "fix: Update method call to use router_store for merchant connector account updates",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nThe v2 feature-gated implementation of `update_merchant_connector_account` has a recursive call to itself instead of delegating to `router_store`, causing an infinite loop and stack overflow when updating merchant connector accounts.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\ncloses #10060 \r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nRequest:\r\n```\r\ncurl --location --request PUT 'http://localhost:8080/v2/connector-accounts/mca_eVd8ctUOCoDMEN1VbwXf' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'Authorization: admin-api-key=test_admin' \\\r\n--header 'x-merchant-id: cloth_seller_15VARslGd45UVxEPFepA' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"merchant_id\": \"cloth_seller_15VARslGd45UVxEPFepA\"\r\n}'\r\n```\r\nResponse:\r\n```\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"stripe_business2\",\r\n \"id\": \"mca_eVd8ctUOCoDMEN1VbwXf\",\r\n \"profile_id\": \"pro_fMujwybUlgBE9IXBqrMe\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"sk*******************************************************************************************************0r\"\r\n },\r\n \"payment_methods_enabled\": null,\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"\",\r\n \"additional_secret\": null\r\n },\r\n \"metadata\": null,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\",\r\n \"additional_merchant_data\": null,\r\n \"connector_wallets_details\": null,\r\n \"feature_metadata\": null\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "ayush22667",
|
| 6 |
+
"created_at": "2025-10-30T09:55:45+00:00",
|
| 7 |
+
"merged_at": "2025-11-04T09:12:46+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-framework",
|
| 11 |
+
"C-bug",
|
| 12 |
+
"T-Core"
|
| 13 |
+
],
|
| 14 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10062",
|
| 15 |
+
"commits": [
|
| 16 |
+
{
|
| 17 |
+
"sha": "00a2bb49bb8edf9d78cd42433df6c217b9a53fbd",
|
| 18 |
+
"message": "fix: Update method call to use router_store for merchant connector account updates",
|
| 19 |
+
"author": "Ayush",
|
| 20 |
+
"date": "2025-10-30T09:46:57+00:00",
|
| 21 |
+
"url": "https://github.com/juspay/hyperswitch/commit/00a2bb49bb8edf9d78cd42433df6c217b9a53fbd"
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
prs/pr_10071.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10071,
|
| 3 |
+
"title": "feat(docs): openapi spec for locker v2",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [x] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nThis pull request introduces comprehensive documentation and OpenAPI specification for the new \"Locker - General Purpose Storage\" APIs, which provide secure storage, retrieval, and management of sensitive data. It updates the API reference structure to include these new endpoints and adds detailed endpoint documentation and OpenAPI schema files.\r\n\r\n**Locker - General Purpose Storage API additions:**\r\n\r\n* Added a new OpenAPI 3.0 specification file (`locker-v2.yml`) describing endpoints for adding, retrieving, and deleting data, providing keys, unlocking the locker, health checks, and card fingerprint operations for the general purpose storage locker.\r\n* Added individual documentation files for each new endpoint under `locker-general-purpose-storage`, including: add, retrieve, delete data, provide keys, unlock locker, health check, and get/insert card fingerprint. [[1]](diffhunk://#diff-a7d5e5bc53511a8e39e395ac84255c94eaa164316214fb43011126814b3fb2a1R1-R3) [[2]](diffhunk://#diff-4f1e1906b9c565d44833b2f8eb704154afdfc5cb8b110ede100bdb70e2490822R1-R3) [[3]](diffhunk://#diff-12b8add0d337496e0327a1b3a7a52baef5c1f44ab57bbc3ffee0343be74c4b32R1-R3) [[4]](diffhunk://#diff-655d1f86018b2d0cb1e5416959a796e56a7f46c08486e275633c829a608c184dR1-R3) [[5]](diffhunk://#diff-0ed109813e86498f830d7bdae7ab3cd27c477ef2c327a7795ff08455c88127a0R1-R3) [[6]](diffhunk://#diff-c32619e30bc21833bcf7a8539492c650f4ad05c730f34511ca0b9d197098daf8R1-R3) [[7]](diffhunk://#diff-b665a8cfbe70ba4034b37179c216a43e5324c0889f0c8b5953e9de5d810bf7f7R1-R3) [[8]](diffhunk://#diff-8606538cc468905347b36e4ed27ef4b3e7cdd4e3e74367c2fea15d8ce76973a2R1-R3)\r\n\r\n**API Reference documentation updates:**\r\n\r\n* Updated `docs.json` to include the new \"Locker - General Purpose Storage\" group and its endpoints in the navigation structure, ensuring the new APIs are discoverable in the API reference.\r\n* Reformatted several existing `pages` arrays in `docs.json` for consistency and readability. [[1]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL21-R23) [[2]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL155-R159) [[3]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL201-R207) [[4]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL232-R247) [[5]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL259-R272) [[6]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL286) [[7]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL407-R433) [[8]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL428-R457) [[9]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL463-R500) [[10]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL555-R597)\r\n\r\nThese changes ensure that the new locker APIs are fully documented and easily accessible for developers integrating with secure storage features.\r\n\r\n**References:** [[1]](diffhunk://#diff-788564899c6aac76199b34d0915d4d7ad7448a395d28c730545df043e37677b7R1-R303) [[2]](diffhunk://#diff-a7d5e5bc53511a8e39e395ac84255c94eaa164316214fb43011126814b3fb2a1R1-R3) [[3]](diffhunk://#diff-4f1e1906b9c565d44833b2f8eb704154afdfc5cb8b110ede100bdb70e2490822R1-R3) [[4]](diffhunk://#diff-12b8add0d337496e0327a1b3a7a52baef5c1f44ab57bbc3ffee0343be74c4b32R1-R3) [[5]](diffhunk://#diff-655d1f86018b2d0cb1e5416959a796e56a7f46c08486e275633c829a608c184dR1-R3) [[6]](diffhunk://#diff-0ed109813e86498f830d7bdae7ab3cd27c477ef2c327a7795ff08455c88127a0R1-R3) [[7]](diffhunk://#diff-c32619e30bc21833bcf7a8539492c650f4ad05c730f34511ca0b9d197098daf8R1-R3) [[8]](diffhunk://#diff-b665a8cfbe70ba4034b37179c216a43e5324c0889f0c8b5953e9de5d810bf7f7R1-R3) [[9]](diffhunk://#diff-8606538cc468905347b36e4ed27ef4b3e7cdd4e3e74367c2fea15d8ce76973a2R1-R3) [[10]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fR475-R487) [[11]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL21-R23) [[12]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL155-R159) [[13]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL201-R207) [[14]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL232-R247) [[15]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL259-R272) [[16]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL286) [[17]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL407-R433) [[18]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL428-R457) [[19]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL463-R500) [[20]](diffhunk://#diff-35712f260223272b9049a07908e161661ce2646de5d0422c13c0a0f44cc89d3fL555-R597)\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n<img width=\"1728\" height=\"1117\" alt=\"image\" src=\"https://github.com/user-attachments/assets/3b0d95fe-5a74-42a3-8530-ce495f0d2478\" />\r\n<img width=\"1728\" height=\"1117\" alt=\"image\" src=\"https://github.com/user-attachments/assets/2b5f7de5-2bbe-4a82-ab22-adaff62fa236\" />\r\n<img width=\"1728\" height=\"1117\" alt=\"image\" src=\"https://github.com/user-attachments/assets/0433d0da-52c0-4ff2-a4f1-88241351b5d1\" />\r\n<img width=\"1728\" height=\"1117\" alt=\"image\" src=\"https://github.com/user-attachments/assets/d82ab14f-adc5-4283-b16f-a5059c9c83a0\" />\r\n\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "Sarthak1799",
|
| 6 |
+
"created_at": "2025-10-31T05:24:07+00:00",
|
| 7 |
+
"merged_at": "2025-11-04T14:22:13+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10071",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "df6d9cdaf7f74757725a6862c7528d6bb942d8d7",
|
| 14 |
+
"message": "feat(docs): openapi locker v2",
|
| 15 |
+
"author": "Sarthak Soni",
|
| 16 |
+
"date": "2025-10-31T05:21:33+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/df6d9cdaf7f74757725a6862c7528d6bb942d8d7"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "1bb2d1528059264764506594f495079900dfe29c",
|
| 21 |
+
"message": "chore: Resolved comments",
|
| 22 |
+
"author": "Sarthak Soni",
|
| 23 |
+
"date": "2025-10-31T12:08:23+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1bb2d1528059264764506594f495079900dfe29c"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"sha": "ba9963e844d239b1d02f949bdba346606f03852d",
|
| 28 |
+
"message": "chore: Resolved comments",
|
| 29 |
+
"author": "Sarthak Soni",
|
| 30 |
+
"date": "2025-10-31T12:35:21+00:00",
|
| 31 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ba9963e844d239b1d02f949bdba346606f03852d"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"sha": "17d77c78962cb525ee92c036278177c32ceadff1",
|
| 35 |
+
"message": "chore: Resolved comments",
|
| 36 |
+
"author": "Sarthak Soni",
|
| 37 |
+
"date": "2025-10-31T13:39:04+00:00",
|
| 38 |
+
"url": "https://github.com/juspay/hyperswitch/commit/17d77c78962cb525ee92c036278177c32ceadff1"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"sha": "d540635be3083b098163ff789a436d6901939121",
|
| 42 |
+
"message": "fix: fixed data obj in yml",
|
| 43 |
+
"author": "Sarthak Soni",
|
| 44 |
+
"date": "2025-10-31T13:55:21+00:00",
|
| 45 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d540635be3083b098163ff789a436d6901939121"
|
| 46 |
+
}
|
| 47 |
+
]
|
| 48 |
+
}
|
prs/pr_10074.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10074,
|
| 3 |
+
"title": "feat(core): Support skipping PSP tokenization in payment and mandate flows",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nIntroduces a new enum `tokenization` allowing merchants to disable PSP-side token creation and rely solely on Hyperswitch-managed tokens. \r\nApplies to both payment and mandate flows.\r\n\r\n---\r\n\r\n### Database\r\nAdded column to `payment_intent` schema and models:\r\n\r\n```rust\r\ntokenization -> Nullable<varchar>\r\n```\r\n\r\n---\r\n\r\n### Connector Layer (Cybersource)\r\nThis is the functional part:\r\n\r\nAdjusted `CybersourceZeroMandateRequest` and authorization logic:\r\n- If `tokenization == Some(SkipPsp) \u2192 don\u2019t send tokenization fields.\r\n- Else \u2192 retain original token creation behavior.\r\n\r\nEssentially:\r\n\r\n```rust\r\nif tokenization {\r\n // Skip tokenization completely\r\n (None, None, Some(CybersourceAuthorizationOptions { ... }))\r\n} else {\r\n // Normal flow with TOKEN_CREATE and token types\r\n}\r\n```\r\n\r\n### Additional Changes\r\n\r\n- [x] This PR modifies the API contract\r\n- [x] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nCIT (Existing flow)\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_lnC8hfrC3uiRHolkLsACt0DT07OekrLHv5WUIX7inHpXLGDAx8QtdDFLhZe9o6br' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \r\n \"customer_id\": \"Bambora1Customer\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4456530000001096\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \r\n \"setup_future_usage\": \"off_session\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n }\r\n \r\n \r\n \r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_9n9xXA6msFkshD6f1KEb\",\r\n \"merchant_id\": \"postman_merchant_GHAction_9107e8b2-3a7a-42f5-9480-0a6590b387a3\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1000,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_9n9xXA6msFkshD6f1KEb_secret_TiQFPqwqGvG86o3Mwixc\",\r\n \"created\": \"2025-10-31T10:28:28.315Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"Bambora1Customer\",\r\n \"customer\": {\r\n \"id\": \"Bambora1Customer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1096\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"445653\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"avs_response\": {\r\n \"code\": \"Y\",\r\n \"codeRaw\": \"Y\"\r\n },\r\n \"card_verification\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_pm9ztBC73xkWPlo8SlRU\",\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"Bambora1Customer\",\r\n \"created_at\": 1761906508,\r\n \"expires\": 1761910108,\r\n \"secret\": \"epk_9a63bf2aaaab4604a760d694656c9320\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"7619065085666960903812\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pay_9n9xXA6msFkshD6f1KEb_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_WwnBiHi4vstc37HbGCmD\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_nU2i0sAZeJXkNQa3mAXX\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-31T10:43:28.315Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_F7NzOD6gaotgZzLwLRPR\",\r\n \"network_transaction_id\": \"016150703802094\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-10-31T10:28:29.378Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"4272C92E10D777EEE063AF598E0A16DB\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null,\r\n \"tokenization\": null\r\n}\r\n```\r\nCIT By passing \"tokenization\":\"skip_psp\", (We will not receive the ConnectorMandateDetails)\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_lnC8hfrC3uiRHolkLsACt0DT07OekrLHv5WUIX7inHpXLGDAx8QtdDFLhZe9o6br' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \r\n \"customer_id\": \"Bambora1Customer\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"tokenization\":\"skip_psp\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4456530000001096\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \r\n \"setup_future_usage\": \"off_session\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n }\r\n\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_ksCrBEwprK4wW34fBNyW\",\r\n \"merchant_id\": \"postman_merchant_GHAction_9107e8b2-3a7a-42f5-9480-0a6590b387a3\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1000,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_ksCrBEwprK4wW34fBNyW_secret_z22KgVh5Gwh1fyXTKfUb\",\r\n \"created\": \"2025-10-31T10:29:50.267Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"Bambora1Customer\",\r\n \"customer\": {\r\n \"id\": \"Bambora1Customer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1096\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"445653\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"avs_response\": {\r\n \"code\": \"Y\",\r\n \"codeRaw\": \"Y\"\r\n },\r\n \"card_verification\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_CVECGYZry3kJyNHGk3CG\",\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"Bambora1Customer\",\r\n \"created_at\": 1761906590,\r\n \"expires\": 1761910190,\r\n \"secret\": \"epk_d82bd5e63cb547279acbddebc1e2800d\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"7619065905286325003814\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pay_ksCrBEwprK4wW34fBNyW_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_WwnBiHi4vstc37HbGCmD\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_nU2i0sAZeJXkNQa3mAXX\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-31T10:44:50.267Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_lMZE83gmXgyKXaC6Amdh\",\r\n \"network_transaction_id\": \"016150703802094\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-10-31T10:29:51.188Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null,\r\n \"tokenization\":\"skip_psp\",\r\n}\r\n```\r\nMIT via the Received NTID\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Accept: application/json' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_lnC8hfrC3uiRHolkLsACt0DT07OekrLHv5WUIX7inHpXLGDAx8QtdDFLhZe9o6br' \\\r\n--data-raw '{\r\n \"amount\": 7445,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"amount_to_capture\": 7445,\r\n \"customer_id\": \"cu_1757579182\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \r\n \"recurring_details\": {\r\n \"type\": \"network_transaction_id_and_card_details\",\r\n \"data\": {\r\n \"card_number\": \"4456530000001096\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\r\n \"card_network\":\"VISA\",\r\n \"network_transaction_id\": \"016150703802094\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n }\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_4zQzMswv4UzzB9Dvx6wm\",\r\n \"merchant_id\": \"postman_merchant_GHAction_9107e8b2-3a7a-42f5-9480-0a6590b387a3\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 7445,\r\n \"net_amount\": 7445,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 7445,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_4zQzMswv4UzzB9Dvx6wm_secret_UBTvq345G7GMypuDHE3H\",\r\n \"created\": \"2025-10-31T10:50:06.028Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": null,\r\n \"customer\": {\r\n \"id\": null,\r\n \"name\": \"Joseph Doe\",\r\n \"email\": \"something@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1096\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"445653\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": \"cybersource_US_default_default\",\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cu_1757579182\",\r\n \"created_at\": 1761907806,\r\n \"expires\": 1761911406,\r\n \"secret\": \"epk_338b7bf4beca4212a7e9921f6b1ddb8e\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"7619078062826266203812\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_4zQzMswv4UzzB9Dvx6wm_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_WwnBiHi4vstc37HbGCmD\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_nU2i0sAZeJXkNQa3mAXX\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-31T11:05:06.028Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"016150703802094\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-31T10:50:06.906Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": true,\r\n \"mit_category\": null,\r\n \"tokenization\": null\r\n}\r\n```\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "awasthi21",
|
| 6 |
+
"created_at": "2025-10-31T06:19:18+00:00",
|
| 7 |
+
"merged_at": "2025-11-18T12:31:18+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"M-database-changes",
|
| 11 |
+
"M-api-contract-changes"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10074",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "037c3a47a7fc86c081c1395bd0e29cba8b14a5e6",
|
| 17 |
+
"message": "Init",
|
| 18 |
+
"author": "Malay Awasthi",
|
| 19 |
+
"date": "2025-11-13T11:16:51+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/037c3a47a7fc86c081c1395bd0e29cba8b14a5e6"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sha": "1dbbd26b6a43c186a77b8ee2899e8428dd236364",
|
| 24 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 25 |
+
"author": "hyperswitch-bot[bot]",
|
| 26 |
+
"date": "2025-11-13T11:23:59+00:00",
|
| 27 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1dbbd26b6a43c186a77b8ee2899e8428dd236364"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"sha": "c028b951ac8ad3f1c388710b6cc59d26f57d5111",
|
| 31 |
+
"message": "Initial commit",
|
| 32 |
+
"author": "Malay Awasthi",
|
| 33 |
+
"date": "2025-11-18T04:46:34+00:00",
|
| 34 |
+
"url": "https://github.com/juspay/hyperswitch/commit/c028b951ac8ad3f1c388710b6cc59d26f57d5111"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"sha": "3c58f51165dbe3ae7b4e426d9740051544119171",
|
| 38 |
+
"message": "Initial commit",
|
| 39 |
+
"author": "Malay Awasthi",
|
| 40 |
+
"date": "2025-11-18T04:48:37+00:00",
|
| 41 |
+
"url": "https://github.com/juspay/hyperswitch/commit/3c58f51165dbe3ae7b4e426d9740051544119171"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"sha": "2e7e89dc88a55f622c3338c253c5e53238f6b530",
|
| 45 |
+
"message": "chore: run formatter",
|
| 46 |
+
"author": "hyperswitch-bot[bot]",
|
| 47 |
+
"date": "2025-11-18T04:50:53+00:00",
|
| 48 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2e7e89dc88a55f622c3338c253c5e53238f6b530"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"sha": "1fd9c0c4432505e6e893ccbf9b4cc84dac92d122",
|
| 52 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 53 |
+
"author": "hyperswitch-bot[bot]",
|
| 54 |
+
"date": "2025-11-18T04:58:05+00:00",
|
| 55 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1fd9c0c4432505e6e893ccbf9b4cc84dac92d122"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"sha": "bdf52934d9814b90e5d400561e5beafcd6f482c7",
|
| 59 |
+
"message": "Initial commit",
|
| 60 |
+
"author": "Malay Awasthi",
|
| 61 |
+
"date": "2025-11-18T08:57:36+00:00",
|
| 62 |
+
"url": "https://github.com/juspay/hyperswitch/commit/bdf52934d9814b90e5d400561e5beafcd6f482c7"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"sha": "3cd1e2f1333e2ee27b4b1e327cd0047da14b60be",
|
| 66 |
+
"message": "Initial commit",
|
| 67 |
+
"author": "Malay Awasthi",
|
| 68 |
+
"date": "2025-11-18T08:58:05+00:00",
|
| 69 |
+
"url": "https://github.com/juspay/hyperswitch/commit/3cd1e2f1333e2ee27b4b1e327cd0047da14b60be"
|
| 70 |
+
}
|
| 71 |
+
]
|
| 72 |
+
}
|
prs/pr_10080.json
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10080,
|
| 3 |
+
"title": "feat(core): Get Access Token Redis Key From Connector",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nCurrently, all connectors required the same access token across different Payment Methods because the `client_id` and `client_secret` per payment method remains the same. \r\nHowever, in case of Santander - Pix has a different `client_id` & `client_secret` and Boleto has a different `client_id` & `client_secret`. Hence, leading to different `access_token`. \r\nHence we added a suffix in the redis key which would also have the payment method type for connectors where such thing is required. \r\nRedis Key structure would look something like this now: `access_token_{merchant_id}_{mca_id}_{payment_method_type}`\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nConnectors where Access Token flow is supported: \r\n\r\n1. Payments Confirm - JPMorgan: \r\n\r\ncURL: \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_B44sXIklJeACUu6l8WZ2VvuELEuJJkQFKfxDuhC1xf2ZCul2oytInKOS1uNUmZUX' \\\r\n--data-raw '{\r\n \"amount\": 2500,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 2500,\r\n \"customer_id\": \"abcdef\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://duck.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5200000000001096\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\"\r\n}'\r\n```\r\n\r\nResponse: \r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_EtNOXiita3ALoyclt6IV\",\r\n \"merchant_id\": \"merchant_1761908466\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 2500,\r\n \"net_amount\": 2500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 2500,\r\n \"connector\": \"jpmorgan\",\r\n \"client_secret\": \"pay_EtNOXiita3ALoyclt6IV_secret_bG3CSb5gtPVozhWK1qm8\",\r\n \"created\": \"2025-10-31T14:26:56.627Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcdef\",\r\n \"customer\": {\r\n \"id\": \"abcdef\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1096\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"520000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://duck.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcdef\",\r\n \"created_at\": 1761920816,\r\n \"expires\": 1761924416,\r\n \"secret\": \"epk_360d7a34ecbb4ebfabad511fe7776310\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"cdf62f90-6440-496f-817c-c05dd3b7b01a\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"cdf62f90-6440-496f-817c-c05dd3b7b01a\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_0DyXi60YgsFuF0ooneaE\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_dnnBdbxVWRGas6G6A4qM\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-31T14:41:56.627Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-31T14:26:58.630Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n`Redis Cli`\r\n<img width=\"536\" height=\"373\" alt=\"Screenshot 2025-10-31 at 7 59 11\u202fPM\" src=\"https://github.com/user-attachments/assets/828b6cf9-91d9-4839-80fd-09e4b83d859f\" />\r\n\r\n2. Globalpay\r\n\r\ncURL: \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_B44sXIklJeACUu6l8WZ2VvuELEuJJkQFKfxDuhC1xf2ZCul2oytInKOS1uNUmZUX' \\\r\n--data-raw '{\r\n \"currency\":\"USD\",\r\n \"amount\": 300,\r\n \"connector\": [\"globalpay\"],\r\n \"confirm\": true,\r\n \"amount_to_capture\": 300,\r\n \"customer_id\": \"awastbfjbejfhfffspr3ds\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://www.google.com\",\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"payment_method\": \"card\",\r\n \r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4263970000005262\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"CA\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"CA\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"109.71.40.0\"\r\n },\r\n \"metadata\": {\r\n \"order_category\": \"applepay\"\r\n },\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 300,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ]\r\n}'\r\n```\r\n\r\nResponse: \r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_7dFZeL6TcE6bRqXDWmpo\",\r\n \"merchant_id\": \"merchant_1761908466\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 300,\r\n \"net_amount\": 300,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 300,\r\n \"connector\": \"globalpay\",\r\n \"client_secret\": \"pay_7dFZeL6TcE6bRqXDWmpo_secret_qEJM9PT7DpmQmbYkd3PJ\",\r\n \"created\": \"2025-10-31T14:30:09.814Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"awastbfjbejfhfffspr3ds\",\r\n \"customer\": {\r\n \"id\": \"awastbfjbejfhfffspr3ds\",\r\n \"name\": \"Joseph Doe\",\r\n \"email\": \"something@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"5262\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"426397\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"CA\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"CA\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": [\r\n {\r\n \"sku\": null,\r\n \"upc\": null,\r\n \"brand\": null,\r\n \"amount\": 300,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"tax_rate\": null,\r\n \"product_id\": null,\r\n \"description\": null,\r\n \"product_name\": \"Apple iphone 15\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"total_amount\": null,\r\n \"commodity_code\": null,\r\n \"unit_of_measure\": null,\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"total_tax_amount\": null,\r\n \"requires_shipping\": null,\r\n \"unit_discount_amount\": null\r\n }\r\n ],\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://www.google.com/\",\r\n<img width=\"536\" height=\"373\" alt=\"Screenshot 2025-10-31 at 8 00 51\u202fPM\" src=\"https://github.com/user-attachments/assets/6985cca2-f955-4d48-ae02-7db23b8d0076\" />\r\n\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"awastbfjbejfhfffspr3ds\",\r\n \"created_at\": 1761921009,\r\n \"expires\": 1761924609,\r\n \"secret\": \"epk_3971c86f01d048d4812ddf97e1f2bdaa\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"TRN_iaGPcDXXKDpw3504wZe84wU61uVtuC_6bRqXDWmpo_1\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"order_category\": \"applepay\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pay_7dFZeL6TcE6bRqXDWmpo_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_0DyXi60YgsFuF0ooneaE\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_z3NqAEHp8sPwaYPEYmve\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-31T14:45:09.814Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"109.71.40.0\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-31T14:30:13.695Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n`Redis CLI`\r\n<img width=\"536\" height=\"373\" alt=\"Screenshot 2025-10-31 at 8 00 51\u202fPM\" src=\"https://github.com/user-attachments/assets/5e919d1a-3eaa-4e7d-9500-82fa0673bd6b\" />\r\n\r\n3. Santander: \r\n\r\ncURL: \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_B44sXIklJeACUu6l8WZ2VvuELEuJJkQFKfxDuhC1xf2ZCul2oytInKOS1uNUmZUX' \\\r\n--data-raw '{\r\n \"amount\": 2500,\r\n \"currency\": \"BRL\",\r\n \"connector\": [\r\n \"santander\"\r\n ],\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 2500,\r\n \"customer_id\": \"abcdef\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"Jo\u00e3o da Silva santos\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://duck.com\",\r\n \"payment_method\": \"voucher\",\r\n \"payment_method_type\": \"boleto\",\r\n \"payment_method_data\": {\r\n \"voucher\": {\r\n \"boleto\": {\r\n \"bank_number\": \"10189\",\r\n \"document_type\": \"CPF\",\r\n \"social_security_number\": \"94620639079\"\r\n }\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"rua nove de janeiro\",\r\n \"line2\": \"bela vista\",\r\n \"city\": \"sao paulo\",\r\n \"state\": \"SP\",\r\n \"zip\": \"05134-897\",\r\n \"country\": \"BR\",\r\n \"first_name\": \"Jo\u00e3o da Silva\",\r\n \"last_name\": \"santos\"\r\n },\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"feature_metadata\": {\r\n \"boleto_additional_details\": {\r\n \"write_off_quantity_days\": \"30\",\r\n \"due_date\": \"2025-12-31\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse: \r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_p1EIG3NpLlhdKXttpu6A\",\r\n \"merchant_id\": \"merchant_1761908466\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 2500,\r\n \"net_amount\": 2500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 2500,\r\n \"amount_received\": null,\r\n \"connector\": \"santander\",\r\n \"client_secret\": \"pay_p1EIG3NpLlhdKXttpu6A_secret_uY26wAzUEC2zbd7WChWa\",\r\n \"created\": \"2025-10-31T13:48:30.510Z\",\r\n \"currency\": \"BRL\",\r\n \"customer_id\": \"abcdef\",\r\n \"customer\": {\r\n \"id\": \"abcdef\",\r\n \"name\": \"Jo\u00e3o da Silva santos\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"voucher\",\r\n \"payment_method_data\": {\r\n \"voucher\": {\r\n \"boleto\": {\r\n \"social_security_number\": \"94620639079\",\r\n \"bank_number\": \"10189\",\r\n \"document_type\": \"CPF\",\r\n \"fine_percentage\": null,\r\n \"fine_quantity_days\": null,\r\n \"interest_percentage\": null,\r\n \"write_off_quantity_days\": null,\r\n \"messages\": null,\r\n \"due_date\": null\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"sao paulo\",\r\n \"country\": \"BR\",\r\n \"line1\": \"rua nove de janeiro\",\r\n \"line2\": \"bela vista\",\r\n \"line3\": null,\r\n \"zip\": \"05134-897\",\r\n \"state\": \"SP\",\r\n \"first_name\": \"Jo\u00e3o da Silva\",\r\n \"last_name\": \"santos\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"Jo\u00e3o da Silva santos\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://duck.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": {\r\n \"type\": \"display_voucher_information\",\r\n \"voucher_details\": {\r\n \"entry_date\": \"2025-10-31\",\r\n \"expires_at\": null,\r\n \"reference\": \"TST88534990707537593\",\r\n \"download_url\": null,\r\n \"instructions_url\": null,\r\n \"digitable_line\": \"03399356862530000000401018901015113120000002500\",\r\n \"bank_number\": \"10189\"\r\n }\r\n },\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"boleto\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcdef\",\r\n \"created_at\": 1761918510,\r\n \"expires\": 1761922110,\r\n \"secret\": \"epk_54e17443d585432b885dee18011a4d5d\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\",\r\n \"pix_qr_expiry_time\": null,\r\n \"boleto_additional_details\": {\r\n \"fine_percentage\": null,\r\n \"fine_quantity_days\": null,\r\n \"interest_percentage\": null,\r\n \"write_off_quantity_days\": \"30\",\r\n \"messages\": null,\r\n \"due_date\": \"2025-12-31\"\r\n }\r\n },\r\n \"reference_id\": \"03399356862530000000401018901015113120000002500\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_0DyXi60YgsFuF0ooneaE\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_NFbjQotIYtBAdBZ3yFtk\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-10-31T14:03:30.510Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-31T13:48:40.049Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null,\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n`Redis CLI`\r\n<img width=\"536\" height=\"235\" alt=\"Screenshot 2025-11-01 at 2 54 39\u202fPM\" src=\"https://github.com/user-attachments/assets/fea4010e-be93-4d01-973e-cf9fae5c1c59\" />\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [x] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "bsayak03",
|
| 6 |
+
"created_at": "2025-10-31T14:05:50+00:00",
|
| 7 |
+
"merged_at": "2025-11-21T14:19:23+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10080",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "28781e8f64e4a1eb47d0308de4e561fba41d52f2",
|
| 14 |
+
"message": "feat(core): Add Payment Method Type Suffix in Redis Key for Access Token",
|
| 15 |
+
"author": "Sayak Bhattacharya",
|
| 16 |
+
"date": "2025-10-31T14:01:49+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/28781e8f64e4a1eb47d0308de4e561fba41d52f2"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "0cdddb59f13bf54ae63b89dc6b869881380c95d2",
|
| 21 |
+
"message": "feat(core): Add Payment Method Type Suffix in Redis Key for Access Token",
|
| 22 |
+
"author": "Sayak Bhattacharya",
|
| 23 |
+
"date": "2025-10-31T14:33:43+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/0cdddb59f13bf54ae63b89dc6b869881380c95d2"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"sha": "b608274faa1e5916c3355ecd4f120cbe8504c575",
|
| 28 |
+
"message": "fix: add a function to ConnectorSpecifications trait",
|
| 29 |
+
"author": "Sayak Bhattacharya",
|
| 30 |
+
"date": "2025-11-04T18:38:29+00:00",
|
| 31 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b608274faa1e5916c3355ecd4f120cbe8504c575"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"sha": "979147ef8ee64325c4aea5fe6fce9f28f3239173",
|
| 35 |
+
"message": "Merge branch 'main' into redis-access-token",
|
| 36 |
+
"author": "Sayak Bhattacharya",
|
| 37 |
+
"date": "2025-11-05T05:57:51+00:00",
|
| 38 |
+
"url": "https://github.com/juspay/hyperswitch/commit/979147ef8ee64325c4aea5fe6fce9f28f3239173"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"sha": "f2382480c700a274049e2720891d53dbb06376ac",
|
| 42 |
+
"message": "fix: added a new trait",
|
| 43 |
+
"author": "Sayak Bhattacharya",
|
| 44 |
+
"date": "2025-11-05T18:50:38+00:00",
|
| 45 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f2382480c700a274049e2720891d53dbb06376ac"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"sha": "d1cd4a3591ce8482892fa1901161c97e28f200ad",
|
| 49 |
+
"message": "fix: resolved pr comments",
|
| 50 |
+
"author": "Sayak Bhattacharya",
|
| 51 |
+
"date": "2025-11-06T07:17:56+00:00",
|
| 52 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d1cd4a3591ce8482892fa1901161c97e28f200ad"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"sha": "1e024a149d15b5a6bb69758e41cf0d3703fe8e69",
|
| 56 |
+
"message": "fix: resolved pr comments",
|
| 57 |
+
"author": "Sayak Bhattacharya",
|
| 58 |
+
"date": "2025-11-06T07:47:12+00:00",
|
| 59 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1e024a149d15b5a6bb69758e41cf0d3703fe8e69"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"sha": "9e044556800ed5582b33230b316688c077c34557",
|
| 63 |
+
"message": "fix: resolved pr comments",
|
| 64 |
+
"author": "Sayak Bhattacharya",
|
| 65 |
+
"date": "2025-11-06T07:51:37+00:00",
|
| 66 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9e044556800ed5582b33230b316688c077c34557"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"sha": "2bfa3fc048b3fe99dce120908197bf77f4de02db",
|
| 70 |
+
"message": "fix: resolved pr comments",
|
| 71 |
+
"author": "Sayak Bhattacharya",
|
| 72 |
+
"date": "2025-11-09T08:10:11+00:00",
|
| 73 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2bfa3fc048b3fe99dce120908197bf77f4de02db"
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"sha": "d93a0780f850bdc07b80ea230fba4c136520b1e7",
|
| 77 |
+
"message": "fix: resolved pr comments",
|
| 78 |
+
"author": "Sayak Bhattacharya",
|
| 79 |
+
"date": "2025-11-09T08:14:20+00:00",
|
| 80 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d93a0780f850bdc07b80ea230fba4c136520b1e7"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"sha": "aea832fef0a7853d82f89e7d787239baee4b770c",
|
| 84 |
+
"message": "chore: run formatter",
|
| 85 |
+
"author": "hyperswitch-bot[bot]",
|
| 86 |
+
"date": "2025-11-09T08:15:36+00:00",
|
| 87 |
+
"url": "https://github.com/juspay/hyperswitch/commit/aea832fef0a7853d82f89e7d787239baee4b770c"
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"sha": "cb10d10cd4353cc9ae5fc889a392c3a2c1ba8d8f",
|
| 91 |
+
"message": "fix: resolved pr comments",
|
| 92 |
+
"author": "Sayak Bhattacharya",
|
| 93 |
+
"date": "2025-11-09T08:25:27+00:00",
|
| 94 |
+
"url": "https://github.com/juspay/hyperswitch/commit/cb10d10cd4353cc9ae5fc889a392c3a2c1ba8d8f"
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"sha": "7959c36da9de19170c9a621676bc44039b13af3a",
|
| 98 |
+
"message": "fix: resolved pr comments",
|
| 99 |
+
"author": "Sayak Bhattacharya",
|
| 100 |
+
"date": "2025-11-09T08:28:38+00:00",
|
| 101 |
+
"url": "https://github.com/juspay/hyperswitch/commit/7959c36da9de19170c9a621676bc44039b13af3a"
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"sha": "0c197b601ad247baa07f06c9dda55b4690e2a072",
|
| 105 |
+
"message": "fix: resolved PR comments",
|
| 106 |
+
"author": "Sayak Bhattacharya",
|
| 107 |
+
"date": "2025-11-11T10:43:32+00:00",
|
| 108 |
+
"url": "https://github.com/juspay/hyperswitch/commit/0c197b601ad247baa07f06c9dda55b4690e2a072"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"sha": "40ff6f2b5764a9b8bd2a159047248fdac3c00455",
|
| 112 |
+
"message": "chore: run formatter",
|
| 113 |
+
"author": "hyperswitch-bot[bot]",
|
| 114 |
+
"date": "2025-11-11T10:44:41+00:00",
|
| 115 |
+
"url": "https://github.com/juspay/hyperswitch/commit/40ff6f2b5764a9b8bd2a159047248fdac3c00455"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"sha": "f69bde896cf380160b893224bf2e6451c4360690",
|
| 119 |
+
"message": "fix: added default impl to ConnectorAccessTokenSuffix trait",
|
| 120 |
+
"author": "Sayak Bhattacharya",
|
| 121 |
+
"date": "2025-11-11T18:30:04+00:00",
|
| 122 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f69bde896cf380160b893224bf2e6451c4360690"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"sha": "cafb9c1f990a7f6f69958b333e9cda5309241972",
|
| 126 |
+
"message": "Merge remote-tracking branch 'origin/main' into redis-access-token",
|
| 127 |
+
"author": "Sayak Bhattacharya",
|
| 128 |
+
"date": "2025-11-20T11:48:50+00:00",
|
| 129 |
+
"url": "https://github.com/juspay/hyperswitch/commit/cafb9c1f990a7f6f69958b333e9cda5309241972"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"sha": "57fa606ea2d0766acbe4d917d5d1dd350d7928d5",
|
| 133 |
+
"message": "fix: add default access token key fn",
|
| 134 |
+
"author": "Sayak Bhattacharya",
|
| 135 |
+
"date": "2025-11-20T14:10:37+00:00",
|
| 136 |
+
"url": "https://github.com/juspay/hyperswitch/commit/57fa606ea2d0766acbe4d917d5d1dd350d7928d5"
|
| 137 |
+
}
|
| 138 |
+
]
|
| 139 |
+
}
|
prs/pr_10091.json
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10091,
|
| 3 |
+
"title": "feat: add support to call ucs authorize function during complete authorize",
|
| 4 |
+
"description": "# feat: Enhance UCS integration with improved authentication flow and proxy selection logic\r\n\r\n## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [x] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nThis PR introduces significant enhancements to the Unified Connector Service (UCS) integration, focusing on authentication flow improvements and comprehensive data handling updates.\r\n\r\n### Key Changes:\r\n\r\n1. **Enhanced Authentication Flow**:\r\n - Added support for `payment_method_type` in `PaymentsAuthenticateData` and `PaymentsPostAuthenticateData`\r\n - Implemented authentication data propagation in complete authorize flow\r\n - Added new fields to `AuthenticationData` including `trans_status` and `transaction_id`\r\n - Improved authentication data conversion between domain and gRPC models\r\n\r\n2. **UCS Integration Improvements**:\r\n - Updated connector-service dependency to revision `13c6e387c81c4573d382677d19ad91e3605ba9af`\r\n - Added complete authorize flow support in UCS\r\n - Enhanced preprocessing flow handling with authentication result storage\r\n - Improved error handling and response transformation\r\n\r\n3. **Data Model Enhancements**:\r\n - Added `authentication_data` and `payment_method_type` to `CompleteAuthorizeData`\r\n - Removed deprecated `CompleteAuthorizeRedirectResponse` struct\r\n - Enhanced payment method handling in UCS transformers\r\n - Improved merchant account metadata processing\r\n\r\n4. **Logging and Monitoring**:\r\n - Enhanced `ucs_logging_wrapper` to support flow output data\r\n - Improved error tracking and metrics for UCS calls\r\n - Better debugging information for proxy selection\r\n\r\n### Additional Changes\r\n\r\n- [x] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [x] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\nThis change addresses several critical improvements in the UCS integration:\r\n\r\n1. **Authentication Flow Enhancement**: The previous implementation lacked proper authentication data propagation in complete authorize flows, leading to incomplete payment processing for 3DS transactions.\r\n\r\n2. **Performance Optimization**: The proxy selection logic was making redundant database calls and had complex decision-making logic that could be simplified for better maintainability and performance.\r\n\r\n3. **Data Consistency**: Missing fields in authentication data structures were causing issues with proper 3DS flow handling and response processing.\r\n\r\n4. **Dependency Updates**: Updated to the latest connector-service revision to leverage new features and bug fixes.\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n1. Create merchant account, MCA, and cybersource connector.\r\n2. Enable UCS for cybersource. using below curls.\r\n```\r\ncurl --location 'http://localhost:8080/configs/' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-tenant-id: public' \\\r\n--header 'authorization: admin-api-key=test_admin' \\\r\n--header 'api-key: test_admin' \\\r\n--data '\r\n{\r\n \"key\": \"ucs_rollout_config_{merchant_id}_cybersource_card_Authorize\",\r\n \"value\": \"{\\\"rollout_percent\\\": 1.0}\"\r\n}\r\n'\r\n```\r\n```\r\ncurl --location 'http://localhost:8080/configs/' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-tenant-id: public' \\\r\n--header 'authorization: admin-api-key=test_admin' \\\r\n--header 'api-key: test_admin' \\\r\n--data '\r\n{\r\n \"key\": \"ucs_rollout_config_{merchant_id}_cybersource_card_CompleteAuthorize\",\r\n \"value\": \"{\\\"rollout_percent\\\": 1.0}\"\r\n}\r\n'\r\n```\r\n\r\n3. Make a 3ds payment.\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_3PqW18IEFGhqTmD1sfyvX4Z1ExVJmUIUVUDh0TCwRyj2pLUfdZO5u2mydrpxf10Y' \\\r\n--header 'x-reference-id: merchant_1758644770_payment_1' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"merchant_order_reference_id\": \"Payment_reference_1000\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5200000000002151\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"2028\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\r\n \r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\"\r\n}'\r\n```\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_uCWksYmUt19asmAgaSG2\",\r\n \"merchant_id\": \"merchant_1762157899\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 1000,\r\n \"amount_received\": null,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_uCWksYmUt19asmAgaSG2_secret_1g4dDqdVVpXQihahuXR0\",\r\n \"created\": \"2025-11-03T10:12:20.663Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"2151\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"520000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"2028\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_trsiX1X1HNAK7poz9jtO\",\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": {\r\n \"type\": \"redirect_to_url\",\r\n \"redirect_to_url\": \"http://localhost:8080/payments/redirect/pay_uCWksYmUt19asmAgaSG2/merchant_1762157899/pay_uCWksYmUt19asmAgaSG2_1\"\r\n },\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"StripeCustomer\",\r\n \"created_at\": 1762164739,\r\n \"expires\": 1762168339,\r\n \"secret\": \"epk_13ebbd353e144057b6a2ccfbf35a5636\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"unified_connector_service\"\r\n },\r\n \"reference_id\": \"pay_uCWksYmUt19asmAgaSG2_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_aI3SYpyPOvNnwVxWAhMg\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Q25hV2RKehYlDxOj2Bzw\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-03T10:27:20.663Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-11-03T10:12:24.333Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": \"Payment_reference_1000\",\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": \"{\\\"clientReferenceInformation\\\":{\\\"code\\\":\\\"pay_uCWksYmUt19asmAgaSG2_1\\\"},\\\"consumerAuthenticationInformation\\\":{\\\"accessToken\\\":\\\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIwZDVlZTIwYy0yZGFiLTQ3MGUtOTNkYS1lMmUyZTRmZDhmODUiLCJpYXQiOjE3NjIxNjQ3NDQsImlzcyI6IjVkZDgzYmYwMGU0MjNkMTQ5OGRjYmFjYSIsImV4cCI6MTc2MjE2ODM0NCwiT3JnVW5pdElkIjoiNjQxMDNkYTQxY2ZiOTM1ODcxMWQ3OTBmIiwiUmVmZXJlbmNlSWQiOiJkODlhZTY0Yi03NzM2LTRiYWEtYjRjYy00OTY2MTM0YjBkNTQifQ.QqhbG4QqkyY-wI4EDplHXSK2tB3C5w6L1mFOLnr5d7I\\\",\\\"deviceDataCollectionUrl\\\":\\\"https://centinelapistag.cardinalcommerce.com/V1/Cruise/Collect\\\",\\\"referenceId\\\":\\\"d89ae64b-7736-4baa-b4cc-4966134b0d54\\\",\\\"token\\\":\\\"AxizbwSTnSubHWK0F2xmAEMCT36P7wV4ApdwyaSZejFrdyoAgAAA3wgr\\\"},\\\"id\\\":\\\"7621647439916831304806\\\",\\\"status\\\":\\\"COMPLETED\\\",\\\"submitTimeUtc\\\":\\\"2025-11-03T10:12:24Z\\\"}\",\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n4. Copy paste `next_action.redirect_to_url` on a browser and complete redirection step.\r\n5. Do a PSync. Payment should be succeeded.\r\n6. To verify the payment actually went through UCS, search for this log line in Hyperswitch logs. `Payment gateway decision: gateway=UnifiedConnectorService`\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [x] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "hrithikesh026",
|
| 6 |
+
"created_at": "2025-11-02T13:25:36+00:00",
|
| 7 |
+
"merged_at": "2025-11-05T09:26:30+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10091",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "cbff113d7ccc54f04c978cdb8e41efe13f5b976e",
|
| 14 |
+
"message": "feat: add support to call ucs authorize function during complete authorize",
|
| 15 |
+
"author": "hrithikesh026",
|
| 16 |
+
"date": "2025-11-02T13:22:58+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/cbff113d7ccc54f04c978cdb8e41efe13f5b976e"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "10820607b9ea2890b99940b6144fd0947309c3e4",
|
| 21 |
+
"message": "chore: remove dead code",
|
| 22 |
+
"author": "hrithikesh026",
|
| 23 |
+
"date": "2025-11-02T13:27:34+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/10820607b9ea2890b99940b6144fd0947309c3e4"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"sha": "84564ed7025ff933ad9571470233297254881331",
|
| 28 |
+
"message": "Merge branch 'main' into call-ucs-for-authorize-in-complete-authorize",
|
| 29 |
+
"author": "Hrithikesh",
|
| 30 |
+
"date": "2025-11-03T07:45:30+00:00",
|
| 31 |
+
"url": "https://github.com/juspay/hyperswitch/commit/84564ed7025ff933ad9571470233297254881331"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"sha": "dd1f7b28d08ff77f1bd173103344c4eedcebcbe0",
|
| 35 |
+
"message": "chore: include ucaf collection indicator in Authentication Data",
|
| 36 |
+
"author": "hrithikesh026",
|
| 37 |
+
"date": "2025-11-03T10:15:35+00:00",
|
| 38 |
+
"url": "https://github.com/juspay/hyperswitch/commit/dd1f7b28d08ff77f1bd173103344c4eedcebcbe0"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"sha": "3fd244cd339037b532acc07c3b9e54d9d93bff3f",
|
| 42 |
+
"message": "chore: include ucaf collection indicator in Authentication Data in aci test module",
|
| 43 |
+
"author": "hrithikesh026",
|
| 44 |
+
"date": "2025-11-03T11:45:34+00:00",
|
| 45 |
+
"url": "https://github.com/juspay/hyperswitch/commit/3fd244cd339037b532acc07c3b9e54d9d93bff3f"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"sha": "47fcda181a329780258f06a2bc80a8f2adeae3f5",
|
| 49 |
+
"message": "chore: update Cargo.lock",
|
| 50 |
+
"author": "hyperswitch-bot[bot]",
|
| 51 |
+
"date": "2025-11-03T11:54:34+00:00",
|
| 52 |
+
"url": "https://github.com/juspay/hyperswitch/commit/47fcda181a329780258f06a2bc80a8f2adeae3f5"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"sha": "47494ff4f3bb4494b1345baef454294e1f210b2d",
|
| 56 |
+
"message": "chore: update UCS ref",
|
| 57 |
+
"author": "hrithikesh026",
|
| 58 |
+
"date": "2025-11-03T16:18:57+00:00",
|
| 59 |
+
"url": "https://github.com/juspay/hyperswitch/commit/47494ff4f3bb4494b1345baef454294e1f210b2d"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"sha": "56b642e4b014f8cbaa5396cc4b15545042639a01",
|
| 63 |
+
"message": "Merge remote-tracking branch 'origin/main' into call-ucs-for-authorize-in-complete-authorize",
|
| 64 |
+
"author": "hrithikesh026",
|
| 65 |
+
"date": "2025-11-03T16:28:57+00:00",
|
| 66 |
+
"url": "https://github.com/juspay/hyperswitch/commit/56b642e4b014f8cbaa5396cc4b15545042639a01"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"sha": "688981d089ee7a1f526d13265c1f049f95a085c2",
|
| 70 |
+
"message": "chore: address merge related errors",
|
| 71 |
+
"author": "hrithikesh026",
|
| 72 |
+
"date": "2025-11-03T16:59:28+00:00",
|
| 73 |
+
"url": "https://github.com/juspay/hyperswitch/commit/688981d089ee7a1f526d13265c1f049f95a085c2"
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"sha": "9bf37bb79de5f6140736384bbe69c6af95494762",
|
| 77 |
+
"message": "chore: wrap large futures with Box::pin",
|
| 78 |
+
"author": "hrithikesh026",
|
| 79 |
+
"date": "2025-11-04T08:20:22+00:00",
|
| 80 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9bf37bb79de5f6140736384bbe69c6af95494762"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"sha": "de3edfab34f5200a1e126105dc95e25358691197",
|
| 84 |
+
"message": "chore: wrap large futures with Box::pin",
|
| 85 |
+
"author": "hrithikesh026",
|
| 86 |
+
"date": "2025-11-04T09:18:17+00:00",
|
| 87 |
+
"url": "https://github.com/juspay/hyperswitch/commit/de3edfab34f5200a1e126105dc95e25358691197"
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"sha": "6dbfc73f14f3d968ceaa38cb789fe042d2eae3f6",
|
| 91 |
+
"message": "Merge remote-tracking branch 'origin/main' into call-ucs-for-authorize-in-complete-authorize",
|
| 92 |
+
"author": "hrithikesh026",
|
| 93 |
+
"date": "2025-11-04T09:18:38+00:00",
|
| 94 |
+
"url": "https://github.com/juspay/hyperswitch/commit/6dbfc73f14f3d968ceaa38cb789fe042d2eae3f6"
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"sha": "6462e17844c253d642b5fd80426d01d0d51ec5d5",
|
| 98 |
+
"message": "Merge remote-tracking branch 'origin/main' into call-ucs-for-authorize-in-complete-authorize",
|
| 99 |
+
"author": "hrithikesh026",
|
| 100 |
+
"date": "2025-11-04T09:20:38+00:00",
|
| 101 |
+
"url": "https://github.com/juspay/hyperswitch/commit/6462e17844c253d642b5fd80426d01d0d51ec5d5"
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"sha": "6c9f662aced597b70384613e97eb37c2908baa31",
|
| 105 |
+
"message": "chore: run formatter",
|
| 106 |
+
"author": "hyperswitch-bot[bot]",
|
| 107 |
+
"date": "2025-11-04T09:21:41+00:00",
|
| 108 |
+
"url": "https://github.com/juspay/hyperswitch/commit/6c9f662aced597b70384613e97eb37c2908baa31"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"sha": "86c975c896a639c4c66d8a4d3a57661151596541",
|
| 112 |
+
"message": "chore: address merge related errors",
|
| 113 |
+
"author": "hrithikesh026",
|
| 114 |
+
"date": "2025-11-04T10:02:50+00:00",
|
| 115 |
+
"url": "https://github.com/juspay/hyperswitch/commit/86c975c896a639c4c66d8a4d3a57661151596541"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"sha": "c1e36870c548cb95440d1a75b97189dd2f5b999c",
|
| 119 |
+
"message": "Merge branch 'call-ucs-for-authorize-in-complete-authorize' of https://github.com/juspay/hyperswitch into call-ucs-for-authorize-in-complete-authorize",
|
| 120 |
+
"author": "hrithikesh026",
|
| 121 |
+
"date": "2025-11-04T10:19:25+00:00",
|
| 122 |
+
"url": "https://github.com/juspay/hyperswitch/commit/c1e36870c548cb95440d1a75b97189dd2f5b999c"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"sha": "5310ef5a4f9f5c89dda02707ea641fc7dde2f184",
|
| 126 |
+
"message": "chore: introduce UcsAuthenticationData",
|
| 127 |
+
"author": "hrithikesh026",
|
| 128 |
+
"date": "2025-11-04T14:56:12+00:00",
|
| 129 |
+
"url": "https://github.com/juspay/hyperswitch/commit/5310ef5a4f9f5c89dda02707ea641fc7dde2f184"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"sha": "0561c83f0521f458351ba7fe8104aaf818483575",
|
| 133 |
+
"message": "chore: revert changes done to existing AuthenticationData",
|
| 134 |
+
"author": "hrithikesh026",
|
| 135 |
+
"date": "2025-11-05T06:11:36+00:00",
|
| 136 |
+
"url": "https://github.com/juspay/hyperswitch/commit/0561c83f0521f458351ba7fe8104aaf818483575"
|
| 137 |
+
}
|
| 138 |
+
]
|
| 139 |
+
}
|
prs/pr_10105.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10105,
|
| 3 |
+
"title": "fix(workflow): pin cocogitto version to 6.3.0 in release-stable-version workflow",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nThis pull request makes a small update to the GitHub Actions workflow by specifying the exact version of the `cocogitto` tool to be installed. This change helps ensure consistent and reproducible builds.\r\n\r\n- Workflow tooling:\r\n * Updated the installation step for `cocogitto` in `.github/workflows/release-stable-version.yml` to use version `6.3.0`, ensuring version consistency in CI runs.\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\nThe release-stable-version workflow was failing with \"Reference already exists\" errors when attempting to create SemVer tags. \r\n\r\n### Root Cause\r\nNewer versions of cocogitto (>6.3.0) are incorrectly detecting the previous stable version:\r\n- **Expected behavior (cocogitto@6.3.0)**: Returns the correct last stable version (e.g., 1.118.1)\r\n- **Actual behavior (newer versions)**: Returns incorrect version (1.108.0), causing tag conflicts\r\n\r\n### Evidence\r\n```bash\r\n# With cocogitto >6.3.0\r\ngit checkout hotfix-2025.10.15.0\r\ncog --verbose get-version # Returns: 1.108.0\r\n\r\ngit checkout main\r\ncog --verbose get-version # Returns: 1.108.0 (incorrect)\r\n```\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n ",
|
| 5 |
+
"author": "itsharshvb",
|
| 6 |
+
"created_at": "2025-11-03T10:43:55+00:00",
|
| 7 |
+
"merged_at": "2025-11-04T07:41:48+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"C-bug"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10105",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "dbb56ed209bd1667e5cff100d7cbde648f3f04a2",
|
| 16 |
+
"message": "fix(workflow): pin cocogitto version to 6.3.0 in release-stable-version workflow",
|
| 17 |
+
"author": "Harshvardhan Bahukhandi",
|
| 18 |
+
"date": "2025-11-03T10:25:44+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/dbb56ed209bd1667e5cff100d7cbde648f3f04a2"
|
| 20 |
+
}
|
| 21 |
+
]
|
| 22 |
+
}
|
prs/pr_10111.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10111,
|
| 3 |
+
"title": "feat(payment): Add Noon connector details and update payment methods \u2026",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nAdd noon cypress test and fix connector create call if connector creds having nested details.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\ncloses #10110\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n<img width=\"1003\" height=\"993\" alt=\"image\" src=\"https://github.com/user-attachments/assets/82e22f5e-ec63-4329-bd40-4de853b40316\" />\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "ayush22667",
|
| 6 |
+
"created_at": "2025-11-04T06:31:39+00:00",
|
| 7 |
+
"merged_at": "2025-11-11T10:37:15+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"C-bug",
|
| 11 |
+
"C-feature",
|
| 12 |
+
"T-Core"
|
| 13 |
+
],
|
| 14 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10111",
|
| 15 |
+
"commits": [
|
| 16 |
+
{
|
| 17 |
+
"sha": "00a2bb49bb8edf9d78cd42433df6c217b9a53fbd",
|
| 18 |
+
"message": "fix: Update method call to use router_store for merchant connector account updates",
|
| 19 |
+
"author": "Ayush",
|
| 20 |
+
"date": "2025-10-30T09:46:57+00:00",
|
| 21 |
+
"url": "https://github.com/juspay/hyperswitch/commit/00a2bb49bb8edf9d78cd42433df6c217b9a53fbd"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"sha": "b89f30c5d7f209af9a71bc39f84f69f2cd9e8cc1",
|
| 25 |
+
"message": "feat(payment): Add Noon connector details and update payment methods handling",
|
| 26 |
+
"author": "Ayush",
|
| 27 |
+
"date": "2025-11-04T06:17:55+00:00",
|
| 28 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b89f30c5d7f209af9a71bc39f84f69f2cd9e8cc1"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"sha": "7e051fa26a1981054f39e8be69d93db1315deba5",
|
| 32 |
+
"message": "fix(payment): Update card number and response status in Noon connector tests",
|
| 33 |
+
"author": "Ayush",
|
| 34 |
+
"date": "2025-11-04T06:32:47+00:00",
|
| 35 |
+
"url": "https://github.com/juspay/hyperswitch/commit/7e051fa26a1981054f39e8be69d93db1315deba5"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"sha": "e2208cd726405e31d8e28af90b335fcfb09c40c5",
|
| 39 |
+
"message": "Revert \"fix: Update method call to use router_store for merchant connector account updates\"\n\nThis reverts commit 00a2bb49bb8edf9d78cd42433df6c217b9a53fbd.",
|
| 40 |
+
"author": "Ayush",
|
| 41 |
+
"date": "2025-11-07T09:22:21+00:00",
|
| 42 |
+
"url": "https://github.com/juspay/hyperswitch/commit/e2208cd726405e31d8e28af90b335fcfb09c40c5"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"sha": "4e45172bd13d7af26e39054f6646de22c66752b1",
|
| 46 |
+
"message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into feat/cypress-noon",
|
| 47 |
+
"author": "Ayush",
|
| 48 |
+
"date": "2025-11-07T10:03:51+00:00",
|
| 49 |
+
"url": "https://github.com/juspay/hyperswitch/commit/4e45172bd13d7af26e39054f6646de22c66752b1"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"sha": "59a3cb76767cf033c18a6959afe79cc714274f8a",
|
| 53 |
+
"message": "feat(connector): add configuration to trigger skip for MandateSingleUse3DSManualCapture",
|
| 54 |
+
"author": "Ayush",
|
| 55 |
+
"date": "2025-11-10T06:08:29+00:00",
|
| 56 |
+
"url": "https://github.com/juspay/hyperswitch/commit/59a3cb76767cf033c18a6959afe79cc714274f8a"
|
| 57 |
+
}
|
| 58 |
+
]
|
| 59 |
+
}
|
prs/pr_10116.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10116,
|
| 3 |
+
"title": "fix(workflow): pin cocogitto version to 6.3.0 in release-stable-version workflow",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nCherry-picked commit https://github.com/juspay/hyperswitch/commit/c70f59dbd67b516f1aecc8f5408cc719e788d30d from main to fix release-stable-version workflow.\r\n\r\n\r\nOriginal PR: https://github.com/juspay/hyperswitch/pull/10105\r\n\r\nThis hotfix ensures running stable release workflow with cocogitto version 6.3.0 . \r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "itsharshvb",
|
| 6 |
+
"created_at": "2025-11-04T08:12:50+00:00",
|
| 7 |
+
"merged_at": "2025-11-04T08:52:41+00:00",
|
| 8 |
+
"base_branch": "hotfix-2025.10.15.0",
|
| 9 |
+
"labels": [
|
| 10 |
+
"C-bug"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10116",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "a7d3298e78603371b10053bedccad1674427b15e",
|
| 16 |
+
"message": "fix(workflow): pin cocogitto version to 6.3.0 in release-stable-version workflow (#10105)",
|
| 17 |
+
"author": "Harshvardhan Bahukhandi",
|
| 18 |
+
"date": "2025-11-04T07:04:54+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/a7d3298e78603371b10053bedccad1674427b15e"
|
| 20 |
+
}
|
| 21 |
+
]
|
| 22 |
+
}
|
prs/pr_10128.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10128,
|
| 3 |
+
"title": "ci(cypress): Fix Forte,Stax,Wellsfargo test",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [x] CI/CD\r\n\r\n## Description\r\nCypress test suite fixes for Stax, WellsFargo, and Forte connectors.\r\n\r\nStax: Fixed issues related to multiple partial refund scenarios.\r\nWellsFargo: Handled 3DS validation error cases.\r\nForte: Added handling for save card flows.\r\n\r\n\r\n## How did you test it?\r\nWellsfargo\r\n<img width=\"703\" height=\"987\" alt=\"Screenshot 2025-11-03 at 5 39 24\u202fPM\" src=\"https://github.com/user-attachments/assets/acc2ca12-d55b-4732-b9a0-ad93541d9758\" />\r\n\r\nForte\r\n<img width=\"767\" height=\"985\" alt=\"Screenshot 2025-11-04 at 5 36 37\u202fPM\" src=\"https://github.com/user-attachments/assets/b5741a18-2278-4e18-9e7a-5ec941e42607\" />\r\n\r\nNote: 1scenario is failing for payment method list because its empty for payments with billing address. Code fix is required\r\n\r\nStax\r\n<img width=\"741\" height=\"983\" alt=\"Screenshot 2025-11-04 at 5 44 40\u202fPM\" src=\"https://github.com/user-attachments/assets/7ad758ca-79ee-4afc-bc1a-3439e7811d96\" />\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "Gnanasundari24",
|
| 6 |
+
"created_at": "2025-11-04T12:08:12+00:00",
|
| 7 |
+
"merged_at": "2025-11-05T13:15:46+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-CI-CD",
|
| 11 |
+
"C-test"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10128",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "78f1662205e31bb0a23efd9348f123b72fdb77ad",
|
| 17 |
+
"message": "ci(cypress): Fix iatapay redirection flow",
|
| 18 |
+
"author": "Gnanasundari Gopal",
|
| 19 |
+
"date": "2025-10-29T14:53:42+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/78f1662205e31bb0a23efd9348f123b72fdb77ad"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sha": "2e4af362707407d7ac16b59cd5b0fcea1f3ebd6a",
|
| 24 |
+
"message": "ci(cypress): Fix forte,stax,wellfargo test",
|
| 25 |
+
"author": "Gnanasundari Gopal",
|
| 26 |
+
"date": "2025-11-04T12:00:43+00:00",
|
| 27 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2e4af362707407d7ac16b59cd5b0fcea1f3ebd6a"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"sha": "06e858d86126b5156cae9f42eb84f5191b0963f6",
|
| 31 |
+
"message": "Add const for 3dsvalidation",
|
| 32 |
+
"author": "Gnanasundari Gopal",
|
| 33 |
+
"date": "2025-11-05T11:27:36+00:00",
|
| 34 |
+
"url": "https://github.com/juspay/hyperswitch/commit/06e858d86126b5156cae9f42eb84f5191b0963f6"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"sha": "33221dc260f53b6761e28ba39e04b51bb05d7f74",
|
| 38 |
+
"message": "chore(cypress): run formatter and address lints",
|
| 39 |
+
"author": "hyperswitch-bot[bot]",
|
| 40 |
+
"date": "2025-11-05T11:29:48+00:00",
|
| 41 |
+
"url": "https://github.com/juspay/hyperswitch/commit/33221dc260f53b6761e28ba39e04b51bb05d7f74"
|
| 42 |
+
}
|
| 43 |
+
]
|
| 44 |
+
}
|
prs/pr_10133.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10133,
|
| 3 |
+
"title": "feat(routing): validation for configs",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\nTagged Issue\r\njuspay/hyperswitch-cloud/issues/11764\r\n\r\n## Description\r\nThis pull request introduces validation logic for routing configuration objects and improves error handling for dynamic routing setup. The main changes ensure that required fields are present in routing configs and provide clearer error messages when configurations are missing or invalid.\r\n\r\n### Routing Configuration Validation\r\n\r\n* Added a `validate` method to `EliminationRoutingConfig` and `SuccessBasedRoutingConfig` to check that at least one required field is present; returns a validation error if all fields are null. [[1]](diffhunk://#diff-6eb6e93a94555e904f304999acc96ab6125769971da9ec3dcbb30d5912b4fc45R1043-R1056) [[2]](diffhunk://#diff-6eb6e93a94555e904f304999acc96ab6125769971da9ec3dcbb30d5912b4fc45R1219-R1233)\r\n\r\n### Error Handling Improvements\r\n\r\n* Updated `create_specific_dynamic_routing_setup` to call the new `validate` methods and return a specific error if the configuration is invalid, with a clear message about missing fields. [[1]](diffhunk://#diff-ea48d33e52b2cb7edbbba1d236b55f946fdb2c178f8c76f4226818b3630c4658L2253-R2261) [[2]](diffhunk://#diff-ea48d33e52b2cb7edbbba1d236b55f946fdb2c178f8c76f4226818b3630c4658L2278-R2294)\r\n* Improved error mapping in `link_routing_config` to distinguish between not-found and internal server errors, providing more descriptive error contexts.\r\n\r\n### Code Maintenance\r\n\r\n* Added `fp_utils` to imports in `crates/api_models/src/routing.rs` to support the new validation logic.\r\n\r\n### Routing Algorithm Logic\r\n\r\n* Updated logic in `DynamicRoutingAlgorithmRef` to return false if `algorithm_id` is missing, ensuring more robust feature checks.\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\ncreate success_based with empty payload\r\n\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1762366132/business_profile/pro_OvIAO1lNAyVksNftih0N/dynamic_routing/success_based/create?enable=dynamic_connector_selection' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key:****' \\\r\n--data '{}'\r\n```\r\n\r\n```\r\n{\r\n \"error\": {\r\n \"type\": \"invalid_request\",\r\n \"message\": \"All fields in SuccessBasedRoutingConfig cannot be null\",\r\n \"code\": \"IR_06\"\r\n }\r\n}\r\n```\r\nactivate routing algo without descision_engine_config\r\n\r\n```\r\ncurl --location 'http://localhost:8080/routing/routing_DkSrtH3FRM8olK7Mmf5s/activate' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key:**** \\\r\n--data '{}'\r\n```\r\n\r\n```\r\n{\r\n \"error\": {\r\n \"type\": \"invalid_request\",\r\n \"message\": \"Config key does not exist in our records.\",\r\n \"code\": \"HE_02\"\r\n }\r\n}\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "AnkitKmrGupta",
|
| 6 |
+
"created_at": "2025-11-05T10:25:17+00:00",
|
| 7 |
+
"merged_at": "2025-11-10T13:21:16+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10133",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "3f33c881716c123819c8513f2b34c8a1ae89aef7",
|
| 14 |
+
"message": "validation for configs",
|
| 15 |
+
"author": "Ankit Kumar Gupta",
|
| 16 |
+
"date": "2025-11-05T10:23:58+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/3f33c881716c123819c8513f2b34c8a1ae89aef7"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "7bec6afa392fdcd7507d3b3be997a89010ed7902",
|
| 21 |
+
"message": "chore: run formatter",
|
| 22 |
+
"author": "hyperswitch-bot[bot]",
|
| 23 |
+
"date": "2025-11-05T10:26:04+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/7bec6afa392fdcd7507d3b3be997a89010ed7902"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"sha": "66cfd7d79a6e42f7f7045b75a4626affef4ae033",
|
| 28 |
+
"message": "refactor",
|
| 29 |
+
"author": "Ankit Kumar Gupta",
|
| 30 |
+
"date": "2025-11-05T15:26:13+00:00",
|
| 31 |
+
"url": "https://github.com/juspay/hyperswitch/commit/66cfd7d79a6e42f7f7045b75a4626affef4ae033"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"sha": "07bb55bbdd4cf96dd1f4188afb8a49d06d30e8b1",
|
| 35 |
+
"message": "chore: run formatter",
|
| 36 |
+
"author": "hyperswitch-bot[bot]",
|
| 37 |
+
"date": "2025-11-05T15:27:03+00:00",
|
| 38 |
+
"url": "https://github.com/juspay/hyperswitch/commit/07bb55bbdd4cf96dd1f4188afb8a49d06d30e8b1"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"sha": "291e6d95226dd14386926f6a471f8caa95325d48",
|
| 42 |
+
"message": "change error status",
|
| 43 |
+
"author": "Ankit Kumar Gupta",
|
| 44 |
+
"date": "2025-11-06T08:06:35+00:00",
|
| 45 |
+
"url": "https://github.com/juspay/hyperswitch/commit/291e6d95226dd14386926f6a471f8caa95325d48"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"sha": "2e6d5155941fbab4ca98bd2b27d57d44fc164d11",
|
| 49 |
+
"message": "chore: run formatter",
|
| 50 |
+
"author": "hyperswitch-bot[bot]",
|
| 51 |
+
"date": "2025-11-06T08:14:08+00:00",
|
| 52 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2e6d5155941fbab4ca98bd2b27d57d44fc164d11"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"sha": "56af8c9a21a084946c458a69de9ae51eb56dffdb",
|
| 56 |
+
"message": "add validation for algorithm_id",
|
| 57 |
+
"author": "Ankit Kumar Gupta",
|
| 58 |
+
"date": "2025-11-07T12:09:56+00:00",
|
| 59 |
+
"url": "https://github.com/juspay/hyperswitch/commit/56af8c9a21a084946c458a69de9ae51eb56dffdb"
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
prs/pr_10136.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10136,
|
| 3 |
+
"title": "fix(connectors): [Adyen] add migrated payment method check",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nHotfix for https://github.com/juspay/hyperswitch/pull/10094\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "mrudulvajpayee4935",
|
| 6 |
+
"created_at": "2025-11-05T11:33:25+00:00",
|
| 7 |
+
"merged_at": "2025-11-05T12:28:59+00:00",
|
| 8 |
+
"base_branch": "hotfix-2025.10.31.2",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10136",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "b6e1be55a80f73d397964a660e567a6982842f2f",
|
| 14 |
+
"message": "fix(connectors): [Adyen] add migrated payment method check (#10094)",
|
| 15 |
+
"author": "Mrudul Vajpayee",
|
| 16 |
+
"date": "2025-11-05T09:51:43+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b6e1be55a80f73d397964a660e567a6982842f2f"
|
| 18 |
+
}
|
| 19 |
+
]
|
| 20 |
+
}
|
prs/pr_10137.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10137,
|
| 3 |
+
"title": "fix: ucs response masked serialize in connector event",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nmasking ucs grpc response in connectorEvent, as previously it was not masked\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\nmasking ucs grpc response in connectorEvent, as previously it was not masked\r\n<img width=\"704\" height=\"198\" alt=\"image\" src=\"https://github.com/user-attachments/assets/57d225c3-a687-449a-89f8-1e7eafa02b60\" />\r\n\r\n\r\n## How did you test it?\r\n\r\nPreviously without masking\r\n<img width=\"960\" height=\"516\" alt=\"image\" src=\"https://github.com/user-attachments/assets/0d45edd3-e936-4308-851a-f0741c37bb0c\" />\r\n\r\nafter this change, in kafka events\r\n\r\n<details>\r\n<summary> ConnectorEvent </summary>\r\n\r\n```json\r\n{\r\n\t\"tenant_id\": \"public\",\r\n\t\"connector_name\": \"stripe\",\r\n\t\"flow\": \"Authorize\",\r\n\t\"request\": \"{\\\"request_ref_id\\\":{\\\"id_type\\\":{\\\"Id\\\":\\\"pay_d4rOWsI1wjjRxKuQBzBc_1\\\"}},\\\"amount\\\":6540,\\\"currency\\\":\\\"USD\\\",\\\"minor_amount\\\":6540,\\\"payment_method\\\":{\\\"payment_method\\\":{\\\"Card\\\":{\\\"card_type\\\":{\\\"Credit\\\":{\\\"card_number\\\":\\\"424242**********\\\",\\\"card_exp_month\\\":\\\"*** alloc::string::String ***\\\",\\\"card_exp_year\\\":\\\"*** alloc::string::String ***\\\",\\\"card_cvc\\\":\\\"*** alloc::string::String ***\\\",\\\"card_holder_name\\\":\\\"*** alloc::string::String ***\\\"}}}}},\\\"capture_method\\\":\\\"AUTOMATIC\\\",\\\"email\\\":\\\"*** alloc::string::String ***\\\",\\\"customer_name\\\":\\\"John Doe\\\",\\\"customer_id\\\":\\\"customer123\\\",\\\"connector_customer_id\\\":\\\"cus_TMm9QT7xlgaIBd\\\",\\\"address\\\":{\\\"shipping_address\\\":{\\\"first_name\\\":\\\"*** alloc::string::String ***\\\",\\\"last_name\\\":\\\"*** alloc::string::String ***\\\",\\\"line1\\\":\\\"*** alloc::string::String ***\\\",\\\"line2\\\":\\\"*** alloc::string::String ***\\\",\\\"line3\\\":\\\"*** alloc::string::String ***\\\",\\\"city\\\":\\\"*** alloc::string::String ***\\\",\\\"state\\\":\\\"*** alloc::string::String ***\\\",\\\"zip_code\\\":\\\"*** alloc::string::String ***\\\",\\\"country_alpha2_code\\\":\\\"US\\\",\\\"email\\\":\\\"*** alloc::string::String ***\\\",\\\"phone_number\\\":\\\"*** alloc::string::String ***\\\",\\\"phone_country_code\\\":\\\"+91\\\"},\\\"billing_address\\\":{\\\"first_name\\\":\\\"*** alloc::string::String ***\\\",\\\"last_name\\\":\\\"*** alloc::string::String ***\\\",\\\"line1\\\":\\\"*** alloc::string::String ***\\\",\\\"line2\\\":\\\"*** alloc::string::String ***\\\",\\\"line3\\\":\\\"*** alloc::string::String ***\\\",\\\"city\\\":\\\"*** alloc::string::String ***\\\",\\\"state\\\":\\\"*** alloc::string::String ***\\\",\\\"zip_code\\\":\\\"*** alloc::string::String ***\\\",\\\"country_alpha2_code\\\":\\\"US\\\",\\\"email\\\":\\\"*** alloc::string::String ***\\\",\\\"phone_number\\\":\\\"*** alloc::string::String ***\\\",\\\"phone_country_code\\\":\\\"+91\\\"}},\\\"auth_type\\\":\\\"NO_THREE_DS\\\",\\\"enrolled_for_3ds\\\":true,\\\"metadata\\\":{\\\"connector_meta_data\\\":\\\"{}\\\",\\\"login_date\\\":\\\"2019-09-10T10:11:12Z\\\",\\\"udf1\\\":\\\"value1\\\",\\\"new_customer\\\":\\\"true\\\"},\\\"return_url\\\":\\\"http://localhost:8080/payments/pay_d4rOWsI1wjjRxKuQBzBc/merchant_1761890823/redirect/response/stripe\\\",\\\"webhook_url\\\":\\\"http://localhost:8080/webhooks/merchant_1761890823/mca_qn5XgmCD1DiukKhdhnOM\\\",\\\"complete_authorize_url\\\":\\\"http://localhost:8080/payments/pay_d4rOWsI1wjjRxKuQBzBc/merchant_1761890823/redirect/complete/stripe\\\",\\\"order_category\\\":\\\"pay\\\",\\\"merchant_order_reference_id\\\":\\\"test_ord\\\",\\\"setup_future_usage\\\":\\\"ON_SESSION\\\",\\\"request_incremental_authorization\\\":false,\\\"customer_acceptance\\\":{\\\"acceptance_type\\\":\\\"OFFLINE\\\",\\\"accepted_at\\\":-210369128,\\\"online_mandate_details\\\":{\\\"ip_address\\\":\\\"125.0.0.1\\\",\\\"user_agent\\\":\\\"amet irure esse\\\"}},\\\"browser_info\\\":{\\\"color_depth\\\":24,\\\"screen_height\\\":723,\\\"screen_width\\\":1536,\\\"java_enabled\\\":true,\\\"java_script_enabled\\\":true,\\\"language\\\":\\\"nl-NL\\\",\\\"time_zone_offset_minutes\\\":0,\\\"accept_header\\\":\\\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\\\",\\\"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\\\",\\\"ip_address\\\":\\\"128.0.0.1\\\"},\\\"test_mode\\\":true,\\\"merchant_account_metadata\\\":{}}\",\r\n\t\"masked_response\": \"{\\\"transaction_id\\\":{\\\"id_type\\\":{\\\"Id\\\":\\\"pi_3SQ5i9D5R7gDAGff0nnTzVcH\\\"}},\\\"status\\\":\\\"CHARGED\\\",\\\"status_code\\\":200,\\\"response_headers\\\":{\\\"x-stripe-routing-context-priority-tier\\\":\\\"api-testmode\\\",\\\"access-control-expose-headers\\\":\\\"Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required\\\",\\\"content-length\\\":\\\"5752\\\",\\\"strict-transport-security\\\":\\\"max-age=63072000; includeSubDomains; preload\\\",\\\"original-request\\\":\\\"req_22KAjMdS10S0KW\\\",\\\"server\\\":\\\"nginx\\\",\\\"stripe-version\\\":\\\"2022-11-15\\\",\\\"content-security-policy\\\":\\\"base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=dTH3osK4UExMorUXZEyj_EmPW1ADnXd459b_RMnTeN4bzbx6HS5I5uGRy3OjmfNDQfLyd6LOe0Qq7yJW\\\",\\\"content-type\\\":\\\"application/json\\\",\\\"vary\\\":\\\"Origin\\\",\\\"x-wc\\\":\\\"ABGHIJ\\\",\\\"access-control-allow-methods\\\":\\\"GET, HEAD, PUT, PATCH, POST, DELETE\\\",\\\"cache-control\\\":\\\"no-cache, no-store\\\",\\\"access-control-max-age\\\":\\\"300\\\",\\\"date\\\":\\\"Wed, 05 Nov 2025 12:21:13 GMT\\\",\\\"connection\\\":\\\"keep-alive\\\",\\\"idempotency-key\\\":\\\"b2f5a9d3-5ceb-4238-ace1-ce5574c6db59\\\",\\\"access-control-allow-origin\\\":\\\"*\\\",\\\"x-stripe-priority-routing-enabled\\\":\\\"true\\\",\\\"access-control-allow-credentials\\\":\\\"true\\\",\\\"request-id\\\":\\\"req_22KAjMdS10S0KW\\\",\\\"stripe-should-retry\\\":\\\"false\\\"},\\\"network_txn_id\\\":\\\"104557651805572\\\",\\\"response_ref_id\\\":{\\\"id_type\\\":{\\\"Id\\\":\\\"pi_3SQ5i9D5R7gDAGff0nnTzVcH\\\"}},\\\"incremental_authorization_allowed\\\":false,\\\"connector_metadata\\\":{},\\\"state\\\":{\\\"connector_customer_id\\\":\\\"cus_TMm9QT7xlgaIBd\\\"},\\\"raw_connector_response\\\":\\\"*** alloc::string::String ***\\\",\\\"raw_connector_request\\\":\\\"*** alloc::string::String ***\\\",\\\"captured_amount\\\":6540,\\\"minor_captured_amount\\\":6540,\\\"minor_amount_capturable\\\":6540,\\\"mandate_reference\\\":{\\\"mandate_id\\\":\\\"pm_1SQ5i9D5R7gDAGffUrdjuZ04\\\",\\\"payment_method_id\\\":\\\"pm_1SQ5i9D5R7gDAGffUrdjuZ04\\\"},\\\"connector_response\\\":{\\\"additional_payment_method_data\\\":{\\\"card\\\":{\\\"payment_checks\\\":[123,34,97,100,100,114,101,115,115,95,108,105,110,101,49,95,99,104,101,99,107,34,58,34,112,97,115,115,34,44,34,97,100,100,114,101,115,115,95,112,111,115,116,97,108,95,99,111,100,101,95,99,104,101,99,107,34,58,34,112,97,115,115,34,44,34,99,118,99,95,99,104,101,99,107,34,58,34,112,97,115,115,34,125]}},\\\"extended_authorization_response_data\\\":{\\\"extended_authentication_applied\\\":false},\\\"is_overcapture_enabled\\\":false}}\",\r\n\t\"error\": null,\r\n\t\"url\": \"grpc://unified-connector-service\",\r\n\t\"method\": \"POST\",\r\n\t\"payment_id\": \"pay_d4rOWsI1wjjRxKuQBzBc\",\r\n\t\"merchant_id\": \"merchant_1761890823\",\r\n\t\"created_at\": 1762345273856,\r\n\t\"request_id\": \"019a53f6-c521-72b3-814e-7304b45f5eb6\",\r\n\t\"latency\": 1074,\r\n\t\"refund_id\": null,\r\n\t\"dispute_id\": null,\r\n\t\"status_code\": 200\r\n}\r\n```\r\n\r\n</details>\r\n\r\nGrpc Response in event is masked, raw_connector_response, raw_connector_request field is masked as per proto secretstring\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [xI addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "gopikrishna000",
|
| 6 |
+
"created_at": "2025-11-05T11:38:01+00:00",
|
| 7 |
+
"merged_at": "2025-11-06T14:26:30+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10137",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "9238034af75625756699da205df3979aac863379",
|
| 14 |
+
"message": "fix: ucs response masked serialize in connector event",
|
| 15 |
+
"author": "gopikrishna.c",
|
| 16 |
+
"date": "2025-11-04T22:34:39+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9238034af75625756699da205df3979aac863379"
|
| 18 |
+
}
|
| 19 |
+
]
|
| 20 |
+
}
|
prs/pr_10138.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10138,
|
| 3 |
+
"title": "refactor(connector): [PAYJUSTNOW] Unstructured error response handling",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nUnstructured error response handling for PayJustNow.\r\nConnector is sending some error response in different formats.\r\nGeneral error response structure:\r\n```\r\n{\r\n \"message\" : \"Forbidden\"\r\n}\r\n\r\n```\r\n\r\nSometimes getting error like:\r\n\"Invalid checkoutTotalCents\"\r\n\r\nHandled this scenario where we are getting error response only in string format.\r\n\r\nWe will get this error if we will pass order_amount which is not equal to total amount as mentioned in the test case.\r\n```\r\n\"amount\": 2,\r\n\"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 3,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\r\n```\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_obKq9e7OSn5JWN1xEtIjKFcsVqUs2jEnGNhRO04ceWgOCOAbLUNrhE31jWjizTxJ' \\\r\n--data-raw '{\r\n \"amount\": 2,\r\n \"currency\": \"ZAR\",\r\n \"amount_to_capture\": 2,\r\n \"confirm\": true,\r\n \r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"setup_future_usage\": \"on_session\", \r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"customer_id\": \"customer123\",\r\n \r\n \r\n \r\n \"phone_country_code\": \"+1\",\r\n \"routing\": { \r\n \"type\": \"single\",\r\n \"data\": \"stripe\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_type\": \"payjustnow\",\r\n \"payment_method_data\": {\r\n \"pay_later\": {\r\n \"payjustnow_redirect\": {}\r\n }\r\n },\r\n \r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ZA\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ZA\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 3,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"128.0.0.1\"\r\n },\r\n \"merchant_order_reference_id\": \"test_ord\"\r\n}\r\n\r\n'\r\n```\r\n\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_Jm3wWbxG2am6w7Ll3FKA\",\"merchant_id\":\"merchant_1762339199\",\"status\":\"failed\",\"amount\":2,\"net_amount\":2,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":null,\"connector\":\"payjustnow\",\"client_secret\":\"pay_Jm3wWbxG2am6w7Ll3FKA_secret_J2dhbMOCPhkOJ27CF107\",\"created\":\"2025-11-05T11:59:02.849Z\",\"currency\":\"ZAR\",\"customer_id\":\"customer123\",\"customer\":{\"id\":\"customer123\",\"name\":\"John Doe\",\"email\":\"customer@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"pay_later\",\"payment_method_data\":{\"pay_later\":{\"klarna_sdk\":null},\"billing\":null},\"payment_token\":null,\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ZA\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ZA\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":3,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customer@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":\"https://google.com/\",\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":\"Invalid orderAmountCents\",\"unified_code\":\"UE_9000\",\"unified_message\":\"Something went wrong\",\"payment_experience\":null,\"payment_method_type\":\"payjustnow\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"customer123\",\"created_at\":1762343942,\"expires\":1762347542,\"secret\":\"epk_5502ed7fc3de481ebdf28e3120e13416\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":null,\"frm_message\":null,\"metadata\":{\"udf1\":\"value1\",\"login_date\":\"2019-09-10T10:11:12Z\",\"new_customer\":\"true\"},\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_sjeftpLG4vqyHUzfJeb7\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_mlxbJTxZSTcnqE50SPfK\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-11-05T12:14:02.849Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"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\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":null,\"network_transaction_id\":null,\"payment_method_status\":null,\"updated\":\"2025-11-05T11:59:04.905Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"extended_authorization_last_applied_at\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":null,\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":{\"network_advice_code\":null},\"is_stored_credential\":null,\"mit_category\":null}\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "swetasharma03",
|
| 6 |
+
"created_at": "2025-11-05T11:59:35+00:00",
|
| 7 |
+
"merged_at": "2025-11-06T09:59:00+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10138",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "544521b80b1a37e6a07db68212c60d814daffa4b",
|
| 14 |
+
"message": "error handling fixed",
|
| 15 |
+
"author": "Sweta-Kumari-Sharma",
|
| 16 |
+
"date": "2025-11-05T11:56:16+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/544521b80b1a37e6a07db68212c60d814daffa4b"
|
| 18 |
+
}
|
| 19 |
+
]
|
| 20 |
+
}
|
prs/pr_10148.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10148,
|
| 3 |
+
"title": "fix(connector): remove card holder name as required field in sdk [ADYEN]",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n\r\n- remove card holder name as required field in sdk\r\nCard name is non mandatory for adyen .\r\n\r\n### Test by removing first and second name in request\r\n\r\n```json\r\n{\r\n \"amount\": 6500,\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 6500\r\n }\r\n ],\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4917610000000000\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n // \"card_holder_name\": \"Joseph Doe .\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"language\": \"en-GB\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 1117,\r\n \"screen_width\": 1728,\r\n \"time_zone\": -330,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"device_model\": \"Macintosh\",\r\n \"os_type\": \"macOS\",\r\n \"os_version\": \"10.15.7\"\r\n },\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"setup_future_usage\": \"on_session\",\r\n \"request_external_three_ds_authentication\": false,\r\n \"email\": \"user@gmail.com\",\r\n \"connector\": [\"adyen\"],\r\n \"description\": \"Hello this is description\",\r\n \"shipping\": {\r\n \"address\": {\r\n \"state\": \"California\",\r\n \"city\": \"Banglore\",\r\n \"country\": \"US\",\r\n \"line1\": \"sdsdfsdf\",\r\n \"line2\": \"hsgdbhd\",\r\n \"line3\": \"alsksoe\",\r\n \"zip\": \"571201\"\r\n // \"first_name\": \"John\",\r\n // \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n }\r\n },\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"applepay\"\r\n }\r\n },\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\"\r\n // \"first_name\": \"joseph\",\r\n // \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"customer_id\": \"hyperswitch_sdk_demo_id\"\r\n}\r\n```\r\n\r\n#### RESPONSE\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_2f3J4P18Kf7E7x1Tk2EU\",\r\n \"merchant_id\": \"merchant_1762245250\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 6500,\r\n \"net_amount\": 6500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 6500,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_2f3J4P18Kf7E7x1Tk2EU_secret_2XRDw4pdGkQl5Y7alYzn\",\r\n \"created\": \"2025-11-06T06:17:16.205Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"hyperswitch_sdk_demo_id\",\r\n \"customer\": {\r\n \"id\": \"hyperswitch_sdk_demo_id\",\r\n \"name\": null,\r\n \"email\": \"user@gmail.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": \"Hello this is description\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"on_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0000\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"491761\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"Banglore\",\r\n \"country\": \"US\",\r\n \"line1\": \"sdsdfsdf\",\r\n \"line2\": \"hsgdbhd\",\r\n \"line3\": \"alsksoe\",\r\n \"zip\": \"571201\",\r\n \"state\": \"California\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": [\r\n {\r\n \"sku\": null,\r\n \"upc\": null,\r\n \"brand\": null,\r\n \"amount\": 6500,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"tax_rate\": null,\r\n \"product_id\": null,\r\n \"description\": null,\r\n \"product_name\": \"Apple iphone 15\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"total_amount\": null,\r\n \"commodity_code\": null,\r\n \"unit_of_measure\": null,\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"total_tax_amount\": null,\r\n \"requires_shipping\": null,\r\n \"unit_discount_amount\": null\r\n }\r\n ],\r\n \"email\": \"user@gmail.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": null,\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"hyperswitch_sdk_demo_id\",\r\n \"created_at\": 1762409836,\r\n \"expires\": 1762413436,\r\n \"secret\": \"epk_2d9f89d59a1547edbb3df58d22510bad\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"GMZ34VXZSJBH3275\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": {\r\n \"apple_pay\": null,\r\n \"airwallex\": null,\r\n \"noon\": {\r\n \"order_category\": \"applepay\"\r\n },\r\n \"braintree\": null,\r\n \"adyen\": null\r\n },\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pay_2f3J4P18Kf7E7x1Tk2EU_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_TKew5SYzewHMN8zIJQeR\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_oQGIaecgyM8LYQUXqxX6\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-06T06:32:16.205Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"os_type\": \"macOS\",\r\n \"language\": \"en-GB\",\r\n \"time_zone\": -330,\r\n \"os_version\": \"10.15.7\",\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36\",\r\n \"color_depth\": 24,\r\n \"device_model\": \"Macintosh\",\r\n \"java_enabled\": true,\r\n \"screen_width\": 1728,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 1117,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"296867932038518\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-11-06T06:17:18.618Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n## PML\r\n\r\n```json\r\n{\r\n \"redirect_url\": \"https://google.com/success\",\r\n \"currency\": \"USD\",\r\n \"payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n {\r\n \"card_network\": \"Visa\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"adyen\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"Mastercard\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"adyen\"\r\n ]\r\n }\r\n ],\r\n \"bank_names\": null,\r\n \"bank_debits\": null,\r\n \"bank_transfers\": null,\r\n \"required_fields\": {\r\n \"payment_method_data.card.card_exp_year\": {\r\n \"required_field\": \"payment_method_data.card.card_exp_year\",\r\n \"display_name\": \"card_exp_year\",\r\n \"field_type\": \"user_card_expiry_year\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_cvc\": {\r\n \"required_field\": \"payment_method_data.card.card_cvc\",\r\n \"display_name\": \"card_cvc\",\r\n \"field_type\": \"user_card_cvc\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_number\": {\r\n \"required_field\": \"payment_method_data.card.card_number\",\r\n \"display_name\": \"card_number\",\r\n \"field_type\": \"user_card_number\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_exp_month\": {\r\n \"required_field\": \"payment_method_data.card.card_exp_month\",\r\n \"display_name\": \"card_exp_month\",\r\n \"field_type\": \"user_card_expiry_month\",\r\n \"value\": null\r\n }\r\n },\r\n \"surcharge_details\": null,\r\n \"pm_auth_connector\": null\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n {\r\n \"card_network\": \"Visa\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"adyen\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"Mastercard\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"adyen\"\r\n ]\r\n }\r\n ],\r\n \"bank_names\": null,\r\n \"bank_debits\": null,\r\n \"bank_transfers\": null,\r\n \"required_fields\": {\r\n \"payment_method_data.card.card_exp_year\": {\r\n \"required_field\": \"payment_method_data.card.card_exp_year\",\r\n \"display_name\": \"card_exp_year\",\r\n \"field_type\": \"user_card_expiry_year\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_cvc\": {\r\n \"required_field\": \"payment_method_data.card.card_cvc\",\r\n \"display_name\": \"card_cvc\",\r\n \"field_type\": \"user_card_cvc\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_number\": {\r\n \"required_field\": \"payment_method_data.card.card_number\",\r\n \"display_name\": \"card_number\",\r\n \"field_type\": \"user_card_number\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_exp_month\": {\r\n \"required_field\": \"payment_method_data.card.card_exp_month\",\r\n \"display_name\": \"card_exp_month\",\r\n \"field_type\": \"user_card_expiry_month\",\r\n \"value\": null\r\n }\r\n },\r\n \"surcharge_details\": null,\r\n \"pm_auth_connector\": null\r\n }\r\n ]\r\n }\r\n ],\r\n \"mandate_payment\": null,\r\n \"merchant_name\": \"NewAge Retailer\",\r\n \"show_surcharge_breakup_screen\": false,\r\n \"payment_type\": \"normal\",\r\n \"request_external_three_ds_authentication\": false,\r\n \"collect_shipping_details_from_wallets\": false,\r\n \"collect_billing_details_from_wallets\": false,\r\n \"is_tax_calculation_enabled\": false,\r\n \"sdk_next_action\": {\r\n \"next_action\": \"confirm\"\r\n }\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "Nithin1506200",
|
| 6 |
+
"created_at": "2025-11-06T07:15:38+00:00",
|
| 7 |
+
"merged_at": "2025-11-10T13:55:38+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10148",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "5f8396953304c2dede2e90aefd737aa6503657c8",
|
| 14 |
+
"message": "fix(connector): remove card name as non mandatore field in sdk",
|
| 15 |
+
"author": "nihtin",
|
| 16 |
+
"date": "2025-11-06T07:11:24+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/5f8396953304c2dede2e90aefd737aa6503657c8"
|
| 18 |
+
}
|
| 19 |
+
]
|
| 20 |
+
}
|
prs/pr_10161.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10161,
|
| 3 |
+
"title": "fix(connectors): [Adyen] use single source of shopper ref",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nUse single source for shopper reference creation in adyen tansformers.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nThis is required to fix the failing MIT of non migrated payment methods through adyen\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nCurls to test:\r\n1. CIT through HS\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_LlxOUvsA1qOzLzPDByyPmiIzg3XeVFu1y' \\\r\n--data-raw '{\r\n \"amount\": 3545,\r\n \"currency\": \"EUR\",\r\n \r\n \"profile_id\":\"pro_tGh9Y64rs7HzZlxirWXT\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": { \r\n \"card\": {\r\n \"card_number\": \"4111 1111 4555 1142\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"three_ds\",\r\n \"setup_future_usage\": \"off_session\", \r\n \"customer\": {\r\n \"id\": \"mrudulabc\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customerssh@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"country\": \"BR\",\r\n \"zip\": \"94122\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"BR\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 3545,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"128.0.0.1\"\r\n },\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\":\"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\":\"127.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"payment_link\": false,\r\n \"payment_link_config\": { \r\n \"theme\": \"\",\r\n \"logo\": \"\",\r\n \"seller_name\": \"\",\r\n \"sdk_layout\": \"\",\r\n \"display_sdk_only\": false,\r\n \"enabled_saved_payment_method\": false\r\n },\r\n \"payment_type\": \"normal\", \r\n \"request_incremental_authorization\": false,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"session_expiry\": 900 \r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_FdDGgxNpb7LjJWSS4lUx\",\"merchant_id\":\"merchant_1762441338\",\"status\":\"succeeded\",\"amount\":3545,\"net_amount\":3545,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":3545,\"connector\":\"adyen\",\"client_secret\":\"pay_FdDGgxNpb7LjJWSS4lUx_secret_BcNWt3Ksgsuw2xYHMlzz\",\"created\":\"2025-11-06T15:35:52.267Z\",\"currency\":\"EUR\",\"customer_id\":\"mrudulabc\",\"customer\":{\"id\":\"mrudulabc\",\"name\":\"John Doe\",\"email\":\"customerssh@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"off_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"1142\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"30\",\"card_holder_name\":null,\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":3545,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customerssh@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"mrudulabc\",\"created_at\":1762443352,\"expires\":1762446952,\"secret\":\"epk_3485be778e784e95a1843aae59a88d9c\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"W7ZCST9PT3K7ZG75\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":{\"apple_pay\":null,\"airwallex\":null,\"noon\":{\"order_category\":\"pay\"},\"braintree\":null,\"adyen\":null},\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"pay_FdDGgxNpb7LjJWSS4lUx_1\",\"payment_link\":null,\"profile_id\":\"pro_tGh9Y64rs7HzZlxirWXT\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_RdPEsDlz2LCe8w7Q7cJl\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-11-06T15:50:52.267Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"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\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":\"pm_8xoIvIFT8lhBU3RMTghY\",\"network_transaction_id\":\"308268683698308\",\"payment_method_status\":\"active\",\"updated\":\"2025-11-06T15:35:56.671Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"extended_authorization_last_applied_at\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":\"XF7XWMVBXXB9KX65\",\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null,\"is_stored_credential\":null,\"mit_category\":null}\r\n```\r\n\r\n2. MIT of CIT created from hs:\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_LlxOUvsA1qOzLzPM4ZlJPYkDdJbWPwYtpK6vIf0Jq5emedDByyPmiIzg3XeVFu1y' \\\r\n--data '{\r\n \"amount\": 65,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"customer_id\": \"mrudulabc\",\r\n \"profile_id\": \"pro_tGh9Y64rs7HzZlxirWXT\",\r\n \r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"pm_8xoIvIFT8lhBU3RMTghY\"\r\n },\r\n \"off_session\": true\r\n}'\r\n```\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_ylIgw6cjJLRBlQlqoOc7\",\"merchant_id\":\"merchant_1762441338\",\"status\":\"succeeded\",\"amount\":65,\"net_amount\":65,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":65,\"connector\":\"adyen\",\"client_secret\":\"pay_ylIgw6cjJLRBlQlqoOc7_secret_Vcc3qpFoXd4pAuDi8vwy\",\"created\":\"2025-11-06T15:37:52.900Z\",\"currency\":\"EUR\",\"customer_id\":\"mrudulabc\",\"customer\":{\"id\":\"mrudulabc\",\"name\":\"John Doe\",\"email\":\"customerssh@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":true,\"capture_on\":null,\"capture_method\":null,\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"1142\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"30\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":\"customerssh@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":null,\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"mrudulabc\",\"created_at\":1762443472,\"expires\":1762447072,\"secret\":\"epk_acd145ff5f7540f4953a7c3788ff249c\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"P3B5NPJFD2WKTH65\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"pay_ylIgw6cjJLRBlQlqoOc7_1\",\"payment_link\":null,\"profile_id\":\"pro_tGh9Y64rs7HzZlxirWXT\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_RdPEsDlz2LCe8w7Q7cJl\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-11-06T15:52:52.900Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_channel\":null,\"payment_method_id\":\"pm_8xoIvIFT8lhBU3RMTghY\",\"network_transaction_id\":\"570468530527515\",\"payment_method_status\":\"active\",\"updated\":\"2025-11-06T15:37:55.748Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"extended_authorization_last_applied_at\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":null,\"order_tax_amount\":null,\"connector_mandate_id\":\"XF7XWMVBXXB9KX65\",\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null,\"is_stored_credential\":true,\"mit_category\":null}\r\n```\r\n3. Migrate a new payment method of existing merchant:\r\n```\r\ncurl --location 'http://localhost:8080/payment_methods/migrate-batch' \\\r\n--header 'api-key: test_admin' \\\r\n--form 'file=@\"/Users/mrudul.vajpayee/Downloads/update_sample.csv\"' \\\r\n--form 'merchant_id=\"merchant_1762441338\"' \\\r\n--form 'merchant_connector_ids=\"mca_RdPEsDlz2LCe8w7Q7cJl\"'\r\n```\r\nfile involved: \r\n[update_sample.csv](https://github.com/user-attachments/files/23396613/update_sample.csv)\r\n\r\n\r\n4. Update the existing customer\r\n```\r\ncurl --location 'http://localhost:8080/payment_methods/update-batch' \\\r\n--header 'api-key: test_admin' \\\r\n--form 'file=@\"/Users/mrudul.vajpayee/Downloads/update_check.csv\"' \\\r\n--form 'merchant_id=\"merchant_1762441338\"'\r\n```\r\nfile involved: \r\n[update_check.csv](https://github.com/user-attachments/files/23396620/update_check.csv)\r\n\r\nResponse:\r\n```\r\n[{\"payment_method_id\":\"pm_yn8eLEamKhzcC1gwNIS3\",\"status\":\"active\",\"network_transaction_id\":null,\"connector_mandate_details\":{\"mca_RdPEsDlz2LCe8w7Q7cJl\":{\"payment_method_type\":\"credit\",\"connector_mandate_id\":\"ABCPHGSJ1JMGWCDH4\",\"original_payment_authorized_amount\":null,\"original_payment_authorized_currency\":null}},\"update_status\":\"Success\",\"updated_payment_method_data\":false,\"connector_customer\":{\"mca_RdPEsDlz2LCe8w7Q7cJl\":\"mrudulabc\"},\"line_number\":1}]\r\n```\r\n\r\nShopper reference for migrated MIT:\r\n<img width=\"1728\" height=\"593\" alt=\"image\" src=\"https://github.com/user-attachments/assets/49673a4b-4b12-4d9c-a43c-283f2288dccf\" />\r\n\r\nShopper reference for non migrated MIT:\r\n<img width=\"1728\" height=\"593\" alt=\"image\" src=\"https://github.com/user-attachments/assets/1ec17af0-17df-47e2-97ac-4b0209abce20\" />\r\n\r\nNew CIT with same customer:\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_LlxOUvsA1qOzLzPM4ZlJPYkDdJbWPwYtpK6vIf0Jq5emedDByyPmiIzg3XeVFu1y' \\\r\n--data-raw '{\r\n \"amount\": 3545,\r\n \"currency\": \"EUR\",\r\n \r\n \"profile_id\":\"pro_tGh9Y64rs7HzZlxirWXT\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": { \r\n \"card\": {\r\n \"card_number\": \"4111 1111 1111 1111\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"three_ds\",\r\n \"setup_future_usage\": \"off_session\", \r\n \"customer\": {\r\n \"id\": \"mrudulabc\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customerssh@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"country\": \"BR\",\r\n \"zip\": \"94122\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"BR\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 3545,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\r\n \r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"128.0.0.1\"\r\n },\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\":\"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\":\"127.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"payment_link\": false,\r\n \"payment_link_config\": { \r\n \"theme\": \"\",\r\n \"logo\": \"\",\r\n \"seller_name\": \"\",\r\n \"sdk_layout\": \"\",\r\n \"display_sdk_only\": false,\r\n \"enabled_saved_payment_method\": false\r\n },\r\n \"payment_type\": \"normal\", \r\n \"request_incremental_authorization\": false,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"session_expiry\": 900 \r\n \r\n}'\r\n```\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_wVxenmFuagzO9wZTonDc\",\"merchant_id\":\"merchant_1762441338\",\"status\":\"succeeded\",\"amount\":3545,\"net_amount\":3545,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":3545,\"connector\":\"adyen\",\"client_secret\":\"pay_wVxenmFuagzO9wZTonDc_secret_xP8kZZSjgRg9DQmQVUNz\",\"created\":\"2025-11-06T15:52:24.451Z\",\"currency\":\"EUR\",\"customer_id\":\"mrudulabc\",\"customer\":{\"id\":\"mrudulabc\",\"name\":\"John Doe\",\"email\":\"customerssh@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"off_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"1111\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"30\",\"card_holder_name\":null,\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":3545,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customerssh@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"mrudulabc\",\"created_at\":1762444344,\"expires\":1762447944,\"secret\":\"epk_583d516c7911487a9f22b119e00e64b7\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"JZDST5BPT3K7ZG75\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":{\"apple_pay\":null,\"airwallex\":null,\"noon\":{\"order_category\":\"pay\"},\"braintree\":null,\"adyen\":null},\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"pay_wVxenmFuagzO9wZTonDc_1\",\"payment_link\":null,\"profile_id\":\"pro_tGh9Y64rs7HzZlxirWXT\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_RdPEsDlz2LCe8w7Q7cJl\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-11-06T16:07:24.451Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"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\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":\"pm_USXGW2Amc1bLPtCFdIHJ\",\"network_transaction_id\":\"195924455631246\",\"payment_method_status\":\"active\",\"updated\":\"2025-11-06T15:52:27.222Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"extended_authorization_last_applied_at\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":\"RH45TZ6JLNQRSV75\",\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null,\"is_stored_credential\":null,\"mit_category\":null}\r\n```\r\n<img width=\"1728\" height=\"854\" alt=\"image\" src=\"https://github.com/user-attachments/assets/f7ba01a0-3367-402d-8c96-0f1ca3d26142\" />\r\n\r\nMIT for new CIT:\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_LlxOUvsA1qOzLzPM4ZlJPYkDdJbWPwYtpK6vIf0Jq5emedDByyPmiIzg3XeVFu1y' \\\r\n--data '{\r\n \"amount\": 65,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"customer_id\": \"mrudulabc\",\r\n \"profile_id\": \"pro_tGh9Y64rs7HzZlxirWXT\",\r\n \r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"pm_USXGW2Amc1bLPtCFdIHJ\"\r\n },\r\n \"off_session\": true\r\n}'\r\n```\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_jLwsjVfmwlSzWZnRWHwI\",\"merchant_id\":\"merchant_1762441338\",\"status\":\"succeeded\",\"amount\":65,\"net_amount\":65,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":65,\"connector\":\"adyen\",\"client_secret\":\"pay_jLwsjVfmwlSzWZnRWHwI_secret_MZm2fquVLvFJ5DTTMvQY\",\"created\":\"2025-11-06T15:56:25.415Z\",\"currency\":\"EUR\",\"customer_id\":\"mrudulabc\",\"customer\":{\"id\":\"mrudulabc\",\"name\":\"John Doe\",\"email\":\"customerssh@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":true,\"capture_on\":null,\"capture_method\":null,\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"1111\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"30\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":\"customerssh@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":null,\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"mrudulabc\",\"created_at\":1762444585,\"expires\":1762448185,\"secret\":\"epk_3e497a0aca3946d5a3dd6b4fae0ed137\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"J3ZR477FZBWD2HV5\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"pay_jLwsjVfmwlSzWZnRWHwI_1\",\"payment_link\":null,\"profile_id\":\"pro_tGh9Y64rs7HzZlxirWXT\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_RdPEsDlz2LCe8w7Q7cJl\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-11-06T16:11:25.415Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_channel\":null,\"payment_method_id\":\"pm_USXGW2Amc1bLPtCFdIHJ\",\"network_transaction_id\":\"710115869040241\",\"payment_method_status\":\"active\",\"updated\":\"2025-11-06T15:56:29.412Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"extended_authorization_last_applied_at\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":null,\"order_tax_amount\":null,\"connector_mandate_id\":\"RH45TZ6JLNQRSV75\",\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null,\"is_stored_credential\":true,\"mit_category\":null}\r\n```\r\n<img width=\"1728\" height=\"854\" alt=\"image\" src=\"https://github.com/user-attachments/assets/1dda1576-503a-4e7f-b37e-1560bfdd3182\" />\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "mrudulvajpayee4935",
|
| 6 |
+
"created_at": "2025-11-06T15:35:00+00:00",
|
| 7 |
+
"merged_at": "2025-11-06T17:07:00+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-connector-compatibility"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10161",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "84cca4d0c6c41e64acd3e5aed54e504fa15b6f32",
|
| 16 |
+
"message": "use single source of shopper ref",
|
| 17 |
+
"author": "Mrudul Vajpayee",
|
| 18 |
+
"date": "2025-11-06T15:31:09+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/84cca4d0c6c41e64acd3e5aed54e504fa15b6f32"
|
| 20 |
+
}
|
| 21 |
+
]
|
| 22 |
+
}
|
prs/pr_10164.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10164,
|
| 3 |
+
"title": "chore(router): adding cache for client creation based on proxy",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\nReference -> https://github.com/juspay/hyperswitch/pull/10158\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nProblem\r\n\r\n Fixed critical issue where HTTP clients were using stale proxy configurations due to static DEFAULT_CLIENT caching. This prevented dynamic proxy changes from taking effect during shadow rollout operations, causing \"override proxy is\r\n selected yet not being passed on\" behavior.\r\n\r\n Root Cause: The existing DEFAULT_CLIENT used OnceCell::get_or_try_init() which initializes once and never refreshes, ignoring proxy configuration changes in session state.\r\n\r\nSolution\r\n\r\n Implemented a two-tier caching system with trait-based cache key generation:\r\n\r\n 1. Preserved DEFAULT_CLIENT for non-proxy scenarios (performance optimization)\r\n 2. Added PROXY_CLIENT_CACHE - HashMap-based caching for proxy-specific clients\r\n 3. Implemented ProxyClientCacheKey trait for clean cache key generation\r\n 4. Dynamic client selection based on proxy configuration presence\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\nNew Metrics:\r\n - HTTP_CLIENT_CREATED{client_type=\"proxy|default\"} - Track new client creation\r\n - HTTP_CLIENT_CACHE_HIT{client_type=\"proxy|default\"} - Monitor cache efficiency\r\n - HTTP_CLIENT_CACHE_MISS{client_type=\"proxy|default\"} - Identify when new clients are needed\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nWith Proxy hash creation and the using \r\n```bash\r\n 2025-11-07T07:17:01.119868Z DEBUG external_services::http_client::client: Generating cache key for proxy config: (Some(\"http://localhost:8081\"), Some(\"http://localhost:8081\"), None, true)\r\n at crates/external_services/src/http_client/client.rs:195\r\n in external_services::http_client::send_request\r\n in hyperswitch_interfaces::api_client::call_connector_api\r\n in hyperswitch_interfaces::api_client::execute_connector_processing_step with connector_name: \"stripe\", payment_method: \"card\"\r\n in router::core::payments::call_connector_service\r\n in router::core::payments::helpers::process_through_direct_with_shadow_unified_connector_service\r\n in router::core::payments::decide_unified_connector_service_call\r\n in router::core::payments::payments_operation_core with merchant_id: \"merchant_1762499398\", payment_id: \"payment_intent_id = \\\"pay_QOWoWUPX3Jjn1MvcBsVp\\\"\"\r\n in router::services::api::server_wrap_util with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_QOWoWUPX3Jjn1MvcBsVp\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, merchant_id: \"merchant_1762499398\"\r\n in router::services::api::server_wrap with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_QOWoWUPX3Jjn1MvcBsVp\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, request_method: \"POST\", request_url_path: \"/payments\"\r\n in router::routes::payments::payments_create with flow: PaymentsCreate, payment_id: \"pay_QOWoWUPX3Jjn1MvcBsVp\"\r\n in router::middleware::ROOT_SPAN with flow: \"UNKNOWN\", tenant_id: \"public\", tenant_id: \"public\"\r\n\r\n 2025-11-07T07:17:01.119929Z DEBUG external_services::http_client::client: Generated cache key: proxy_c2190d674105290f\r\n at crates/external_services/src/http_client/client.rs:203\r\n in external_services::http_client::send_request\r\n in hyperswitch_interfaces::api_client::call_connector_api\r\n in hyperswitch_interfaces::api_client::execute_connector_processing_step with connector_name: \"stripe\", payment_method: \"card\"\r\n in router::core::payments::call_connector_service\r\n in router::core::payments::helpers::process_through_direct_with_shadow_unified_connector_service\r\n in router::core::payments::decide_unified_connector_service_call\r\n in router::core::payments::payments_operation_core with merchant_id: \"merchant_1762499398\", payment_id: \"payment_intent_id = \\\"pay_QOWoWUPX3Jjn1MvcBsVp\\\"\"\r\n in router::services::api::server_wrap_util with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_QOWoWUPX3Jjn1MvcBsVp\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, merchant_id: \"merchant_1762499398\"\r\n in router::services::api::server_wrap with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_QOWoWUPX3Jjn1MvcBsVp\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, request_method: \"POST\", request_url_path: \"/payments\"\r\n in router::routes::payments::payments_create with flow: PaymentsCreate, payment_id: \"pay_QOWoWUPX3Jjn1MvcBsVp\"\r\n in router::middleware::ROOT_SPAN with flow: \"UNKNOWN\", tenant_id: \"public\", tenant_id: \"public\"\r\n\r\n 2025-11-07T07:17:01.119971Z DEBUG external_services::http_client::client: Using proxy-specific client cache with key: proxy_c2190d674105290f\r\n at crates/external_services/src/http_client/client.rs:216\r\n in external_services::http_client::send_request\r\n in hyperswitch_interfaces::api_client::call_connector_api\r\n in hyperswitch_interfaces::api_client::execute_connector_processing_step with connector_name: \"stripe\", payment_method: \"card\"\r\n in router::core::payments::call_connector_service\r\n in router::core::payments::helpers::process_through_direct_with_shadow_unified_connector_service\r\n in router::core::payments::decide_unified_connector_service_call\r\n in router::core::payments::payments_operation_core with merchant_id: \"merchant_1762499398\", payment_id: \"payment_intent_id = \\\"pay_QOWoWUPX3Jjn1MvcBsVp\\\"\"\r\n in router::services::api::server_wrap_util with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_QOWoWUPX3Jjn1MvcBsVp\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, merchant_id: \"merchant_1762499398\"\r\n in router::services::api::server_wrap with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_QOWoWUPX3Jjn1MvcBsVp\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, request_method: \"POST\", request_url_path: \"/payments\"\r\n in router::routes::payments::payments_create with flow: PaymentsCreate, payment_id: \"pay_QOWoWUPX3Jjn1MvcBsVp\"\r\n in router::middleware::ROOT_SPAN with flow: \"UNKNOWN\", tenant_id: \"public\", tenant_id: \"public\"\r\n\r\n 2025-11-07T07:17:01.120005Z INFO external_services::http_client::client: Creating new proxy client for key: proxy_c2190d674105290f (http_proxy: Some(\"http://localhost:8081\"), https_proxy: Some(\"http://localhost:8081\"))\r\n at crates/external_services/src/http_client/client.rs:233\r\n in external_services::http_client::send_request\r\n in hyperswitch_interfaces::api_client::call_connector_api\r\n in hyperswitch_interfaces::api_client::execute_connector_processing_step with connector_name: \"stripe\", payment_method: \"card\"\r\n in router::core::payments::call_connector_service\r\n in router::core::payments::helpers::process_through_direct_with_shadow_unified_connector_service\r\n in router::core::payments::decide_unified_connector_service_call\r\n in router::core::payments::payments_operation_core with merchant_id: \"merchant_1762499398\", payment_id: \"payment_intent_id = \\\"pay_QOWoWUPX3Jjn1MvcBsVp\\\"\"\r\n in router::services::api::server_wrap_util with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_QOWoWUPX3Jjn1MvcBsVp\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, merchant_id: \"merchant_1762499398\"\r\n in router::services::api::server_wrap with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_QOWoWUPX3Jjn1MvcBsVp\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, request_method: \"POST\", request_url_path: \"/payments\"\r\n in router::routes::payments::payments_create with flow: PaymentsCreate, payment_id: \"pay_QOWoWUPX3Jjn1MvcBsVp\"\r\n in router::middleware::ROOT_SPAN with flow: \"UNKNOWN\", tenant_id: \"public\", tenant_id: \"public\"\r\n\r\n```\r\n\r\n\r\n\r\nWith Proxy hash using ( means already present )\r\n```bash\r\n 2025-11-07T07:14:34.822955Z DEBUG external_services::http_client::client: Generating cache key for proxy config: (None, None, None, true)\r\n at crates/external_services/src/http_client/client.rs:195\r\n in external_services::http_client::send_request\r\n in hyperswitch_interfaces::api_client::call_connector_api\r\n in hyperswitch_interfaces::api_client::execute_connector_processing_step with connector_name: \"stripe\", payment_method: \"card\"\r\n in router::core::payments::call_connector_service\r\n in router::core::payments::helpers::process_through_direct\r\n in router::core::payments::decide_unified_connector_service_call\r\n in router::core::payments::payments_operation_core with merchant_id: \"merchant_1762499398\", payment_id: \"payment_intent_id = \\\"pay_eMI2zG8MxYVmQUhytw5q\\\"\"\r\n in router::services::api::server_wrap_util with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, merchant_id: \"merchant_1762499398\"\r\n in router::services::api::server_wrap with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, request_method: \"POST\", request_url_path: \"/payments\"\r\n in router::routes::payments::payments_create with flow: PaymentsCreate, payment_id: \"pay_eMI2zG8MxYVmQUhytw5q\"\r\n in router::middleware::ROOT_SPAN with flow: \"UNKNOWN\", tenant_id: \"public\", tenant_id: \"public\"\r\n\r\n 2025-11-07T07:14:34.822975Z DEBUG external_services::http_client::client: Generated cache key: proxy_4f97802cc683b847\r\n at crates/external_services/src/http_client/client.rs:203\r\n in external_services::http_client::send_request\r\n in hyperswitch_interfaces::api_client::call_connector_api\r\n in hyperswitch_interfaces::api_client::execute_connector_processing_step with connector_name: \"stripe\", payment_method: \"card\"\r\n in router::core::payments::call_connector_service\r\n in router::core::payments::helpers::process_through_direct\r\n in router::core::payments::decide_unified_connector_service_call\r\n in router::core::payments::payments_operation_core with merchant_id: \"merchant_1762499398\", payment_id: \"payment_intent_id = \\\"pay_eMI2zG8MxYVmQUhytw5q\\\"\"\r\n in router::services::api::server_wrap_util with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, merchant_id: \"merchant_1762499398\"\r\n in router::services::api::server_wrap with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, request_method: \"POST\", request_url_path: \"/payments\"\r\n in router::routes::payments::payments_create with flow: PaymentsCreate, payment_id: \"pay_eMI2zG8MxYVmQUhytw5q\"\r\n in router::middleware::ROOT_SPAN with flow: \"UNKNOWN\", tenant_id: \"public\", tenant_id: \"public\"\r\n\r\n 2025-11-07T07:14:34.822991Z DEBUG external_services::http_client::client: Using proxy-specific client cache with key: proxy_4f97802cc683b847\r\n at crates/external_services/src/http_client/client.rs:216\r\n in external_services::http_client::send_request\r\n in hyperswitch_interfaces::api_client::call_connector_api\r\n in hyperswitch_interfaces::api_client::execute_connector_processing_step with connector_name: \"stripe\", payment_method: \"card\"\r\n in router::core::payments::call_connector_service\r\n in router::core::payments::helpers::process_through_direct\r\n in router::core::payments::decide_unified_connector_service_call\r\n in router::core::payments::payments_operation_core with merchant_id: \"merchant_1762499398\", payment_id: \"payment_intent_id = \\\"pay_eMI2zG8MxYVmQUhytw5q\\\"\"\r\n in router::services::api::server_wrap_util with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, merchant_id: \"merchant_1762499398\"\r\n in router::services::api::server_wrap with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, request_method: \"POST\", request_url_path: \"/payments\"\r\n in router::routes::payments::payments_create with flow: PaymentsCreate, payment_id: \"pay_eMI2zG8MxYVmQUhytw5q\"\r\n in router::middleware::ROOT_SPAN with flow: \"UNKNOWN\", tenant_id: \"public\", tenant_id: \"public\" 2025-11-07T07:14:34.822955Z DEBUG external_services::http_client::client: Generating cache key for proxy config: (None, None, None, true)\r\n at crates/external_services/src/http_client/client.rs:195\r\n in external_services::http_client::send_request\r\n in hyperswitch_interfaces::api_client::call_connector_api\r\n in hyperswitch_interfaces::api_client::execute_connector_processing_step with connector_name: \"stripe\", payment_method: \"card\"\r\n in router::core::payments::call_connector_service\r\n in router::core::payments::helpers::process_through_direct\r\n in router::core::payments::decide_unified_connector_service_call\r\n in router::core::payments::payments_operation_core with merchant_id: \"merchant_1762499398\", payment_id: \"payment_intent_id = \\\"pay_eMI2zG8MxYVmQUhytw5q\\\"\"\r\n in router::services::api::server_wrap_util with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, merchant_id: \"merchant_1762499398\"\r\n in router::services::api::server_wrap with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, request_method: \"POST\", request_url_path: \"/payments\"\r\n in router::routes::payments::payments_create with flow: PaymentsCreate, payment_id: \"pay_eMI2zG8MxYVmQUhytw5q\"\r\n in router::middleware::ROOT_SPAN with flow: \"UNKNOWN\", tenant_id: \"public\", tenant_id: \"public\"\r\n\r\n 2025-11-07T07:14:34.822975Z DEBUG external_services::http_client::client: Generated cache key: proxy_4f97802cc683b847\r\n at crates/external_services/src/http_client/client.rs:203\r\n in external_services::http_client::send_request\r\n in hyperswitch_interfaces::api_client::call_connector_api\r\n in hyperswitch_interfaces::api_client::execute_connector_processing_step with connector_name: \"stripe\", payment_method: \"card\"\r\n in router::core::payments::call_connector_service\r\n in router::core::payments::helpers::process_through_direct\r\n in router::core::payments::decide_unified_connector_service_call\r\n in router::core::payments::payments_operation_core with merchant_id: \"merchant_1762499398\", payment_id: \"payment_intent_id = \\\"pay_eMI2zG8MxYVmQUhytw5q\\\"\"\r\n in router::services::api::server_wrap_util with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, merchant_id: \"merchant_1762499398\"\r\n in router::services::api::server_wrap with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, request_method: \"POST\", request_url_path: \"/payments\"\r\n in router::routes::payments::payments_create with flow: PaymentsCreate, payment_id: \"pay_eMI2zG8MxYVmQUhytw5q\"\r\n in router::middleware::ROOT_SPAN with flow: \"UNKNOWN\", tenant_id: \"public\", tenant_id: \"public\"\r\n\r\n 2025-11-07T07:14:34.822991Z DEBUG external_services::http_client::client: Using proxy-specific client cache with key: proxy_4f97802cc683b847\r\n at crates/external_services/src/http_client/client.rs:216\r\n in external_services::http_client::send_request\r\n in hyperswitch_interfaces::api_client::call_connector_api\r\n in hyperswitch_interfaces::api_client::execute_connector_processing_step with connector_name: \"stripe\", payment_method: \"card\"\r\n in router::core::payments::call_connector_service\r\n in router::core::payments::helpers::process_through_direct\r\n in router::core::payments::decide_unified_connector_service_call\r\n in router::core::payments::payments_operation_core with merchant_id: \"merchant_1762499398\", payment_id: \"payment_intent_id = \\\"pay_eMI2zG8MxYVmQUhytw5q\\\"\"\r\n in router::services::api::server_wrap_util with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, merchant_id: \"merchant_1762499398\"\r\n in router::services::api::server_wrap with flow: PaymentsCreate, lock_action: HoldMultiple { inputs: [LockingInput { unique_locking_key: \"pay_eMI2zG8MxYVmQUhytw5q\", api_identifier: Payments, override_lock_retries: None }, LockingInput { unique_locking_key: \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\", api_identifier: Payments, override_lock_retries: None }] }, request_method: \"POST\", request_url_path: \"/payments\"\r\n in router::routes::payments::payments_create with flow: PaymentsCreate, payment_id: \"pay_eMI2zG8MxYVmQUhytw5q\"\r\n in router::middleware::ROOT_SPAN with flow: \"UNKNOWN\", tenant_id: \"public\", tenant_id: \"public\"\r\n```\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nStep : Create Merchant\r\n\r\nRequest\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/accounts' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'x-feature: integ-custom' \\\r\n--header 'x-tenant-id: public' \\\r\n--header 'api-key: \u2022\u2022\u2022\u2022\u2022\u2022' \\\r\n--data-raw '{\r\n \"merchant_id\": \"merchant_1762438709\",\r\n \"locker_id\": \"m0010\",\r\n \"merchant_name\": \"NewAge Retailer\",\r\n \"merchant_details\": {\r\n \"primary_contact_person\": \"John Test\",\r\n \"primary_email\": \"JohnTest@test.com\",\r\n \"primary_phone\": \"sunt laborum\",\r\n \"secondary_contact_person\": \"John Test2\",\r\n \"secondary_email\": \"JohnTest2@test.com\",\r\n \"secondary_phone\": \"cillum do dolor id\",\r\n \"website\": \"https://www.example.com\",\r\n \"about_business\": \"Online Retail with a wide selection of organic products for North America\",\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\"\r\n }\r\n },\r\n \"return_url\": \"https://google.com/success\",\r\n \"webhook_details\": {\r\n \"webhook_version\": \"1.0.1\",\r\n \"webhook_username\": \"ekart_retail\",\r\n \"webhook_password\": \"password_ekart@123\",\r\n \"payment_created_enabled\": true,\r\n \"payment_succeeded_enabled\": true,\r\n \"payment_failed_enabled\": true\r\n },\r\n \"sub_merchants_enabled\": false,\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"primary_business_details\": [\r\n {\r\n \"country\": \"US\",\r\n \"business\": \"default\"\r\n }\r\n ]\r\n}'\r\n```\r\n\r\n```json\r\n{\r\n \"merchant_id\": \"merchant_1762438484\",\r\n \"merchant_name\": \"NewAge Retailer\",\r\n \"return_url\": \"https://google.com/success\",\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"8ZjNS3jchgKHbM4HbtyGP7x4Hkh5qHbKeZWHz0zanEkhgHeAT8Hp9NhgRJpYRavB\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"merchant_details\": {\r\n \"primary_contact_person\": \"John Test\",\r\n \"primary_phone\": \"sunt laborum\",\r\n \"primary_email\": \"JohnTest@test.com\",\r\n \"secondary_contact_person\": \"John Test2\",\r\n \"secondary_phone\": \"cillum do dolor id\",\r\n \"secondary_email\": \"JohnTest2@test.com\",\r\n \"website\": \"https://www.example.com\",\r\n \"about_business\": \"Online Retail with a wide selection of organic products for North America\",\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"merchant_tax_registration_id\": null\r\n },\r\n \"webhook_details\": {\r\n \"webhook_version\": \"1.0.1\",\r\n \"webhook_username\": \"ekart_retail\",\r\n \"webhook_password\": \"password_ekart@123\",\r\n \"webhook_url\": null,\r\n \"payment_created_enabled\": true,\r\n \"payment_succeeded_enabled\": true,\r\n \"payment_failed_enabled\": true,\r\n \"payment_statuses_enabled\": null,\r\n \"refund_statuses_enabled\": null,\r\n \"payout_statuses_enabled\": null\r\n },\r\n \"payout_routing_algorithm\": null,\r\n \"sub_merchants_enabled\": false,\r\n \"parent_merchant_id\": null,\r\n \"publishable_key\": \"pk_dev_93759f837190421a991b391d4d0a2459\",\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\",\r\n \"compatible_connector\": null\r\n },\r\n \"locker_id\": \"m0010\",\r\n \"primary_business_details\": [\r\n {\r\n \"country\": \"US\",\r\n \"business\": \"default\"\r\n }\r\n ],\r\n \"frm_routing_algorithm\": null,\r\n \"organization_id\": \"org_UU4xe4bGxITktDMubHxh\",\r\n \"is_recon_enabled\": false,\r\n \"default_profile\": \"pro_NMRMyorRrkVa7d4MuKxm\",\r\n \"recon_status\": \"not_requested\",\r\n \"pm_collect_link_config\": null,\r\n \"product_type\": \"orchestration\",\r\n \"merchant_account_type\": \"standard\"\r\n}\r\n```\r\n\r\nStep : Create API Key for the Merchant\r\n\r\nRequest\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/api_keys/merchant_1762438484' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'x-tenant-id: public' \\\r\n--header 'api-key: ADMIN_API_KEY' \\\r\n--data '{\r\n \"name\": \"API Key 1\",\r\n \"description\": null,\r\n \"expiration\": \"2038-01-19T03:14:08.000Z\"\r\n}'\r\n```\r\n\r\n```json\r\n{\r\n \"key_id\": \"dev_EKTFoIz6GDBzPz6zcWzC\",\r\n \"merchant_id\": \"merchant_1762438484\",\r\n \"name\": \"API Key 1\",\r\n \"description\": null,\r\n \"api_key\": \"{API_KEY}\",\r\n \"created\": \"2025-11-06T14:14:51.195Z\",\r\n \"expiration\": \"2038-01-19T03:14:08.000Z\"\r\n}\r\n```\r\n\r\nStep : Create Profile\r\n\r\nRequest\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1762438484/business_profile' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-tenant-id: public' \\\r\n--header 'api-key: {API_KEY}' \\\r\n--data '{\r\n \"profile_name\": \"food\"\r\n}'\r\n```\r\n\r\n```json\r\n{\r\n \"merchant_id\": \"merchant_1762438484\",\r\n \"profile_id\": \"pro_klmBzBENeTwXe7sj1Aar\",\r\n \"profile_name\": \"food\",\r\n \"return_url\": \"https://google.com/success\",\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"8ZjNS3jchgKHbM4HbtyGP7x4Hkh5qHbKeZWHz0zanEkhgHeAT8Hp9NhgRJpYRavB\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"webhook_details\": {\r\n \"webhook_version\": \"1.0.1\",\r\n \"webhook_username\": \"ekart_retail\",\r\n \"webhook_password\": \"password_ekart@123\",\r\n \"webhook_url\": null,\r\n \"payment_created_enabled\": true,\r\n \"payment_succeeded_enabled\": true,\r\n \"payment_failed_enabled\": true,\r\n \"payment_statuses_enabled\": null,\r\n \"refund_statuses_enabled\": null,\r\n \"payout_statuses_enabled\": null\r\n },\r\n \"metadata\": null,\r\n \"routing_algorithm\": null,\r\n \"intent_fulfillment_time\": 900,\r\n \"frm_routing_algorithm\": null,\r\n \"payout_routing_algorithm\": null,\r\n \"applepay_verified_domains\": null,\r\n \"session_expiry\": 900,\r\n \"payment_link_config\": null,\r\n \"authentication_connector_details\": null,\r\n \"use_billing_as_payment_method_billing\": true,\r\n \"extended_card_info_config\": null,\r\n \"collect_shipping_details_from_wallet_connector\": false,\r\n \"collect_billing_details_from_wallet_connector\": false,\r\n \"always_collect_shipping_details_from_wallet_connector\": false,\r\n \"always_collect_billing_details_from_wallet_connector\": false,\r\n \"is_connector_agnostic_mit_enabled\": false,\r\n \"payout_link_config\": null,\r\n \"outgoing_webhook_custom_http_headers\": null,\r\n \"tax_connector_id\": null,\r\n \"is_tax_connector_enabled\": false,\r\n \"is_network_tokenization_enabled\": false,\r\n \"is_auto_retries_enabled\": false,\r\n \"max_auto_retries_enabled\": null,\r\n \"always_request_extended_authorization\": null,\r\n \"is_click_to_pay_enabled\": false,\r\n \"authentication_product_ids\": null,\r\n \"card_testing_guard_config\": {\r\n \"card_ip_blocking_status\": \"disabled\",\r\n \"card_ip_blocking_threshold\": 3,\r\n \"guest_user_card_blocking_status\": \"disabled\",\r\n \"guest_user_card_blocking_threshold\": 10,\r\n \"customer_id_blocking_status\": \"disabled\",\r\n \"customer_id_blocking_threshold\": 5,\r\n \"card_testing_guard_expiry\": 3600\r\n },\r\n \"is_clear_pan_retries_enabled\": false,\r\n \"force_3ds_challenge\": false,\r\n \"is_debit_routing_enabled\": false,\r\n \"merchant_business_country\": null,\r\n \"is_pre_network_tokenization_enabled\": false,\r\n \"acquirer_configs\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_category_code\": null,\r\n \"merchant_country_code\": null,\r\n \"dispute_polling_interval\": null,\r\n \"is_manual_retry_enabled\": null,\r\n \"always_enable_overcapture\": null,\r\n \"is_external_vault_enabled\": \"skip\",\r\n \"external_vault_connector_details\": null,\r\n \"billing_processor_id\": null,\r\n \"is_l2_l3_enabled\": false\r\n}\r\n```\r\n\r\n\r\nStep : Create a new connector for a merchant and then make a payment using that connector.\r\nRequest\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/account/merchant_1762438484/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'x-tenant-id: public' \\\r\n--header 'api-key: {API_KEY}' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"profile_id\": \"{{profile_id}}\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"stripe_IN_default\",\r\n \"disabled\": false,\r\n \"test_mode\": true,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {},\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"{{connector_api_key}}\"\r\n },\r\n \"additional_merchant_data\": null,\r\n \"status\": \"active\",\r\n \"pm_auth_config\": null,\r\n \"connector_wallets_details\": null\r\n}'\r\n```\r\n\r\n\r\n```json\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"stripe_IN_default\",\r\n \"merchant_connector_id\": \"mca_DrFdbXKZI2XgoVnpXnc5\",\r\n \"profile_id\": \"pro_klmBzBENeTwXe7sj1Aar\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"sk*******************************************************************************************************hm\"\r\n },\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_webhook_details\": null,\r\n \"metadata\": {},\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\",\r\n \"additional_merchant_data\": null,\r\n \"connector_wallets_details\": null\r\n}\r\n```\r\n\r\n\r\n\r\nStep : Create Payment using the above created connector.\r\nRequest\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'x-profile-id: pro_klmBzBENeTwXe7sj1Aar' \\\r\n--header 'x-tenant-id: public' \\\r\n--header 'api-key: {API_KEY}' \\\r\n--data-raw '{\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"profile_id\": \"pro_klmBzBENeTwXe7sj1Aar\",\r\n \r\n \"customer_id\": \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"email\": \"mauro.morandi@nexi.it\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4111111111111111\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"billing\": {\r\n \"email\": \"mauro.morandi@nexi.it\",\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n }\r\n } \r\n}'\r\n```\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_VSuZRRcOhgMlt5JyULZ6\",\r\n \"merchant_id\": \"merchant_1762438484\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 100,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_VSuZRRcOhgMlt5JyULZ6_secret_clSQtcQA1r6RspNnWZJH\",\r\n \"created\": \"2025-11-06T14:15:41.049Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\",\r\n \"customer\": {\r\n \"id\": \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\",\r\n \"name\": null,\r\n \"email\": \"mauro.morandi@nexi.it\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1111\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": \"mauro.morandi@nexi.it\"\r\n },\r\n \"order_details\": null,\r\n \"email\": \"mauro.morandi@nexi.it\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"wertyuiuhgfcvghjkjhgfdgyuijhgfcvbhj\",\r\n \"created_at\": 1762438541,\r\n \"expires\": 1762442141,\r\n \"secret\": \"epk_ca03b5631e574160903fdc0fcc42c180\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQTyTD5R7gDAGff1CTxVr5M\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQTyTD5R7gDAGff1CTxVr5M\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_klmBzBENeTwXe7sj1Aar\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_DrFdbXKZI2XgoVnpXnc5\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-06T14:30:41.049Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"976910110049114\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-11-06T14:15:42.343Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "su-shivanshmathur",
|
| 6 |
+
"created_at": "2025-11-07T05:54:09+00:00",
|
| 7 |
+
"merged_at": "2025-11-07T12:19:55+00:00",
|
| 8 |
+
"base_branch": "hotfix-2025.10.31.2",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10164",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "4ef1f76f686d4e5311544342797853b91e40b75a",
|
| 14 |
+
"message": "Client fix for proxy change",
|
| 15 |
+
"author": "Shivansh Mathur",
|
| 16 |
+
"date": "2025-11-07T05:35:39+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/4ef1f76f686d4e5311544342797853b91e40b75a"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "c4615d6fe209240c2b12642ea1cf40a0043153a8",
|
| 21 |
+
"message": "chore: run formatter",
|
| 22 |
+
"author": "hyperswitch-bot[bot]",
|
| 23 |
+
"date": "2025-11-07T05:54:53+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/c4615d6fe209240c2b12642ea1cf40a0043153a8"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"sha": "cd64e30723e1a07b4725e3bfdfe7c3ad5cad5dbb",
|
| 28 |
+
"message": "removing early returns",
|
| 29 |
+
"author": "Shivansh Mathur",
|
| 30 |
+
"date": "2025-11-07T06:57:13+00:00",
|
| 31 |
+
"url": "https://github.com/juspay/hyperswitch/commit/cd64e30723e1a07b4725e3bfdfe7c3ad5cad5dbb"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"sha": "d5b75af4b0cda129747d925a7c4afd55a344f109",
|
| 35 |
+
"message": "read write lock change and hash for secret",
|
| 36 |
+
"author": "Shivansh Mathur",
|
| 37 |
+
"date": "2025-11-07T08:39:02+00:00",
|
| 38 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d5b75af4b0cda129747d925a7c4afd55a344f109"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"sha": "f2aab461db3a667cb9be357a45f3f0515792e846",
|
| 42 |
+
"message": "chore: run formatter",
|
| 43 |
+
"author": "hyperswitch-bot[bot]",
|
| 44 |
+
"date": "2025-11-07T08:53:01+00:00",
|
| 45 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f2aab461db3a667cb9be357a45f3f0515792e846"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"sha": "f6cf43a3fc4c68b826c823cf167cc385fe7e6f5c",
|
| 49 |
+
"message": "hash for secret",
|
| 50 |
+
"author": "Shivansh Mathur",
|
| 51 |
+
"date": "2025-11-07T10:02:39+00:00",
|
| 52 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f6cf43a3fc4c68b826c823cf167cc385fe7e6f5c"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"sha": "0476285479c9195e80bf6a3cd4d274cfa8b348a4",
|
| 56 |
+
"message": "chore: run formatter",
|
| 57 |
+
"author": "hyperswitch-bot[bot]",
|
| 58 |
+
"date": "2025-11-07T10:14:53+00:00",
|
| 59 |
+
"url": "https://github.com/juspay/hyperswitch/commit/0476285479c9195e80bf6a3cd4d274cfa8b348a4"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"sha": "23e4f235e190ed07e5effe6b0c07557ab1844fa5",
|
| 63 |
+
"message": "get_or_create_proxy_client addition",
|
| 64 |
+
"author": "Shivansh Mathur",
|
| 65 |
+
"date": "2025-11-07T10:28:52+00:00",
|
| 66 |
+
"url": "https://github.com/juspay/hyperswitch/commit/23e4f235e190ed07e5effe6b0c07557ab1844fa5"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"sha": "e6a0a1125f2756397826d1070135003a9b345b38",
|
| 70 |
+
"message": "chore: run formatter",
|
| 71 |
+
"author": "hyperswitch-bot[bot]",
|
| 72 |
+
"date": "2025-11-07T10:56:04+00:00",
|
| 73 |
+
"url": "https://github.com/juspay/hyperswitch/commit/e6a0a1125f2756397826d1070135003a9b345b38"
|
| 74 |
+
}
|
| 75 |
+
]
|
| 76 |
+
}
|
prs/pr_10165.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10165,
|
| 3 |
+
"title": "feat(connector): [stripe] add split payment support to capture, void and Setupmandate flows v1",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nSplit payment was earlier supported by stripe only through the authorization and refund flows. Now this feature is been expanded to support stripe's Capture, Void and Setupmandate flow\r\nFeature Doc:\r\nhttps://docs.hyperswitch.io/explore-hyperswitch/payment-orchestration/split-payments\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n1. The cypress test run along the PR confirms the successful sanity test of stripe\r\n2. This feature (split payments) currently doesn\u2019t have an existing Cypress test suite, so Cypress tests haven\u2019t been added as part of this change.\r\n\r\nTests Performed \r\n<details> <summary>Sanity - Create a CIT and MIT with Automatic capture </summary>\r\n\r\n### CIT - CREAT + CONFRIM\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data-raw '{\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"email\": \"hello@123.com\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 0,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \"authentication_type\": \"no_three_ds\",\r\n \"customer\": {\r\n \"id\": \"abcd\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5555555555554444\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"card_cvc\": \"900\"\r\n }\r\n },\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\": \"2025-03-27T13:56:49.848Z\",\r\n \"online\": {\r\n \"ip_address\": null,\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15\"\r\n }\r\n },\r\n \"setup_future_usage\": \"off_session\",\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"46203\",\r\n \"country\": \"US\",\r\n \"state\": \"TX\",\r\n\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"city\": \"Pecan Springs\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_JFOcufY9Vu9WqX3VE3xp\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 100,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_JFOcufY9Vu9WqX3VE3xp_secret_AjX4Kq6QyE3F0J1IyhsE\",\r\n \"created\": \"2025-11-07T07:05:49.012Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Pecan Springs\",\r\n \"country\": \"US\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"zip\": \"46203\",\r\n \"state\": \"TX\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcd\",\r\n \"created_at\": 1762499148,\r\n \"expires\": 1762502748,\r\n \"secret\": \"epk_11b9e6ef6e7149069b09b46e579de29c\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQjk2RT4izcUWmO0SIQECcR\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQjk2RT4izcUWmO0SIQECcR\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T07:20:49.012Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_SKPSOF8TlTPjrb1yPcFf\",\r\n \"network_transaction_id\": \"MCCKASEI21107\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-07T07:05:51.162Z\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_id\": \"ch_3SQjk2RT4izcUWmO0PDVutbD\",\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 0,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"pm_1SQjk1RT4izcUWmOxsV91kbD\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n### MIT \r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_rJxPaZPt1vCqX6NUuhN0\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 10000,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_rJxPaZPt1vCqX6NUuhN0_secret_2pSbjErO8v9XzCbzS4c0\",\r\n \"created\": \"2025-11-07T07:07:11.322Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": true,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcd\",\r\n \"created_at\": 1762499229,\r\n \"expires\": 1762502829,\r\n \"secret\": \"epk_4afed7c04c1b4259b1925e7dfc2abb99\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQjlMRT4izcUWmO1p4tCNOv\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQjlMRT4izcUWmO1p4tCNOv\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T07:22:11.322Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"13.232.74.226\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_SKPSOF8TlTPjrb1yPcFf\",\r\n \"network_transaction_id\": \"MCCKASEI21107\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-07T07:07:13.731Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"pm_1SQjk1RT4izcUWmOxsV91kbD\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": true,\r\n \"mit_category\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>Create a Manual Split Payment and Capture it</summary>\r\n\r\n### Create a manual split payment\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data-raw '{\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"email\": \"hello@123.com\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 0,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \r\n \"authentication_type\": \"no_three_ds\",\r\n\r\n \"customer\": {\r\n \"id\": \"abcd\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5555555555554444\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"card_cvc\": \"900\"\r\n }\r\n },\r\n \r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\": \"2025-03-27T13:56:49.848Z\",\r\n \"online\": {\r\n \"ip_address\": null,\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15\"\r\n }\r\n },\r\n \"setup_future_usage\": \"off_session\",\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"46203\",\r\n \"country\": \"US\",\r\n \"state\": \"TX\",\r\n \r\n \r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"city\": \"Pecan Springs\"\r\n }\r\n }\r\n}'\r\n```\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_p0qDVcnLfLJjpZSThZtk\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 100,\r\n \"amount_received\": null,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_p0qDVcnLfLJjpZSThZtk_secret_XBWfDKnfemGqBOHVASK1\",\r\n \"created\": \"2025-11-07T07:08:18.103Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Pecan Springs\",\r\n \"country\": \"US\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"zip\": \"46203\",\r\n \"state\": \"TX\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcd\",\r\n \"created_at\": 1762499298,\r\n \"expires\": 1762502898,\r\n \"secret\": \"epk_c83ce94116b047b08413df06b663a196\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQjmQRT4izcUWmO0QwBDjiw\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQjmQRT4izcUWmO0QwBDjiw\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T07:23:18.103Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_V9DgGE57sLsPkj7nVDLM\",\r\n \"network_transaction_id\": \"MCCKASEI21107\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-07T07:08:19.745Z\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_id\": \"ch_3SQjmQRT4izcUWmO0niMHOPj\",\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 0,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"pm_1SQjmQRT4izcUWmOwJzd7tc6\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n### Capture the payment \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_p0qDVcnLfLJjpZSThZtk/capture' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data '{\r\n\r\n}'\r\n\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_p0qDVcnLfLJjpZSThZtk\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 100,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_p0qDVcnLfLJjpZSThZtk_secret_XBWfDKnfemGqBOHVASK1\",\r\n \"created\": \"2025-11-07T07:08:18.103Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Pecan Springs\",\r\n \"country\": \"US\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"zip\": \"46203\",\r\n \"state\": \"TX\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQjmQRT4izcUWmO0QwBDjiw\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQjmQRT4izcUWmO0QwBDjiw\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T07:23:18.103Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_V9DgGE57sLsPkj7nVDLM\",\r\n \"network_transaction_id\": \"MCCKASEI21107\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-11-07T07:09:58.410Z\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_id\": \"ch_3SQjmQRT4izcUWmO0niMHOPj\",\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 0,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\nDo an MIT \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data '{\r\n \"amount\": 10000,\r\n \"currency\": \"USD\",\r\n \"off_session\": true,\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"pm_V9DgGE57sLsPkj7nVDLM\"\r\n },\r\n \"customer_id\": \"abcd\",\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"13.232.74.226\"\r\n }\r\n}'\r\n```\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_5i7YzvuNasz6JRckCdxC\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 10000,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_5i7YzvuNasz6JRckCdxC_secret_4mQnoEMA1JcI5NnFAhMe\",\r\n \"created\": \"2025-11-07T07:11:34.405Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": true,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcd\",\r\n \"created_at\": 1762499494,\r\n \"expires\": 1762503094,\r\n \"secret\": \"epk_bd8527ff7eac4c9d9db96fde4117d600\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQjpaRT4izcUWmO1BH0FJKx\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQjpaRT4izcUWmO1BH0FJKx\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T07:26:34.405Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"13.232.74.226\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_V9DgGE57sLsPkj7nVDLM\",\r\n \"network_transaction_id\": \"MCCKASEI21107\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-07T07:11:35.658Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"pm_1SQjmQRT4izcUWmOwJzd7tc6\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": true,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n</details>\r\n\r\n<details> <summary> Create a split manual payment and void it </summary>\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data-raw '{\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"email\": \"hello@123.com\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 0,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \r\n \"authentication_type\": \"no_three_ds\",\r\n \r\n \"customer\": {\r\n \"id\": \"abcd\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5555555555554444\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"card_cvc\": \"900\"\r\n }\r\n },\r\n\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"46203\",\r\n \"country\": \"US\",\r\n \"state\": \"TX\",\r\n \r\n \r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"city\": \"Pecan Springs\"\r\n }\r\n }\r\n}'\r\n```\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_9IrhnEVgeV0zNK1Ql5Oj\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 100,\r\n \"amount_received\": null,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_9IrhnEVgeV0zNK1Ql5Oj_secret_AejAExL8EhwTKoLfjntx\",\r\n \"created\": \"2025-11-07T07:13:11.828Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Pecan Springs\",\r\n \"country\": \"US\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"zip\": \"46203\",\r\n \"state\": \"TX\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcd\",\r\n \"created_at\": 1762499591,\r\n \"expires\": 1762503191,\r\n \"secret\": \"epk_6dc468ff9deb4b828a0a120593234c81\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQjrART4izcUWmO0FkNXRpp\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQjrART4izcUWmO0FkNXRpp\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T07:28:11.828Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"MCCKASEI21107\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-11-07T07:13:13.318Z\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_id\": \"ch_3SQjrART4izcUWmO0Bnlzte4\",\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 0,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n### Void the payment\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_9IrhnEVgeV0zNK1Ql5Oj/cancel' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data '{\r\n \"cancellation_reason\": \"requested_by_customer\"\r\n}'\r\n```\r\n\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_9IrhnEVgeV0zNK1Ql5Oj\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"cancelled\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_9IrhnEVgeV0zNK1Ql5Oj_secret_AejAExL8EhwTKoLfjntx\",\r\n \"created\": \"2025-11-07T07:13:11.828Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Pecan Springs\",\r\n \"country\": \"US\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"zip\": \"46203\",\r\n \"state\": \"TX\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": \"requested_by_customer\",\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQjrART4izcUWmO0FkNXRpp\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQjrART4izcUWmO0FkNXRpp\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T07:28:11.828Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"MCCKASEI21107\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-11-07T07:14:23.811Z\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_id\": \"ch_3SQjrART4izcUWmO0Bnlzte4\",\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 0,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n</details> \r\n<details><summary>Create a Setup Mandate Payment with Automatic Capture </summary>\r\n\r\n### Setup mandate flow \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data-raw '{\r\n \"amount\": 0,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"email\": \"hello@123.com\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 0,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \"payment_type\": \"setup_mandate\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"customer\": {\r\n \"id\": \"abcd\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5555555555554444\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"card_cvc\": \"900\"\r\n }\r\n },\r\n \r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\": \"2025-03-27T13:56:49.848Z\",\r\n \"online\": {\r\n \"ip_address\": null,\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15\"\r\n }\r\n },\r\n \"setup_future_usage\": \"off_session\",\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"46203\",\r\n \"country\": \"US\",\r\n \"state\": \"TX\",\r\n \r\n \r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"city\": \"Pecan Springs\"\r\n }\r\n }\r\n}'\r\n```\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_HN4Y1HTClsckyG0d73G6\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 0,\r\n \"net_amount\": 0,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_HN4Y1HTClsckyG0d73G6_secret_gG9GNRs3I6xqspM3fFM5\",\r\n \"created\": \"2025-11-07T07:25:45.466Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": null,\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Pecan Springs\",\r\n \"country\": \"US\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"zip\": \"46203\",\r\n \"state\": \"TX\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcd\",\r\n \"created_at\": 1762500345,\r\n \"expires\": 1762503945,\r\n \"secret\": \"epk_31494700957642f8aaedaca8cfac9784\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"seti_1SQk3KRT4izcUWmOiNizk5bt\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"seti_1SQk3KRT4izcUWmOiNizk5bt\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T07:40:45.466Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_mGZBRNA0gnBZ62JVwF1Y\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-07T07:25:47.356Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"pm_1SQk3KRT4izcUWmO6jzfWZEH\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n### Create a MIT\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data '{\r\n \"amount\": 10000,\r\n \"currency\": \"USD\",\r\n \"off_session\": true,\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"pm_mGZBRNA0gnBZ62JVwF1Y\"\r\n },\r\n \"customer_id\": \"abcd\" ,\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"13.232.74.226\"\r\n }\r\n}'\r\n```\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_U4RnBEB8NerZGDeHg4IF\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 10000,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_U4RnBEB8NerZGDeHg4IF_secret_xmFu6BHAVkptzoRUOA3q\",\r\n \"created\": \"2025-11-07T07:26:47.293Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": true,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": null,\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcd\",\r\n \"created_at\": 1762500407,\r\n \"expires\": 1762504007,\r\n \"secret\": \"epk_c14478b57a0b42a681d9001377cd58b9\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQk4JRT4izcUWmO0TiTqXD0\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQk4JRT4izcUWmO0TiTqXD0\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T07:41:47.293Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"13.232.74.226\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_mGZBRNA0gnBZ62JVwF1Y\",\r\n \"network_transaction_id\": \"MCCKASEI21107\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-07T07:26:48.327Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"pm_1SQk3KRT4izcUWmO6jzfWZEH\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": true,\r\n \"mit_category\": null\r\n}\r\n```\r\n</details>\r\n<details><summary> Sanity - Create, Capture and Refund a Manual Split Payment </summary>\r\n\r\n### Create a Manual Payment\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data-raw '{\r\n \"amount\":1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"email\": \"hello@123.com\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 1,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n\r\n \"authentication_type\": \"no_three_ds\",\r\n \"customer\": {\r\n \"id\": \"abcd\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5555555555554444\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"card_cvc\": \"900\"\r\n }\r\n },\r\n \r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\": \"2025-03-27T13:56:49.848Z\",\r\n \"online\": {\r\n \"ip_address\": null,\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15\"\r\n }\r\n },\r\n \"setup_future_usage\": \"off_session\",\r\n\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"46203\",\r\n \"country\": \"US\",\r\n \"state\": \"TX\",\r\n \r\n \r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"city\": \"Pecan Springs\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_fPZUTAJp3xrDqX2Itaof\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 1000,\r\n \"amount_received\": null,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_fPZUTAJp3xrDqX2Itaof_secret_7VXkbtgn6sSl16LQX7c9\",\r\n \"created\": \"2025-11-07T07:46:33.164Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Pecan Springs\",\r\n \"country\": \"US\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"zip\": \"46203\",\r\n \"state\": \"TX\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcd\",\r\n \"created_at\": 1762501593,\r\n \"expires\": 1762505193,\r\n \"secret\": \"epk_ab59dec0333e4adebabcfda54d8294dd\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQkNSRT4izcUWmO1RBFXCPf\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQkNSRT4izcUWmO1RBFXCPf\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T08:01:33.164Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_66yk7zXLsIiqcZFQ4zE7\",\r\n \"network_transaction_id\": \"MCCKASEI21107\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-07T07:46:35.101Z\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_id\": \"ch_3SQkNSRT4izcUWmO1W3k7STi\",\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 1,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"pm_1SQkNRRT4izcUWmOwO5MQM9V\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n### Capture \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_fPZUTAJp3xrDqX2Itaof/capture' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data '{\r\n \r\n \r\n \r\n}'\r\n```\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_fPZUTAJp3xrDqX2Itaof\",\r\n \"merchant_id\": \"postman_merchant_GHAction_598fc19b-2ed4-4cbe-acaa-f7c47933db05\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1000,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_fPZUTAJp3xrDqX2Itaof_secret_7VXkbtgn6sSl16LQX7c9\",\r\n \"created\": \"2025-11-07T07:46:33.164Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcd\",\r\n \"customer\": {\r\n \"id\": \"abcd\",\r\n \"name\": null,\r\n \"email\": \"hello@123.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4444\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"555555\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Pecan Springs\",\r\n \"country\": \"US\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"zip\": \"46203\",\r\n \"state\": \"TX\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"hello@123.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pi_3SQkNSRT4izcUWmO1RBFXCPf\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"pi_3SQkNSRT4izcUWmO1RBFXCPf\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-07T08:01:33.164Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_66yk7zXLsIiqcZFQ4zE7\",\r\n \"network_transaction_id\": \"MCCKASEI21107\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-11-07T07:48:45.590Z\",\r\n \"split_payments\": {\r\n \"stripe_split_payment\": {\r\n \"charge_id\": \"ch_3SQkNSRT4izcUWmO1W3k7STi\",\r\n \"charge_type\": \"direct\",\r\n \"application_fees\": 1,\r\n \"transfer_account_id\": \"acct_1RWCjbRT4izcUWmO\"\r\n }\r\n },\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": false,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": false,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n### Refund the payment \r\n\r\n```\r\ncurl --location 'http://localhost:8080/refunds' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_H5X96N4ntgwzfctDnP9mDLjCrq9ayx2aQv5bORNOzoVWfsd17uSqyDJdTxatbMj3' \\\r\n--data '{\r\n \"payment_id\": \"pay_fPZUTAJp3xrDqX2Itaof\",\r\n \r\n \"reason\": \"Customer returned product\",\r\n \"refund_type\": \"instant\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"split_refunds\": {\r\n \t\t\"stripe_split_refund\": {\r\n \t\t\"revert_platform_fee\": true\r\n \t\t\r\n \t\t}\r\n\t}\r\n}'\r\n```\r\nResponse\r\n\r\n```\r\n{\r\n \"refund_id\": \"ref_JVaobGdGYkuNHysOdeuy\",\r\n \"payment_id\": \"pay_fPZUTAJp3xrDqX2Itaof\",\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"status\": \"succeeded\",\r\n \"reason\": \"Customer returned product\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-11-07T07:49:27.539Z\",\r\n \"updated_at\": \"2025-11-07T07:49:29.244Z\",\r\n \"connector\": \"stripe\",\r\n \"profile_id\": \"pro_geI878cezvJA1BvG0NM1\",\r\n \"merchant_connector_id\": \"mca_pftIKwiAx6eJ0lR8GBqx\",\r\n \"split_refunds\": {\r\n \"stripe_split_refund\": {\r\n \"revert_platform_fee\": true,\r\n \"revert_transfer\": null\r\n }\r\n },\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n}\r\n```\r\n\r\n</details>\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "AkshayaFoiger",
|
| 6 |
+
"created_at": "2025-11-07T07:10:15+00:00",
|
| 7 |
+
"merged_at": "2025-11-07T13:51:41+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-connector-compatibility",
|
| 11 |
+
"A-connector-integration"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10165",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "a2bb885f2c6c893e1496410d27ecb6170d911bdb",
|
| 17 |
+
"message": "add split payment to capture, void and setupmandate",
|
| 18 |
+
"author": "AkshayaFoiger",
|
| 19 |
+
"date": "2025-11-07T06:48:30+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/a2bb885f2c6c893e1496410d27ecb6170d911bdb"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sha": "024944756367e1b3ed8e4f86480d18b783698043",
|
| 24 |
+
"message": "chore: run formatter",
|
| 25 |
+
"author": "hyperswitch-bot[bot]",
|
| 26 |
+
"date": "2025-11-07T07:14:55+00:00",
|
| 27 |
+
"url": "https://github.com/juspay/hyperswitch/commit/024944756367e1b3ed8e4f86480d18b783698043"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"sha": "a8a7a70ae474ea2cd8af4839c9ecfc2e19978b73",
|
| 31 |
+
"message": "add changes to utils",
|
| 32 |
+
"author": "AkshayaFoiger",
|
| 33 |
+
"date": "2025-11-07T07:31:07+00:00",
|
| 34 |
+
"url": "https://github.com/juspay/hyperswitch/commit/a8a7a70ae474ea2cd8af4839c9ecfc2e19978b73"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"sha": "4ba30a4c4b3edd32dc0ad63181328ca7704b8efd",
|
| 38 |
+
"message": "format the code",
|
| 39 |
+
"author": "AkshayaFoiger",
|
| 40 |
+
"date": "2025-11-07T07:31:36+00:00",
|
| 41 |
+
"url": "https://github.com/juspay/hyperswitch/commit/4ba30a4c4b3edd32dc0ad63181328ca7704b8efd"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"sha": "37b00b7e191c73c035416a9060e93b3a4581175f",
|
| 45 |
+
"message": "fix clippy error",
|
| 46 |
+
"author": "AkshayaFoiger",
|
| 47 |
+
"date": "2025-11-07T08:06:22+00:00",
|
| 48 |
+
"url": "https://github.com/juspay/hyperswitch/commit/37b00b7e191c73c035416a9060e93b3a4581175f"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"sha": "db458f02247cea0243cfac84476c2a9e364f4606",
|
| 52 |
+
"message": "Merge branch 'main' into add-split-payments-to-capture",
|
| 53 |
+
"author": "AkshayaFoiger",
|
| 54 |
+
"date": "2025-11-07T08:26:41+00:00",
|
| 55 |
+
"url": "https://github.com/juspay/hyperswitch/commit/db458f02247cea0243cfac84476c2a9e364f4606"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"sha": "dc977446f615a5bb30c800d51f0194332e9161af",
|
| 59 |
+
"message": "Merge branch 'main' into add-split-payments-to-capture",
|
| 60 |
+
"author": "AkshayaFoiger",
|
| 61 |
+
"date": "2025-11-07T11:26:13+00:00",
|
| 62 |
+
"url": "https://github.com/juspay/hyperswitch/commit/dc977446f615a5bb30c800d51f0194332e9161af"
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
+
}
|
prs/pr_10167.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10167,
|
| 3 |
+
"title": "fix(connectors): [Adyen] use single source of shopper ref",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nHotfix for https://github.com/juspay/hyperswitch/pull/10161\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "mrudulvajpayee4935",
|
| 6 |
+
"created_at": "2025-11-07T08:14:19+00:00",
|
| 7 |
+
"merged_at": "2025-11-07T11:25:40+00:00",
|
| 8 |
+
"base_branch": "hotfix-2025.11.05.0",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10167",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "2d54dbe5c695d5cecc43441e506837e3fc5d15b4",
|
| 14 |
+
"message": "use single source of shopper ref",
|
| 15 |
+
"author": "Mrudul Vajpayee",
|
| 16 |
+
"date": "2025-11-07T08:11:31+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2d54dbe5c695d5cecc43441e506837e3fc5d15b4"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "018ebb682586672f45a6b5e7e0ffa5837f7dc943",
|
| 21 |
+
"message": "Merge branch 'hotfix-2025.11.05.0' into refactor-shopper-ref-logic-hotfix-sbx",
|
| 22 |
+
"author": "Mrudul Vajpayee",
|
| 23 |
+
"date": "2025-11-07T09:29:29+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/018ebb682586672f45a6b5e7e0ffa5837f7dc943"
|
| 25 |
+
}
|
| 26 |
+
]
|
| 27 |
+
}
|
prs/pr_10170.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10170,
|
| 3 |
+
"title": "fix(payment_methods): fix error deserialization for network tokenization service",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n - fix error deserialization for network tokenization service\r\n - remove `key_id` from network token payload since this field is being deprecated\r\n - add custom masked serializer to log request\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nloggers have been added to network tokenization service calls.\r\ncreate MCA for cybersource\r\nEnable network tokenization in profile - \r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_id/business_profile/prof_id' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: api key' \\\r\n--data '{\r\n \"profile_name\": \"US_default\",\r\n\"is_network_tokenization_enabled\": true\r\n}'\r\n\r\n```\r\n- Create payment\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_CNdykrXQ50vzfqwZtbakrK0awo6TkkdQHDXv0QnpB8tA05z3sVIKLAEUGqIEXWE8' \\\r\n--data-raw '\r\n{\r\n \"amount\": 200,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"<customer_id>\",\r\n \r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"card_number\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"2026\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\",\r\n \"card_network\": \"VISA\"\r\n }\r\n },\r\n \"setup_future_usage\": \"on_session\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"in sit\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"PiX\",\r\n \"last_name\": \"ss\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"125.0.0.1\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {},\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 0,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\r\n \"profile_id\": \"<profile_id>\"\r\n}'\r\n\r\n```\r\n- Do repeat CIT [Saved Card flow]\r\nusing saved card, \r\npayment method data sent to connector in logs should be network token data.\r\nps. please search for raw_connector_request\r\ncreate payment- \r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_CNdykrXQ50vzfqwZtbakrK0awo6TkkdQHDXv0QnpB8tA05z3sVIKLAEUGqIEXWE8' \\\r\n--data '{\r\n \"amount\": 200,\r\n \"currency\": \"EUR\",\r\n \"capture_method\": \"manual\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"confirm\": false,\r\n \"setup_future_usage\": \"on_session\",\r\n \"customer_id\": \"cu_1760091918\",\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\"\r\n }\r\n },\r\n \"profile_id\": \"pro_55Ey3rupyS9BnqWKLkG3\"\r\n}'\r\n```\r\nconfirm - \r\n```\r\ncurl --location 'http://localhost:8080/payments/<payment_id>/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: api key' \\\r\n--data '\r\n{\r\n \"payment_token\": \"payment_token\",\r\n \"client_secret\": \"client_secret\",\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"125.0.0.1\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\":{\r\n \"card_token\":{\r\n \"card_cvc\": \"737\"\r\n }\r\n }\r\n\r\n}'\r\n```\r\nin logs,` raw_network_token_service_request` should be present\r\n<img width=\"1724\" height=\"47\" alt=\"image\" src=\"https://github.com/user-attachments/assets/076effd7-ff3a-4549-bc88-92d43705535c\" />\r\n\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "prasunna09",
|
| 6 |
+
"created_at": "2025-11-07T09:35:00+00:00",
|
| 7 |
+
"merged_at": "2025-11-19T08:00:30+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"T-Core"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10170",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "0decc8d7799991008d204a74654eb9d53c28a28d",
|
| 16 |
+
"message": "fix error deserialization for network tokenization service",
|
| 17 |
+
"author": "Prasunna Soppa",
|
| 18 |
+
"date": "2025-11-07T06:24:42+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/0decc8d7799991008d204a74654eb9d53c28a28d"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "ec7049cd889c5fd8d1030782cca1d0d89273ee24",
|
| 23 |
+
"message": "chore: run formatter",
|
| 24 |
+
"author": "hyperswitch-bot[bot]",
|
| 25 |
+
"date": "2025-11-07T09:59:08+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ec7049cd889c5fd8d1030782cca1d0d89273ee24"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "9dcd2d6e220ba1a7f687d5e84ad1415f1928451f",
|
| 30 |
+
"message": "add loggers",
|
| 31 |
+
"author": "Prasunna Soppa",
|
| 32 |
+
"date": "2025-11-11T08:49:17+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9dcd2d6e220ba1a7f687d5e84ad1415f1928451f"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "cda385a045d5ac41041a8a95f2c9d1f9b1f5cdfb",
|
| 37 |
+
"message": "resolve pr comments",
|
| 38 |
+
"author": "Prasunna Soppa",
|
| 39 |
+
"date": "2025-11-11T12:31:18+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/cda385a045d5ac41041a8a95f2c9d1f9b1f5cdfb"
|
| 41 |
+
}
|
| 42 |
+
]
|
| 43 |
+
}
|
prs/pr_10178.json
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10178,
|
| 3 |
+
"title": "feat(core): Add all_keys_required in Capture, Refund and RSync Flows",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\ncloses this [issue](https://github.com/juspay/hyperswitch/issues/10177)\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nAdded all_keys_required in Capture, Refund and RSync Flows.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nPostman Tests\r\n\r\n1. Payments - Capture\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_zGIAlSjMGujPpQdXF4ES/capture' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: \u2022\u2022\u2022\u2022\u2022\u2022' \\\r\n--data '\r\n{\r\n \"amount_to_capture\": 1000,\r\n \"currency\": \"USD\",\r\n \"all_keys_required\": true\r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_zGIAlSjMGujPpQdXF4ES\",\r\n \"merchant_id\": \"merchant_1763368771\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1000,\r\n \"connector\": \"peachpayments\",\r\n \"client_secret\": \"pay_zGIAlSjMGujPpQdXF4ES_secret_X0njS1ZKwOZDpM4yuUAc\",\r\n \"created\": \"2025-11-17T10:57:30.574Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"6175\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"492303\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"2028\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://duck.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"2aa0fc35-d182-4ec8-b3e8-96a7f37fcd9b\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"2aa0fc35-d182-4ec8-b3e8-96a7f37fcd9b\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_2CXBb8dKJbVIE6FdbhNs\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_6Wos8mYBczVrjlaw6VUC\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-17T11:12:30.574Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.0.0.1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-11-17T10:57:37.745Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": \"{\\\"transactionId\\\":\\\"2aa0fc35-d182-4ec8-b3e8-96a7f37fcd9b\\\",\\\"referenceId\\\":\\\"pay_zGIAlSjMGujPpQdXF4ES_1\\\",\\\"transactionResult\\\":\\\"approved_confirmed\\\",\\\"cardNotPresentRefundableStatus\\\":\\\"not_refundable\\\",\\\"responseCode\\\":{\\\"value\\\":\\\"00\\\",\\\"description\\\":\\\"Approved or completed successfully\\\",\\\"isoCodeDescription\\\":\\\"Approved or completed successfully\\\",\\\"terminalOutcomeString\\\":\\\"Approved\\\",\\\"receiptString\\\":\\\"Approved\\\",\\\"explanation\\\":\\\"Transaction approved by acquirer or issuer. Other factors may impact the final outcome of the transaction.\\\"},\\\"ecommerceCardPaymentOnlyTransactionData\\\":{\\\"rrn\\\":\\\"***\\\",\\\"stan\\\":\\\"***\\\",\\\"approvalCode\\\":\\\"***\\\",\\\"settlementDate\\\":\\\"2025-11-17\\\",\\\"amount\\\":{\\\"amount\\\":1000,\\\"currencyCode\\\":\\\"ZAR\\\",\\\"displayValue\\\":\\\"R10.00\\\"},\\\"card\\\":{\\\"maskedPan\\\":\\\"492303**********\\\",\\\"binNumber\\\":\\\"492303\\\",\\\"scheme\\\":\\\"Visa\\\",\\\"cardholderName\\\":\\\"joseph Doe\\\",\\\"expiryYear\\\":\\\"28\\\",\\\"expiryMonth\\\":\\\"01\\\",\\\"productType\\\":\\\"CREDIT\\\",\\\"bankName\\\":\\\"NEDB\\\",\\\"countryCode\\\":\\\"ZA\\\"}}}\",\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null,\r\n \"billing_descriptor\": null\r\n}\r\n```\r\n\r\n2. Refunds - Create\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/refunds' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: \u2022\u2022\u2022\u2022\u2022\u2022' \\\r\n--data '{\r\n \"payment_id\": \"pay_zGIAlSjMGujPpQdXF4ES\",\r\n \"amount\": 1000,\r\n \"reason\": \"Customer returned product\",\r\n \"refund_type\": \"instant\",\r\n \"all_keys_required\": true,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n } \r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```json\r\n{\r\n \"refund_id\": \"ref_GUEtZKp01hBpqklxFt4x\",\r\n \"payment_id\": \"pay_zGIAlSjMGujPpQdXF4ES\",\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"status\": \"succeeded\",\r\n \"reason\": \"Customer returned product\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-11-17T10:58:16.781Z\",\r\n \"updated_at\": \"2025-11-17T10:58:17.573Z\",\r\n \"connector\": \"peachpayments\",\r\n \"profile_id\": \"pro_2CXBb8dKJbVIE6FdbhNs\",\r\n \"merchant_connector_id\": \"mca_6Wos8mYBczVrjlaw6VUC\",\r\n \"split_refunds\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"raw_connector_response\": \"{\\\"transactionId\\\":\\\"dd637cd1-4987-4653-a3e7-af85b9909f4b\\\",\\\"originalTransactionId\\\":\\\"2aa0fc35-d182-4ec8-b3e8-96a7f37fcd9b\\\",\\\"referenceId\\\":\\\"ref_GUEtZKp01hBpqklxFt4x\\\",\\\"transactionResult\\\":\\\"approved_confirmed\\\",\\\"cardNotPresentRefundableStatus\\\":\\\"not_refundable\\\",\\\"transactionType\\\":{\\\"value\\\":20,\\\"description\\\":\\\"Refund\\\"},\\\"responseCode\\\":{\\\"value\\\":\\\"00\\\",\\\"description\\\":\\\"Approved or completed successfully\\\",\\\"terminalOutcomeString\\\":\\\"Approved\\\",\\\"receiptString\\\":\\\"Approved\\\"},\\\"ecommerceCardPaymentOnlyTransactionData\\\":{\\\"rrn\\\":\\\"*****\\\",\\\"stan\\\":\\\"****\\\",\\\"approvalCode\\\":\\\"****\\\",\\\"settlementDate\\\":\\\"2025-11-17\\\",\\\"amount\\\":{\\\"amount\\\":1000,\\\"currencyCode\\\":\\\"ZAR\\\",\\\"displayValue\\\":\\\"R10.00\\\"},\\\"card\\\":{\\\"maskedPan\\\":\\\"492303**********\\\",\\\"binNumber\\\":\\\"492303\\\",\\\"scheme\\\":\\\"Visa\\\",\\\"cardholderName\\\":\\\"joseph Doe\\\",\\\"expiryYear\\\":\\\"28\\\",\\\"expiryMonth\\\":\\\"01\\\",\\\"productType\\\":\\\"CREDIT\\\",\\\"bankName\\\":\\\"NEDB\\\",\\\"countryCode\\\":\\\"ZA\\\"}},\\\"refundBalanceData\\\":{\\\"amount\\\":{\\\"amount\\\":1000,\\\"currencyCode\\\":\\\"ZAR\\\",\\\"displayValue\\\":\\\"R10.00\\\"},\\\"balance\\\":{\\\"amount\\\":0,\\\"currencyCode\\\":\\\"ZAR\\\",\\\"displayValue\\\":\\\"R0.00\\\"},\\\"refundHistory\\\":[{\\\"transactionId\\\":\\\"dd637cd1-4987-4653-a3e7-af85b9909f4b\\\",\\\"referenceId\\\":\\\"ref_GUEtZKp01hBpqklxFt4x\\\",\\\"amount\\\":{\\\"amount\\\":1000,\\\"currencyCode\\\":\\\"ZAR\\\",\\\"displayValue\\\":\\\"R10.00\\\"},\\\"transactionTime\\\":\\\"2025-11-17T10:58:17.012157224Z\\\"}]},\\\"transactionTime\\\":\\\"2025-11-17T10:58:17.012157224Z\\\",\\\"paymentMethod\\\":\\\"ecommerce_card_payment_only\\\",\\\"voidableUntilTime\\\":\\\"2025-11-17T22:00:00Z\\\",\\\"posData\\\":{\\\"exiAuthRef\\\":\\\"API-KEY: #############\\\"}}\"\r\n}\r\n```\r\n\r\n3. Refunds - Retrieve\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/refunds/ref_lhovmLN57IY4XtmaN2CS?all_keys_required=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: {{api_key}}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"refund_id\": \"ref_lhovmLN57IY4XtmaN2CS\",\r\n \"payment_id\": \"pay_xDivZ2j0BDcLVLFuJZIR\",\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"status\": \"succeeded\",\r\n \"reason\": \"Customer returned product\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-11-17T08:41:51.768Z\",\r\n \"updated_at\": \"2025-11-17T10:58:49.255Z\",\r\n \"connector\": \"peachpayments\",\r\n \"profile_id\": \"pro_2CXBb8dKJbVIE6FdbhNs\",\r\n \"merchant_connector_id\": \"mca_6Wos8mYBczVrjlaw6VUC\",\r\n \"split_refunds\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"raw_connector_response\": \"{\\\"transactionId\\\":\\\"dd2acbb1-6844-44ef-a7de-fec7d3a85fb0\\\",\\\"originalTransactionId\\\":\\\"22993ed9-88b6-417e-8203-9118b7b4b962\\\",\\\"referenceId\\\":\\\"ref_lhovmLN57IY4XtmaN2CS\\\",\\\"transactionResult\\\":\\\"approved_confirmed\\\",\\\"cardNotPresentRefundableStatus\\\":\\\"not_refundable\\\",\\\"transactionType\\\":{\\\"value\\\":20,\\\"description\\\":\\\"Refund\\\"},\\\"responseCode\\\":{\\\"value\\\":\\\"00\\\",\\\"description\\\":\\\"Approved or completed successfully\\\",\\\"isoCodeDescription\\\":\\\"Approved or completed successfully\\\",\\\"terminalOutcomeString\\\":\\\"Approved\\\",\\\"receiptString\\\":\\\"Approved\\\",\\\"explanation\\\":\\\"Transaction approved by acquirer or issuer. Other factors may impact the final outcome of the transaction.\\\"},\\\"ecommerceCardPaymentOnlyTransactionData\\\":{\\\"rrn\\\":\\\"*****\\\",\\\"stan\\\":\\\"****\\\",\\\"settlementDate\\\":\\\"2025-11-17\\\",\\\"amount\\\":{\\\"amount\\\":1000,\\\"currencyCode\\\":\\\"ZAR\\\",\\\"displayValue\\\":\\\"R10.00\\\"},\\\"card\\\":{\\\"maskedPan\\\":\\\"492303**********\\\",\\\"binNumber\\\":\\\"492303\\\",\\\"scheme\\\":\\\"Visa\\\",\\\"cardholderName\\\":\\\"\\\",\\\"expiryYear\\\":\\\"28\\\",\\\"expiryMonth\\\":\\\"01\\\",\\\"productType\\\":\\\"CREDIT\\\",\\\"bankName\\\":\\\"NEDB\\\",\\\"countryCode\\\":\\\"ZA\\\"}},\\\"voidableUntilTime\\\":\\\"2025-11-17T22:00:00Z\\\",\\\"transactionTime\\\":\\\"2025-11-17T08:41:52.070342Z\\\",\\\"paymentMethod\\\":\\\"ecommerce_card_payment_only\\\"}\"\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "Anurag-05-prog",
|
| 6 |
+
"created_at": "2025-11-10T06:36:55+00:00",
|
| 7 |
+
"merged_at": "2025-11-17T15:31:54+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"M-api-contract-changes"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10178",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "0e4d8a1a538394e0ea0250574ba3af6c23f1373b",
|
| 16 |
+
"message": "feat(core): add all_keys_required in capture, refund and rsync flows",
|
| 17 |
+
"author": "Anurag Singh",
|
| 18 |
+
"date": "2025-11-10T06:34:38+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/0e4d8a1a538394e0ea0250574ba3af6c23f1373b"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "1d9a4b9c04e48477bbb701a76808b686f9ac81be",
|
| 23 |
+
"message": "run nightly",
|
| 24 |
+
"author": "Anurag Singh",
|
| 25 |
+
"date": "2025-11-10T06:35:05+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1d9a4b9c04e48477bbb701a76808b686f9ac81be"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "576ed7d54495e24623e32788155567a1ab8fc73d",
|
| 30 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 31 |
+
"author": "hyperswitch-bot[bot]",
|
| 32 |
+
"date": "2025-11-10T06:43:22+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/576ed7d54495e24623e32788155567a1ab8fc73d"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "f755750f8e9b6d25cd4674316a5f183008341753",
|
| 37 |
+
"message": "Merge branch 'main' of github.com:juspay/hyperswitch into feat/all-keys-required-capture-refund",
|
| 38 |
+
"author": "Anurag Singh",
|
| 39 |
+
"date": "2025-11-10T06:51:54+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f755750f8e9b6d25cd4674316a5f183008341753"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"sha": "7faee252d59f03b79f5b6bbcfcb9e1c1541e920c",
|
| 44 |
+
"message": "Merge branch 'feat/all-keys-required-capture-refund' of github.com:juspay/hyperswitch into feat/all-keys-required-capture-refund",
|
| 45 |
+
"author": "Anurag Singh",
|
| 46 |
+
"date": "2025-11-10T06:52:15+00:00",
|
| 47 |
+
"url": "https://github.com/juspay/hyperswitch/commit/7faee252d59f03b79f5b6bbcfcb9e1c1541e920c"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"sha": "9c16278698d1007b9ef970c6a34a4177f4abd786",
|
| 51 |
+
"message": "refactor code",
|
| 52 |
+
"author": "Anurag Singh",
|
| 53 |
+
"date": "2025-11-10T11:26:51+00:00",
|
| 54 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9c16278698d1007b9ef970c6a34a4177f4abd786"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"sha": "73e21685c1a33dfda12f6ba44dccade9b8c3f592",
|
| 58 |
+
"message": "resolve comment",
|
| 59 |
+
"author": "Anurag Singh",
|
| 60 |
+
"date": "2025-11-10T19:12:17+00:00",
|
| 61 |
+
"url": "https://github.com/juspay/hyperswitch/commit/73e21685c1a33dfda12f6ba44dccade9b8c3f592"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"sha": "b73c50456161099f4ea038332e40f70f5191d0f7",
|
| 65 |
+
"message": "add support for all_keys_required in ucs shadow",
|
| 66 |
+
"author": "Anurag Singh",
|
| 67 |
+
"date": "2025-11-12T10:24:47+00:00",
|
| 68 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b73c50456161099f4ea038332e40f70f5191d0f7"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"sha": "af0c555e27b07ec98ec0544fcfa1aec8fabe3a65",
|
| 72 |
+
"message": "refactor: remove nested match case",
|
| 73 |
+
"author": "Anurag Singh",
|
| 74 |
+
"date": "2025-11-12T12:17:41+00:00",
|
| 75 |
+
"url": "https://github.com/juspay/hyperswitch/commit/af0c555e27b07ec98ec0544fcfa1aec8fabe3a65"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"sha": "1070266a8f1be3030cb246ce621afce25c62ba9d",
|
| 79 |
+
"message": "refactor: remove nested match case",
|
| 80 |
+
"author": "Anurag Singh",
|
| 81 |
+
"date": "2025-11-12T19:40:04+00:00",
|
| 82 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1070266a8f1be3030cb246ce621afce25c62ba9d"
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"sha": "b117e5423c5efd3efc7e8a435ec793597b9b7f33",
|
| 86 |
+
"message": "chore: run formatter",
|
| 87 |
+
"author": "hyperswitch-bot[bot]",
|
| 88 |
+
"date": "2025-11-12T19:41:05+00:00",
|
| 89 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b117e5423c5efd3efc7e8a435ec793597b9b7f33"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"sha": "f9b4bfcf1c30a5cc35824c5b93f744a440e4c270",
|
| 93 |
+
"message": "Merge branch 'main' of github.com:juspay/hyperswitch into feat/all-keys-required-capture-refund",
|
| 94 |
+
"author": "Anurag Singh",
|
| 95 |
+
"date": "2025-11-12T19:41:36+00:00",
|
| 96 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f9b4bfcf1c30a5cc35824c5b93f744a440e4c270"
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"sha": "eb7c94680cde42e6a5f43fdadbcb8557cd5927f0",
|
| 100 |
+
"message": "Merge branch 'feat/all-keys-required-capture-refund' of github.com:juspay/hyperswitch into feat/all-keys-required-capture-refund",
|
| 101 |
+
"author": "Anurag Singh",
|
| 102 |
+
"date": "2025-11-12T19:42:07+00:00",
|
| 103 |
+
"url": "https://github.com/juspay/hyperswitch/commit/eb7c94680cde42e6a5f43fdadbcb8557cd5927f0"
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"sha": "9c139b726938400cc3c535f430c8a2130cc3658f",
|
| 107 |
+
"message": "refactor: rename whole_connector_response to raw_connector_response and revert payment_response changes",
|
| 108 |
+
"author": "Anurag Singh",
|
| 109 |
+
"date": "2025-11-17T08:43:21+00:00",
|
| 110 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9c139b726938400cc3c535f430c8a2130cc3658f"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"sha": "b524aabb555bd3a116a1fb4f330de3badba536dd",
|
| 114 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 115 |
+
"author": "hyperswitch-bot[bot]",
|
| 116 |
+
"date": "2025-11-17T08:50:48+00:00",
|
| 117 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b524aabb555bd3a116a1fb4f330de3badba536dd"
|
| 118 |
+
}
|
| 119 |
+
]
|
| 120 |
+
}
|
prs/pr_10183.json
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10183,
|
| 3 |
+
"title": "feat(customer_list): Add new API tests for customer list with count, pagination, and limit validation",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nAdded new Cypress test cases for the `customer list_with_count` API, including pagination and limit validation.\r\nThis is part of the new customer listing endpoint rollout that provides both customer data and total count in the response.\r\n\r\nAdded new test commands:\r\n- `CustomerListTests`\r\n\r\nAdded corresponding spec files:\r\n- `00033-CustomerListTests.cy.js`\r\n\r\nAlso added a deprecation note above the old `customerListCall` test for `/customers/list` endpoint, which will be removed once the new endpoint is stable in production.\r\n\r\n### Additional Changes\r\n\r\n- [x] This PR modifies the API contract (new `/customers/list_with_count` endpoint covered in tests)\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n-->\r\n\r\nThe existing `/customers/list` API did not return total count information and lacked limit validation.\r\nThis PR adds automated test coverage for the new `/customers/list_with_count` endpoint and ensures that invalid limits return proper errors.\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n- Running the Customer List With Count Locally:\r\n\r\n```bash\r\n\r\n (Run Starting)\r\n\r\n \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\r\n \u2502 Cypress: 14.5.4 \u2502\r\n \u2502 Browser: Electron 130 (headless) \u2502\r\n \u2502 Node Version: v22.19.0 (/usr/local/bin/node) \u2502\r\n \u2502 Specs: 1 found (00033-CustomerListTests.cy.js) \u2502\r\n \u2502 Searched: cypress/e2e/spec/Payment/00033-CustomerListTests.cy.js \u2502\r\n \u2502 Experiments: experimentalRunAllSpecs=true \u2502\r\n \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\r\n\r\nRemove .jsons folder /Users/venu.b/Desktop/Hyperswitch/Hyperswitch_Clone/hyperswitch/cypress-tests/cypress/reports/service/.jsons\r\n\r\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\r\n \r\n Running: 00033-CustomerListTests.cy.js (1 of 1)\r\n\r\n\r\n Customer List API Tests\r\n Customer List With Count - Various Limits\r\nLogging console message from task\r\nx-request-id -> 019a725b-fda9-74e1-8ffd-106e3e68a077\r\n \u2713 should work with default limit (20)\r\nLogging console message from task\r\nx-request-id -> 019a725b-fe4f-7271-9a91-fa16365d7db6\r\n \u2713 should work with small limit (5)\r\nLogging console message from task\r\nx-request-id -> 019a725b-fe84-7073-9939-2b2d3403701b\r\n \u2713 should work with limit 1 (edge case)\r\nLogging console message from task\r\nx-request-id -> 019a725b-fea7-70d3-9cff-88ee330ee6d2\r\n \u2713 should work with large limit (100)\r\nLogging console message from task\r\nx-request-id -> 019a725b-feda-7290-a39f-248b70ce283b\r\n \u2713 should handle offset beyond total_count\r\n\r\n\r\n 5 passing (368ms)\r\n\r\n[mochawesome] Report JSON saved to /Users/venu.b/Desktop/Hyperswitch/Hyperswitch_Clone/hyperswitch/cypress-tests/cypress/reports/service/.jsons/service_report.json\r\n\r\n\r\n (Results)\r\n\r\n \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\r\n \u2502 Tests: 5 \u2502\r\n \u2502 Passing: 5 \u2502\r\n \u2502 Failing: 0 \u2502\r\n \u2502 Pending: 0 \u2502\r\n \u2502 Skipped: 0 \u2502\r\n \u2502 Screenshots: 0 \u2502\r\n \u2502 Video: false \u2502\r\n \u2502 Duration: 0 seconds \u2502\r\n \u2502 Spec Ran: 00033-CustomerListTests.cy.js \u2502\r\n \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\r\n\r\nStart generate report process\r\nRead and merge jsons from \"/Users/venu.b/Desktop/Hyperswitch/Hyperswitch_Clone/hyperswitch/cypress-tests/cypress/reports/service/.jsons\"\r\nCopy media folder from \"/Users/venu.b/Desktop/Hyperswitch/Hyperswitch_Clone/hyperswitch/cypress-tests/cypress/videos/service\" to \"/Users/venu.b/Desktop/Hyperswitch/Hyperswitch_Clone/hyperswitch/cypress-tests/cypress/reports/service/videos\"\r\nEnhance report\r\nCreate HTML report\r\nHTML report successfully created!\r\n/Users/venu.b/Desktop/Hyperswitch/Hyperswitch_Clone/hyperswitch/cypress-tests/cypress/reports/service/service_report_024.html\r\n\r\n====================================================================================================\r\n\r\n (Run Finished)\r\n\r\n\r\n Spec Tests Passing Failing Pending Skipped \r\n \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\r\n \u2502 \u2714 00033-CustomerListTests.cy.js 371ms 5 5 - - - \u2502\r\n \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\r\n \u2714 All specs passed! 371ms 5 5 - - - \r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [x] I added unit tests (Cypress API tests) for my changes where possible\r\n",
|
| 5 |
+
"author": "VenuMadhav2541",
|
| 6 |
+
"created_at": "2025-11-10T10:06:04+00:00",
|
| 7 |
+
"merged_at": "2025-11-12T11:04:07+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"C-refactor"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10183",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "ac0365eefc778774813278cb8165c771704bf2be",
|
| 16 |
+
"message": "feat(customer_list): Add new API tests for customer list with count, pagination, and limit validation",
|
| 17 |
+
"author": "Venu Madhav",
|
| 18 |
+
"date": "2025-11-05T10:58:55+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ac0365eefc778774813278cb8165c771704bf2be"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "9f2f31f0e15ae7af4534fa1bbf423358c66b0ab8",
|
| 23 |
+
"message": "refactor(tests): Remove unused fixture imports from customer list tests",
|
| 24 |
+
"author": "Venu Madhav",
|
| 25 |
+
"date": "2025-11-10T10:46:23+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9f2f31f0e15ae7af4534fa1bbf423358c66b0ab8"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "07a6dbc549db43307a05939800dc1f00a4dfd36d",
|
| 30 |
+
"message": "feat(tests): Update customer list tests to use fixtures for request body",
|
| 31 |
+
"author": "Venu Madhav",
|
| 32 |
+
"date": "2025-11-10T10:59:37+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/07a6dbc549db43307a05939800dc1f00a4dfd36d"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "ed85dcb6430909f7daf032e3e075c2b80ef1576b",
|
| 37 |
+
"message": "refactor(tests): Remove unused fixture imports from customer list tests",
|
| 38 |
+
"author": "Venu Madhav",
|
| 39 |
+
"date": "2025-11-10T11:38:16+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ed85dcb6430909f7daf032e3e075c2b80ef1576b"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"sha": "f641087edd1ead8a4abc336d978c7ca55e8dbc2a",
|
| 44 |
+
"message": "chore(cypress): run formatter and address lints",
|
| 45 |
+
"author": "hyperswitch-bot[bot]",
|
| 46 |
+
"date": "2025-11-10T11:40:55+00:00",
|
| 47 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f641087edd1ead8a4abc336d978c7ca55e8dbc2a"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"sha": "d12bdbe669bbb2595b9b6be0fb6d6553ece302ed",
|
| 51 |
+
"message": "fix(api): update customer list API endpoint to remove redundant 'api' prefix",
|
| 52 |
+
"author": "Venu Madhav",
|
| 53 |
+
"date": "2025-11-10T12:45:01+00:00",
|
| 54 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d12bdbe669bbb2595b9b6be0fb6d6553ece302ed"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"sha": "6356ed18c9976d555ed80e7fa326296b67420b6e",
|
| 58 |
+
"message": "fix(tests): update error message assertion in customer list validation test",
|
| 59 |
+
"author": "Venu Madhav",
|
| 60 |
+
"date": "2025-11-10T13:30:38+00:00",
|
| 61 |
+
"url": "https://github.com/juspay/hyperswitch/commit/6356ed18c9976d555ed80e7fa326296b67420b6e"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"sha": "c592529655c019f078d6f7bd45115c0cf855a6e9",
|
| 65 |
+
"message": "refactor(commands): remove customer list limit validation test command",
|
| 66 |
+
"author": "Venu Madhav",
|
| 67 |
+
"date": "2025-11-10T18:19:19+00:00",
|
| 68 |
+
"url": "https://github.com/juspay/hyperswitch/commit/c592529655c019f078d6f7bd45115c0cf855a6e9"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"sha": "53a8a5d1d1f08e7b8b6b3250f9ac7a890596b2e1",
|
| 72 |
+
"message": "feat(tests): implement comprehensive customer list API tests with various limits and pagination",
|
| 73 |
+
"author": "Venu Madhav",
|
| 74 |
+
"date": "2025-11-11T09:57:04+00:00",
|
| 75 |
+
"url": "https://github.com/juspay/hyperswitch/commit/53a8a5d1d1f08e7b8b6b3250f9ac7a890596b2e1"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"sha": "626f7498d76a3746851ac080e51d72bca6c8cf68",
|
| 79 |
+
"message": "chore(cypress): run formatter and address lints",
|
| 80 |
+
"author": "hyperswitch-bot[bot]",
|
| 81 |
+
"date": "2025-11-11T09:58:57+00:00",
|
| 82 |
+
"url": "https://github.com/juspay/hyperswitch/commit/626f7498d76a3746851ac080e51d72bca6c8cf68"
|
| 83 |
+
}
|
| 84 |
+
]
|
| 85 |
+
}
|
prs/pr_10191.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10191,
|
| 3 |
+
"title": "feat(framework): Add Smithy Annotations for Customers, Mandates",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\n## Smithy Framework Overview\r\n\r\nThe smithy framework consists of three main crates that work together to automatically generate Smithy IDL (Interface Definition Language) files from annotated Rust code:\r\n\r\n### Core Components\r\n\r\n1. __`smithy`__ - Contains the `SmithyModel` derive macro\r\n2. __`smithy-core`__ - Provides core types and the IDL generator\r\n3. __`smithy-generator`__ - Scans the workspace and orchestrates generation\r\n\r\n## How the Derive Macro Works\r\n\r\n### `#[derive(SmithyModel)]`\r\n\r\nThis proc macro is the entry point that transforms Rust structs and enums into Smithy model representations. When applied to a type, it:\r\n\r\n- Generates an implementation of the `SmithyModelGenerator` trait\r\n- Analyzes the struct/enum fields and variants\r\n- Creates a `SmithyModel` containing `SmithyShape` definitions\r\n- Handles different shape types (Structure, Union, Enum) based on the Rust type\r\n\r\n### `#[smithy(namespace = \"com.hyperswitch.smithy.types\")]`\r\n\r\nThis attribute defines the Smithy namespace for the generated model:\r\n\r\n- __Purpose__: Groups related shapes into logical namespaces\r\n- __IDL Generation__: Creates separate `.smithy` files per namespace\r\n- __Cross-References__: Enables proper type resolution between namespaces\r\n- __Default__: Falls back to `\"com.hyperswitch.default\"` if not specified\r\n\r\n### `#[smithy(value_type = \"...\")]` - The Crucial Gatekeeper\r\n\r\nThis is the __mandatory__ field-level attribute that determines inclusion:\r\n\r\n- __Inclusion Rule__: Only fields with this attribute are processed into Smithy members\r\n- __Type Mapping__: Maps Rust types to Smithy types (e.g., `\"String\"` \u2192 `smithy.api#String`)\r\n- __Filtering__: Fields without this attribute are completely ignored during generation\r\n- __Flexibility__: Supports complex types like `\"Option<String>\"`, `\"Vec<MyType>\"`, etc.\r\n\r\n## Generation Process Flow\r\n\r\n1. __Discovery Phase__ (build.rs):\r\n\r\n - Scans workspace for `#[derive(SmithyModel)]` annotations\r\n - Generates a registry of discoverable models\r\n - Handles feature-gated compilation\r\n\r\n2. __Model Generation__ (derive macro):\r\n\r\n - Parses struct/enum definitions\r\n - Extracts namespace from attributes\r\n - Processes only fields with `value_type` attribute\r\n - Creates `SmithyShape` representations\r\n\r\n3. __IDL Output__ (generator):\r\n\r\n - Groups models by namespace\r\n - Generates `.smithy` files with proper syntax\r\n - Resolves cross-namespace type references\r\n - Outputs to `smithy/models/` directory\r\n\r\n## Key Benefits\r\n\r\n- __Selective Generation__: The `value_type` requirement ensures only intentionally modeled fields are included\r\n- __Type Safety__: Rust's type system validates the source while Smithy provides the contract\r\n- __Namespace Organization__: Clean separation of concerns across different domains\r\n- __Automatic Discovery__: No manual registration of types needed\r\n\r\n## Example Usage Pattern\r\n\r\n```rust\r\n#[derive(SmithyModel)]\r\n#[smithy(namespace = \"com.hyperswitch.payment.models\")]\r\npub struct PaymentRequest {\r\n #[smithy(value_type = \"String\")]\r\n pub payment_id: String,\r\n \r\n #[smithy(value_type = \"Option<String>\")]\r\n pub description: Option<String>,\r\n \r\n // This field would be ignored - no value_type attribute\r\n pub internal_metadata: serde_json::Value,\r\n}\r\n```\r\n\r\nThis generates a Smithy structure in the `com_hyperswitch_payment_models.smithy` file with only the `payment_id` and `description` fields included.\r\n\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nThis PR is for generating Smithy Models from Rust Types, and can only be tested locally. \r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible",
|
| 5 |
+
"author": "Debarshi-Gupta",
|
| 6 |
+
"created_at": "2025-11-11T05:01:20+00:00",
|
| 7 |
+
"merged_at": "2025-11-27T10:35:13+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-framework"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10191",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "eb1ff11d01b3814e7ab4032a13fab0b4a8e707e2",
|
| 16 |
+
"message": "Add Smithy Annotations for Customers, Mandates",
|
| 17 |
+
"author": "debarshi.gupta",
|
| 18 |
+
"date": "2025-11-11T05:00:27+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/eb1ff11d01b3814e7ab4032a13fab0b4a8e707e2"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "ce01165119abcbebc7ddbcd42c81c212e3d3f995",
|
| 23 |
+
"message": "Added Smithy Annotations for Refunds Update and List",
|
| 24 |
+
"author": "debarshi.gupta",
|
| 25 |
+
"date": "2025-11-11T06:15:03+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ce01165119abcbebc7ddbcd42c81c212e3d3f995"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "4c0ebf523984283221d963953200e41cc654552a",
|
| 30 |
+
"message": "chore: run formatter",
|
| 31 |
+
"author": "hyperswitch-bot[bot]",
|
| 32 |
+
"date": "2025-11-11T06:15:55+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/4c0ebf523984283221d963953200e41cc654552a"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "93123f3ac084a650b873ec2b63741bc99de71deb",
|
| 37 |
+
"message": "Fixed github ci checks",
|
| 38 |
+
"author": "debarshi.gupta",
|
| 39 |
+
"date": "2025-11-17T04:49:45+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/93123f3ac084a650b873ec2b63741bc99de71deb"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"sha": "3c59884aea08adcaaf1c163b36e13a1a7da094a1",
|
| 44 |
+
"message": "chore: run formatter",
|
| 45 |
+
"author": "hyperswitch-bot[bot]",
|
| 46 |
+
"date": "2025-11-17T04:50:39+00:00",
|
| 47 |
+
"url": "https://github.com/juspay/hyperswitch/commit/3c59884aea08adcaaf1c163b36e13a1a7da094a1"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"sha": "1e27f4ed49ae365cf815487efea474da272abb03",
|
| 51 |
+
"message": "Merge branch 'main' into customer_mandates_smithy",
|
| 52 |
+
"author": "Debarshi Gupta",
|
| 53 |
+
"date": "2025-11-17T04:54:07+00:00",
|
| 54 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1e27f4ed49ae365cf815487efea474da272abb03"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"sha": "130e5544770af3efcf6f2bc06ee753d656ea4113",
|
| 58 |
+
"message": "Merge branch 'main' into customer_mandates_smithy",
|
| 59 |
+
"author": "likhinbopanna",
|
| 60 |
+
"date": "2025-11-18T09:57:22+00:00",
|
| 61 |
+
"url": "https://github.com/juspay/hyperswitch/commit/130e5544770af3efcf6f2bc06ee753d656ea4113"
|
| 62 |
+
}
|
| 63 |
+
]
|
| 64 |
+
}
|
prs/pr_10194.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10194,
|
| 3 |
+
"title": "fix(connector): disable connector decryption flow for APPLEPAY nuvei",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nDisable connector decryption (no merchant PrivateKey key provided for session generation) flow for applepay (ENV) updated.\r\n\r\n- No test needed as we are disabling a feature.\r\n\r\n(Applepay cannot be tested locally via sdk)\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "Nithin1506200",
|
| 6 |
+
"created_at": "2025-11-11T06:38:47+00:00",
|
| 7 |
+
"merged_at": "2025-11-11T10:06:35+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10194",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "036f537798511b5801488dba6c95e4f4ce233566",
|
| 14 |
+
"message": "Update: nuvei",
|
| 15 |
+
"author": "nihtin",
|
| 16 |
+
"date": "2025-11-11T06:32:22+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/036f537798511b5801488dba6c95e4f4ce233566"
|
| 18 |
+
}
|
| 19 |
+
]
|
| 20 |
+
}
|
prs/pr_10204.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10204,
|
| 3 |
+
"title": "feat(connectors): [payload] add source verification and handle webhook response ",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nImplement source verification for payload webhooks\r\n\r\nTo setup the webhook in payload use this endpoint \r\n\r\n```\r\ncurl --location 'https://api.payload.com/webhooks/' \\\r\n--header 'Content-Type: application/x-www-form-urlencoded' \\\r\n--header 'Authorization: Basic *****************************6' \\\r\n--data-urlencode 'trigger=processed' \\\r\n--data-urlencode 'url=https://dcff2c3e73b7.ngrok-free.app/webhooks/postman_merchant_GHAction_8ef0cb85-0294-41d3-b158-ee7da6b11c8a/payload' \\\r\n--data-urlencode 'sender_secret=yghtdhrtter665ftyfgjhgvhgncht55'\r\n```\r\n\r\nWhere sender_secret has to be set while creating a connector\r\n\r\n```\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"yghtdhrtter665ftyfgjhgvhgncht55\"\r\n }\r\n````\r\n\r\n> Refund handling not implemented since refund webhook payloads cannot be uniquely identified. The only differentiator is the distinct IDs received for payment and refund.\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n> Cannot be tested in the deployed environments because the payments directly go to terminal state with the /confirm call\r\n\r\n\r\nTested by hardcoding the /confirm call response as pending \r\n\r\nCreate a payment \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_PGgV0IoStptHimXbnVbvaOnwKyHrnbm9iLDWfBWHyDnXqWPTlME27BQZESY7Zf1V' \\\r\n--data-raw '{\r\n \"amount\": 10400,\r\n \"currency\": \"USD\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"confirm\": true,\r\n \"amount_to_capture\": 10400,\r\n \"customer_id\": \"customer\",\r\n \"email\": \"guesjhvghht@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://duck.com\",\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\"\r\n ,\r\n \"first_name\": \"PiX\"\r\n ,\r\n \"last_name\": \"THE\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"PiX\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"28\",\r\n \"card_holder_name\": \"Joseph Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"language\": \"en-GB\",\r\n \"screen_height\": 720,\r\n \"screen_width\": 1280,\r\n \"time_zone\": -330,\r\n \"ip_address\": \"208.127.127.193\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0\"\r\n }\r\n \r\n}'\r\n```\r\n\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_llFpwU5Ahllnss6O6bXm\",\r\n \"merchant_id\": \"postman_merchant_GHAction_8ef0cb85-0294-41d3-b158-ee7da6b11c8a\",\r\n \"status\": \"processing\",\r\n \"amount\": 10400,\r\n \"net_amount\": 10400,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 10400,\r\n \"amount_received\": null,\r\n \"connector\": \"payload\",\r\n \"client_secret\": \"pay_llFpwU5Ahllnss6O6bXm_secret_I6dJgNCFQb4kE8ymDYVR\",\r\n \"created\": \"2025-11-11T10:55:19.885Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"customer\",\r\n \"customer\": {\r\n \"id\": \"customer\",\r\n \"name\": null,\r\n \"email\": \"guesjhvghht@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4242\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"424242\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"28\",\r\n \"card_holder_name\": \"Joseph Doe\",\r\n \"payment_checks\": {\r\n \"avs_result\": \"street_and_zip\"\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"PiX\",\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"PiX\",\r\n \"last_name\": \"THE\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guesjhvghht@example.com\",\r\n \"name\": null,\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://duck.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": null,\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"customer\",\r\n \"created_at\": 1762858519,\r\n \"expires\": 1762862119,\r\n \"secret\": \"epk_ec02cdc93fae42f18d1c2a2d6d2849d8\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"txn_3f0plO2wIaMwz2UEroRnh\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"PL-HM7-MIU-U5B\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_PkIk93YG8asveMIuB7k7\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_BkoKCwlD54mxfMOEzcOx\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-11T11:10:19.884Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en-GB\",\r\n \"time_zone\": -330,\r\n \"ip_address\": \"208.127.127.193\",\r\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1280,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 720,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-11-11T10:55:21.437Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null,\r\n \"billing_descriptor\": null\r\n}\r\n```\r\n\r\nYou will receive a webhook where source_verification should be true. Before performing a psync, check the database to ensure that the payment status is charged\r\n\r\n<img width=\"1172\" height=\"872\" alt=\"Screenshot 2025-11-11 at 4 46 30\u202fPM\" src=\"https://github.com/user-attachments/assets/3573943f-be4d-482d-9946-dbd6e8d4a309\" />\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "AkshayaFoiger",
|
| 6 |
+
"created_at": "2025-11-11T11:15:10+00:00",
|
| 7 |
+
"merged_at": "2025-11-14T13:02:10+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-connector-integration"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10204",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "ea81c76504fc0a70078fb2d33527f9dd115994d5",
|
| 16 |
+
"message": "add and handle source verification to payload",
|
| 17 |
+
"author": "AkshayaFoiger",
|
| 18 |
+
"date": "2025-11-11T11:05:12+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ea81c76504fc0a70078fb2d33527f9dd115994d5"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "bc1c6216a9db9c6b472ac32c35197fe4b890cfd6",
|
| 23 |
+
"message": "chore: run formatter",
|
| 24 |
+
"author": "hyperswitch-bot[bot]",
|
| 25 |
+
"date": "2025-11-11T11:23:17+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/bc1c6216a9db9c6b472ac32c35197fe4b890cfd6"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"sha": "a0a1faf5a66512f6884090359907f2cc0ffebff4",
|
| 30 |
+
"message": "fix webhooks",
|
| 31 |
+
"author": "AkshayaFoiger",
|
| 32 |
+
"date": "2025-11-12T10:29:46+00:00",
|
| 33 |
+
"url": "https://github.com/juspay/hyperswitch/commit/a0a1faf5a66512f6884090359907f2cc0ffebff4"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"sha": "3832432bead903aae76530c3f6893a01b780d68a",
|
| 37 |
+
"message": "chore: run formatter",
|
| 38 |
+
"author": "hyperswitch-bot[bot]",
|
| 39 |
+
"date": "2025-11-12T10:30:58+00:00",
|
| 40 |
+
"url": "https://github.com/juspay/hyperswitch/commit/3832432bead903aae76530c3f6893a01b780d68a"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"sha": "8c449f3c54a594f8e711705df50a6433dbbe221c",
|
| 44 |
+
"message": "add comment",
|
| 45 |
+
"author": "AkshayaFoiger",
|
| 46 |
+
"date": "2025-11-12T10:39:19+00:00",
|
| 47 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8c449f3c54a594f8e711705df50a6433dbbe221c"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"sha": "fa9539a7d33526430a8dc2eddff23d9c07061b79",
|
| 51 |
+
"message": "chore: run formatter",
|
| 52 |
+
"author": "hyperswitch-bot[bot]",
|
| 53 |
+
"date": "2025-11-12T10:40:27+00:00",
|
| 54 |
+
"url": "https://github.com/juspay/hyperswitch/commit/fa9539a7d33526430a8dc2eddff23d9c07061b79"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"sha": "5f3a9e542b8317a0bef96295fb14ff3b302f7a0e",
|
| 58 |
+
"message": "fix clippy",
|
| 59 |
+
"author": "AkshayaFoiger",
|
| 60 |
+
"date": "2025-11-12T11:21:40+00:00",
|
| 61 |
+
"url": "https://github.com/juspay/hyperswitch/commit/5f3a9e542b8317a0bef96295fb14ff3b302f7a0e"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"sha": "00cbc6f00b4f47d3d77536adac3d84480b2e8561",
|
| 65 |
+
"message": "chore: run formatter",
|
| 66 |
+
"author": "hyperswitch-bot[bot]",
|
| 67 |
+
"date": "2025-11-12T11:22:31+00:00",
|
| 68 |
+
"url": "https://github.com/juspay/hyperswitch/commit/00cbc6f00b4f47d3d77536adac3d84480b2e8561"
|
| 69 |
+
}
|
| 70 |
+
]
|
| 71 |
+
}
|
prs/pr_10205.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10205,
|
| 3 |
+
"title": "fix(connector): [Zift] Fix Connector Void Flow",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nAdded Void flow /Fixed Refunds Response\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nFixed Wasm\r\n<img width=\"1207\" height=\"474\" alt=\"Screenshot 2025-11-11 at 7 04 36\u202fPM\" src=\"https://github.com/user-attachments/assets/31c92013-b1e9-4403-b636-7b213961f882\" />\r\n\r\nVoid Request:\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_pC6St7TsJQI6YdZH9X7rYmK9PBY0G8skMNnMufN6lSxAYJ9zBDfCK2Eju19r3aDf' \\\r\n--data-raw '{\r\n \"amount\": 500,\r\n \"currency\": \"USD\",\r\n \r\n \"confirm\": true,\r\n \"customer_id\":\"3231\",\r\n \"capture_method\": \"manual\",\r\n \r\n \"authentication_type\": \"no_three_ds\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"email\": \"guest@example.com\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5200000000000007\",\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"return_url\": \"https://duck.com\",\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"Zurich\",\r\n \"state\": \"asd\",\r\n \"zip\": \"8008\",\r\n \"country\": \"CH\",\r\n \"first_name\": \"joseph\"\r\n }\r\n }\r\n ,\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\":\"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\":\"127.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"setup_future_usage\":\"off_session\"\r\n}\r\n\r\n'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_HAvQIZWHmJCbiNcDsQ9Y\",\r\n \"merchant_id\": \"merchant_1762853177\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 500,\r\n \"net_amount\": 500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 500,\r\n \"amount_received\": null,\r\n \"connector\": \"zift\",\r\n \"client_secret\": \"pay_HAvQIZWHmJCbiNcDsQ9Y_secret_8Ge0FruRGEWc7bKRYRG9\",\r\n \"created\": \"2025-11-11T13:27:20.580Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"3231\",\r\n \"customer\": {\r\n \"id\": \"3231\",\r\n \"name\": null,\r\n \"email\": \"guest@example.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0007\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"520000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Zurich\",\r\n \"country\": \"CH\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"8008\",\r\n \"state\": \"asd\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": \"https://duck.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"3231\",\r\n \"created_at\": 1762867640,\r\n \"expires\": 1762871240,\r\n \"secret\": \"epk_9cb96dde54674ab4983d28213f726b74\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"8616918212\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_FrC49O7GUVAeYxFmagQV\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_oEWKlo0syUtYtmU7oBWi\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-11T13:42:20.580Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_3Kqf7Tmk4RNbWbVFUkrZ\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-11T13:27:21.909Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"MC10000000000024680007\",\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null,\r\n \"billing_descriptor\": null\r\n}\r\n```\r\nVoid: \r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_HAvQIZWHmJCbiNcDsQ9Y/cancel' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_pC6St7TsJQI6YdZH9X7rYmK9PBY0G8skMNnMufN6lSxAYJ9zBDfCK2Eju19r3aDf' \\\r\n--data '{\r\n \"cancellation_reason\": \"requested_by_customer\"\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_HAvQIZWHmJCbiNcDsQ9Y\",\r\n \"merchant_id\": \"merchant_1762853177\",\r\n \"status\": \"cancelled\",\r\n \"amount\": 500,\r\n \"net_amount\": 500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"zift\",\r\n \"client_secret\": \"pay_HAvQIZWHmJCbiNcDsQ9Y_secret_8Ge0FruRGEWc7bKRYRG9\",\r\n \"created\": \"2025-11-11T13:27:20.580Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"3231\",\r\n \"customer\": {\r\n \"id\": \"3231\",\r\n \"name\": null,\r\n \"email\": \"guest@example.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0007\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"520000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Zurich\",\r\n \"country\": \"CH\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"8008\",\r\n \"state\": \"asd\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": \"https://duck.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": \"requested_by_customer\",\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"8616918212\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_FrC49O7GUVAeYxFmagQV\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_oEWKlo0syUtYtmU7oBWi\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-11-11T13:42:20.580Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_3Kqf7Tmk4RNbWbVFUkrZ\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-11-11T13:28:02.171Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null,\r\n \"billing_descriptor\": null\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "awasthi21",
|
| 6 |
+
"created_at": "2025-11-11T12:44:02+00:00",
|
| 7 |
+
"merged_at": "2025-11-11T14:25:46+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10205",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "4daac3e6aa0db612aa913eb7ad4260da85bd133a",
|
| 14 |
+
"message": "Initial commit",
|
| 15 |
+
"author": "Malay Awasthi",
|
| 16 |
+
"date": "2025-11-11T13:23:33+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/4daac3e6aa0db612aa913eb7ad4260da85bd133a"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "d6213972f643b3e2e28aa264dc02090c4ea6a98e",
|
| 21 |
+
"message": "Init",
|
| 22 |
+
"author": "Malay Awasthi",
|
| 23 |
+
"date": "2025-11-11T13:23:53+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d6213972f643b3e2e28aa264dc02090c4ea6a98e"
|
| 25 |
+
}
|
| 26 |
+
]
|
| 27 |
+
}
|
prs/pr_10211.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 10211,
|
| 3 |
+
"title": "fix(connectors): [Adyen] Revert adyen fix mit",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nRevert PR for:\r\nhttps://github.com/juspay/hyperswitch/pull/10094\r\nhttps://github.com/juspay/hyperswitch/pull/10161\r\n\r\nThis is required as this change is not handling all the failed cases\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "mrudulvajpayee4935",
|
| 6 |
+
"created_at": "2025-11-11T15:13:19+00:00",
|
| 7 |
+
"merged_at": "2025-11-11T16:57:10+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-connector-compatibility"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/10211",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "d8a6d7c117ef06a9884d61c685b898c3d7c02265",
|
| 16 |
+
"message": "Revert \"fix(connectors): [Adyen] use single source of shopper ref (#10161)\"\n\nThis reverts commit 73d627f084a8fce5ca179ace2d59bf618c0d9263.",
|
| 17 |
+
"author": "Mrudul Vajpayee",
|
| 18 |
+
"date": "2025-11-11T14:54:55+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d8a6d7c117ef06a9884d61c685b898c3d7c02265"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "8eeab0e73a67a80e9ab15cbb529bc27b852fed1f",
|
| 23 |
+
"message": "Revert \"fix(connectors): [Adyen] add migrated payment method check (#10094)\"\n\nThis reverts commit 2abb747af2df41a05a720cffa7120affc108f222.",
|
| 24 |
+
"author": "Mrudul Vajpayee",
|
| 25 |
+
"date": "2025-11-11T14:55:19+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8eeab0e73a67a80e9ab15cbb529bc27b852fed1f"
|
| 27 |
+
}
|
| 28 |
+
]
|
| 29 |
+
}
|
prs/pr_6677.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6677,
|
| 3 |
+
"title": "fix(users): Check lineage across entities in invite",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nCurrently in invites we don't check if user exists across entities.\r\nThis will be a problem when inviting a user with higher entity from different lineage.\r\nThis PR fixes it.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\nCloses #6679.\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n1. Invite a user in a specific (org, merchant, profile) combination.\r\n2. Create a new profile in the same merchant account and switch to it.\r\n3. Invite the same user as merchant level user. This should be stopped by API.\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "ThisIsMani",
|
| 6 |
+
"created_at": "2024-11-27T13:02:47+00:00",
|
| 7 |
+
"merged_at": "2024-11-27T14:33:37+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"C-bug",
|
| 11 |
+
"A-users"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6677",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "b10e6d1db83a8cc0db70ea7ad0b667934e0de318",
|
| 17 |
+
"message": "fix: check below lineage properly in invite",
|
| 18 |
+
"author": "Mani Chandra Dulam",
|
| 19 |
+
"date": "2024-11-27T12:52:13+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b10e6d1db83a8cc0db70ea7ad0b667934e0de318"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sha": "9e8e72a6efbc4fbb047e4af9106844283c95f33b",
|
| 24 |
+
"message": "fix: clippy",
|
| 25 |
+
"author": "Mani Chandra Dulam",
|
| 26 |
+
"date": "2024-11-27T13:14:48+00:00",
|
| 27 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9e8e72a6efbc4fbb047e4af9106844283c95f33b"
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
prs/pr_6680.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6680,
|
| 3 |
+
"title": "fix(users): Check lineage across entities in invite",
|
| 4 |
+
"description": "[## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nCurrently in invites we don't check if user exists across entities.\r\nThis will be a problem when inviting a user with higher entity from different lineage.\r\nThis PR fixes it.\r\nMain PR: #6677\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nCloses #6679\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n1. Invite a user in a specific (org, merchant, profile) combination.\r\n2. Create a new profile in the same merchant account and switch to it.\r\n3. Invite the same user as merchant level user. This should be stopped by API.\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible",
|
| 5 |
+
"author": "ThisIsMani",
|
| 6 |
+
"created_at": "2024-11-27T13:23:38+00:00",
|
| 7 |
+
"merged_at": "2024-11-27T14:40:31+00:00",
|
| 8 |
+
"base_branch": "hotfix-2024.11.20.0",
|
| 9 |
+
"labels": [
|
| 10 |
+
"C-bug",
|
| 11 |
+
"A-users"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6680",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "8b83a970bcf8054d126b37131a2c32959f40b88c",
|
| 17 |
+
"message": "fix: check below lineage properly in invite",
|
| 18 |
+
"author": "Mani Chandra Dulam",
|
| 19 |
+
"date": "2024-11-27T12:52:13+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8b83a970bcf8054d126b37131a2c32959f40b88c"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
}
|
prs/pr_6690.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6690,
|
| 3 |
+
"title": "fix(router): populate card network in the network transaction id based MIT flow",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nIn the PG agnostic MIT flow (card details with network transaction id) the card network is being passed a null in the response. As the card network fetched form the card info lookup is not being used.\r\n\r\nAdditionally this pr also contains the changes to include the `network_transaction_id_supported_connectors` in `production.toml`. And pass internet as the commerce_indicator for discover cards in cybersource.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n-> Create merchant account and merchant connector account\r\n-> enable `is_connector_agnostic_mit_enabled` flag\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1732783890/business_profile/pro_lNl3x8up5RJTzGLgq0cC' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"is_connector_agnostic_mit_enabled\": true\r\n\r\n}'\r\n```\r\n```\r\n{\r\n \"merchant_id\": \"merchant_1732783890\",\r\n \"profile_id\": \"pro_lNl3x8up5RJTzGLgq0cC\",\r\n \"profile_name\": \"US_default\",\r\n \"return_url\": \"https://google.com/success\",\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"EHpgSu6g2VWesxu9L3tPGXVI7XuL1lqZ4CAwjYH3PUHr6VTiO1gyVuPsLSQoCGCO\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"webhook_details\": {\r\n \"webhook_version\": \"1.0.1\",\r\n \"webhook_username\": \"ekart_retail\",\r\n \"webhook_password\": \"password_ekart@123\",\r\n \"webhook_url\": null,\r\n \"payment_created_enabled\": true,\r\n \"payment_succeeded_enabled\": true,\r\n \"payment_failed_enabled\": true\r\n },\r\n \"metadata\": null,\r\n \"routing_algorithm\": null,\r\n \"intent_fulfillment_time\": 900,\r\n \"frm_routing_algorithm\": null,\r\n \"payout_routing_algorithm\": null,\r\n \"applepay_verified_domains\": null,\r\n \"session_expiry\": 900,\r\n \"payment_link_config\": null,\r\n \"authentication_connector_details\": null,\r\n \"use_billing_as_payment_method_billing\": true,\r\n \"extended_card_info_config\": null,\r\n \"collect_shipping_details_from_wallet_connector\": false,\r\n \"collect_billing_details_from_wallet_connector\": false,\r\n \"always_collect_shipping_details_from_wallet_connector\": false,\r\n \"always_collect_billing_details_from_wallet_connector\": false,\r\n \"is_connector_agnostic_mit_enabled\": true,\r\n \"payout_link_config\": null,\r\n \"outgoing_webhook_custom_http_headers\": null,\r\n \"tax_connector_id\": null,\r\n \"is_tax_connector_enabled\": false,\r\n \"is_network_tokenization_enabled\": false,\r\n \"is_auto_retries_enabled\": false,\r\n \"max_auto_retries_enabled\": null\r\n}\r\n```\r\n-> Create a payment with `\"setup_future_usage\": \"off_session\",`\r\n```\r\n{\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"cu_{{$timestamp}}\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"name name\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n \"setup_future_usage\": \"off_session\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"in sit\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"PiX\",\r\n \"last_name\": \"ss\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"125.0.0.1\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {},\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 0,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ]\r\n}\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_fnfBuSFwvwVMzmk0OZM3\",\r\n \"merchant_id\": \"merchant_1732784068\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 100,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_fnfBuSFwvwVMzmk0OZM3_secret_VoTLxuhAVA1mYPyTQyN4\",\r\n \"created\": \"2024-11-28T08:55:25.492Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1732784125\",\r\n \"customer\": {\r\n \"id\": \"cu_1732784125\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4242\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\r\n \"card_isin\": \"424242\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": {\r\n \"avs_response\": {\r\n \"code\": \"Y\",\r\n \"codeRaw\": \"Y\"\r\n },\r\n \"card_verification\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_hrw68v72wmWkd6uDjNCl\",\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"PiX\",\r\n \"last_name\": \"ss\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": [\r\n {\r\n \"brand\": null,\r\n \"amount\": 0,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"product_id\": null,\r\n \"product_name\": \"Apple iphone 15\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"requires_shipping\": null\r\n }\r\n ],\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cu_1732784125\",\r\n \"created_at\": 1732784125,\r\n \"expires\": 1732787725,\r\n \"secret\": \"epk_06284b9a905f4c3aa196b00ad8112174\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"7327841265636354504951\",\r\n \"frm_message\": null,\r\n \"metadata\": {},\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_fnfBuSFwvwVMzmk0OZM3_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_ENrgK0m9AXuOtOMzxFju\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_N3lWoDG7yvB9rbvJFyrb\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-11-28T09:10:25.492Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"125.0.0.1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": \"pm_qUyvJqDRB16ItLjiBATM\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2024-11-28T08:55:27.234Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"27F62F9C4E44ACD0E063AF598E0A7075\"\r\n}\r\n```\r\n\r\n-> Create a payment for the same customer\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_JZ5SfN6HmdFyVadqiq6iO6cZD9JDnWNT0bVhEEbOFLbw9NXkYNNr3MaXXTpVjFEY' \\\r\n--header 'Content-Type: application/json' \\\r\n--data '{\r\n \"amount\": 10000,\r\n \"currency\": \"USD\",\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"three_ds\",\r\n \"confirm\": false,\r\n \"setup_future_usage\": \"off_session\",\r\n \"customer_id\": \"cu_1732784125\"\r\n}'\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_Nxx6173Q7F2ES49eeMYr\",\r\n \"merchant_id\": \"merchant_1732784068\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": null,\r\n \"client_secret\": \"pay_Nxx6173Q7F2ES49eeMYr_secret_2qPhrFGrz8F4ODupztNl\",\r\n \"created\": \"2024-11-28T08:58:33.763Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1732784125\",\r\n \"customer\": {\r\n \"id\": \"cu_1732784125\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": null,\r\n \"payment_method_data\": null,\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": null,\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": null,\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cu_1732784125\",\r\n \"created_at\": 1732784313,\r\n \"expires\": 1732787913,\r\n \"secret\": \"epk_9ed01dde281f46a0966f1c0d779f6099\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_ENrgK0m9AXuOtOMzxFju\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": null,\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-11-28T09:13:33.763Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2024-11-28T08:58:33.784Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n-> List customer pml with the client_secret\r\n```\r\ncurl --location 'http://localhost:8080/customers/payment_methods?client_secret=pay_Nxx6173Q7F2ES49eeMYr_secret_2qPhrFGrz8F4ODupztNl' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_2cbdf84777ed4b15827d8bc8e6b19622'\r\n```\r\n```\r\n{\r\n \"customer_payment_methods\": [\r\n {\r\n \"payment_token\": \"token_GN84Zv1iv1sbEpE9Fupv\",\r\n \"payment_method_id\": \"pm_qUyvJqDRB16ItLjiBATM\",\r\n \"customer_id\": \"cu_1732784125\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"payment_method_issuer_code\": null,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false,\r\n \"payment_experience\": [\r\n \"redirect_to_url\"\r\n ],\r\n \"card\": {\r\n \"scheme\": \"Visa\",\r\n \"issuer_country\": \"UNITEDKINGDOM\",\r\n \"last4_digits\": \"4242\",\r\n \"expiry_month\": \"03\",\r\n \"expiry_year\": \"2030\",\r\n \"card_token\": null,\r\n \"card_holder_name\": \"name name\",\r\n \"card_fingerprint\": null,\r\n \"nick_name\": null,\r\n \"card_network\": \"Visa\",\r\n \"card_isin\": \"424242\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_type\": \"CREDIT\",\r\n \"saved_to_locker\": true\r\n },\r\n \"metadata\": null,\r\n \"created\": \"2024-11-28T08:55:27.197Z\",\r\n \"bank\": null,\r\n \"surcharge_details\": null,\r\n \"requires_cvv\": false,\r\n \"last_used_at\": \"2024-11-28T08:55:27.197Z\",\r\n \"default_payment_method_set\": true,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"name\",\r\n \"last_name\": \"name\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n }\r\n }\r\n ],\r\n \"is_guest_customer\": false\r\n}\r\n```\r\n-> Confirm the payment\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_Nxx6173Q7F2ES49eeMYr/confirm' \\\r\n--header 'api-key: pk_dev_2cbdf84777ed4b15827d8bc8e6b19622' \\\r\n--header 'Content-Type: application/json' \\\r\n--data-raw '{\r\n \"payment_token\": \"token_GN84Zv1iv1sbEpE9Fupv\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method\": \"card\",\r\n \"client_secret\": \"pay_Nxx6173Q7F2ES49eeMYr_secret_2qPhrFGrz8F4ODupztNl\",\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"US\",\r\n \"line1\": \"here\",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Washington\",\r\n \"first_name\": \"One\",\r\n \"last_name\": \"Two\"\r\n },\r\n \"phone\": {\r\n \"number\": \"1234567890\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n }\r\n}'\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_Nxx6173Q7F2ES49eeMYr\",\r\n \"merchant_id\": \"merchant_1732784068\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 10000,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_Nxx6173Q7F2ES49eeMYr_secret_2qPhrFGrz8F4ODupztNl\",\r\n \"created\": \"2024-11-28T08:58:33.763Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1732784125\",\r\n \"customer\": {\r\n \"id\": \"cu_1732784125\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4242\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\r\n \"card_isin\": \"424242\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_GN84Zv1iv1sbEpE9Fupv\",\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"US\",\r\n \"line1\": \"here\",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Washington\",\r\n \"first_name\": \"One\",\r\n \"last_name\": \"Two\"\r\n },\r\n \"phone\": {\r\n \"number\": \"1234567890\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": null,\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"7327843962556379004951\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_Nxx6173Q7F2ES49eeMYr_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_ENrgK0m9AXuOtOMzxFju\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_N3lWoDG7yvB9rbvJFyrb\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-11-28T09:13:33.763Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": null,\r\n \"time_zone\": null,\r\n \"ip_address\": \"::1\",\r\n \"user_agent\": null,\r\n \"color_depth\": null,\r\n \"java_enabled\": null,\r\n \"screen_width\": null,\r\n \"accept_header\": null,\r\n \"screen_height\": null,\r\n \"java_script_enabled\": null\r\n },\r\n \"payment_method_id\": \"pm_qUyvJqDRB16ItLjiBATM\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2024-11-28T08:59:56.654Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n-> Create a cit with stripe and perform the recurring with cybersource\r\n```\r\n{\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"cu_{{$timestamp}}\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"name name\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n \"setup_future_usage\": \"off_session\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"in sit\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"PiX\",\r\n \"last_name\": \"ss\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"125.0.0.1\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {},\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 0,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ]\r\n}\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_mKYKX3ChuavzS7atiqrC\",\r\n \"merchant_id\": \"merchant_1732786757\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 100,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_mKYKX3ChuavzS7atiqrC_secret_aI23DBV8qxTNg2WPESAt\",\r\n \"created\": \"2024-11-28T09:41:01.957Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1732786862\",\r\n \"customer\": {\r\n \"id\": \"cu_1732786862\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4242\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\r\n \"card_isin\": \"424242\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"PiX\",\r\n \"last_name\": \"ss\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": [\r\n {\r\n \"brand\": null,\r\n \"amount\": 0,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"product_id\": null,\r\n \"product_name\": \"Apple iphone 15\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"requires_shipping\": null\r\n }\r\n ],\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cu_1732786862\",\r\n \"created_at\": 1732786861,\r\n \"expires\": 1732790461,\r\n \"secret\": \"epk_2ee23c3779a54e56b9c15816e56d47af\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"pi_3QQ4DaEOqOywnAIx00EgTOEA\",\r\n \"frm_message\": null,\r\n \"metadata\": {},\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pi_3QQ4DaEOqOywnAIx00EgTOEA\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_LHl9xKTts4FUwsDgPIAA\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_PohIcY4T0yRYB4FRQpsG\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-11-28T09:56:01.957Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"125.0.0.1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": \"pm_GuFw64hE9GdwBaAdu60R\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2024-11-28T09:41:04.190Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"pm_1QQ4DaEOqOywnAIxeM9Q73Pt\"\r\n}\r\n```\r\n-> Create payment for same customer\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_vEvPY8nOxGDtjC1IfIgOVDVouV4bfDK1MPyTB2vqPCDjf3QTSaW4lP0UkjDORWi1' \\\r\n--header 'Content-Type: application/json' \\\r\n--data '{\r\n \"amount\": 10000,\r\n \"currency\": \"USD\",\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"three_ds\",\r\n \"confirm\": false,\r\n \"setup_future_usage\": \"off_session\",\r\n \"customer_id\": \"cu_1732786862\"\r\n}'\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_PiKxSAcgYv1SCRuTgbNW\",\r\n \"merchant_id\": \"merchant_1732786757\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": null,\r\n \"client_secret\": \"pay_PiKxSAcgYv1SCRuTgbNW_secret_6PMdd9eOqqYm0XyBvRCs\",\r\n \"created\": \"2024-11-28T09:41:24.895Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1732786862\",\r\n \"customer\": {\r\n \"id\": \"cu_1732786862\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": null,\r\n \"payment_method_data\": null,\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": null,\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": null,\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cu_1732786862\",\r\n \"created_at\": 1732786884,\r\n \"expires\": 1732790484,\r\n \"secret\": \"epk_89b1364c0b6048d9aba374bfee2c68e6\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_LHl9xKTts4FUwsDgPIAA\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": null,\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-11-28T09:56:24.895Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2024-11-28T09:41:24.934Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n-> Customer pml\r\n```\r\ncurl --location 'http://localhost:8080/customers/payment_methods?client_secret=pay_PiKxSAcgYv1SCRuTgbNW_secret_6PMdd9eOqqYm0XyBvRCs' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_c7c7295d08b54d589459ec0e8de731aa'\r\n```\r\n```\r\n{\r\n \"customer_payment_methods\": [\r\n {\r\n \"payment_token\": \"token_WTkWv5zRyilJVfcZFZB4\",\r\n \"payment_method_id\": \"pm_GuFw64hE9GdwBaAdu60R\",\r\n \"customer_id\": \"cu_1732786862\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"payment_method_issuer_code\": null,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false,\r\n \"payment_experience\": [\r\n \"redirect_to_url\"\r\n ],\r\n \"card\": {\r\n \"scheme\": \"Visa\",\r\n \"issuer_country\": \"UNITEDKINGDOM\",\r\n \"last4_digits\": \"4242\",\r\n \"expiry_month\": \"03\",\r\n \"expiry_year\": \"2030\",\r\n \"card_token\": null,\r\n \"card_holder_name\": \"name name\",\r\n \"card_fingerprint\": null,\r\n \"nick_name\": null,\r\n \"card_network\": \"Visa\",\r\n \"card_isin\": \"424242\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_type\": \"CREDIT\",\r\n \"saved_to_locker\": true\r\n },\r\n \"metadata\": null,\r\n \"created\": \"2024-11-28T09:41:04.160Z\",\r\n \"bank\": null,\r\n \"surcharge_details\": null,\r\n \"requires_cvv\": false,\r\n \"last_used_at\": \"2024-11-28T09:41:04.160Z\",\r\n \"default_payment_method_set\": true,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"name\",\r\n \"last_name\": \"name\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n }\r\n }\r\n ],\r\n \"is_guest_customer\": false\r\n}\r\n```\r\n-> Confirm with cybersource\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_PiKxSAcgYv1SCRuTgbNW/confirm' \\\r\n--header 'api-key: pk_dev_c7c7295d08b54d589459ec0e8de731aa' \\\r\n--header 'Content-Type: application/json' \\\r\n--data-raw '{\r\n \"payment_token\": \"token_WTkWv5zRyilJVfcZFZB4\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method\": \"card\",\r\n \"client_secret\": \"pay_PiKxSAcgYv1SCRuTgbNW_secret_6PMdd9eOqqYm0XyBvRCs\",\r\n \"routing\": {\r\n \"type\": \"single\",\r\n \"data\": {\r\n \"connector\": \"cybersource\",\r\n \"merchant_connector_id\": \"mca_XcYZAcIAg28iKuSfTVOm\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"US\",\r\n \"line1\": \"here\",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Washington\",\r\n \"first_name\": \"One\",\r\n \"last_name\": \"Two\"\r\n },\r\n \"phone\": {\r\n \"number\": \"1234567890\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n }\r\n}'\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_PiKxSAcgYv1SCRuTgbNW\",\r\n \"merchant_id\": \"merchant_1732786757\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 10000,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_PiKxSAcgYv1SCRuTgbNW_secret_6PMdd9eOqqYm0XyBvRCs\",\r\n \"created\": \"2024-11-28T09:41:24.895Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1732786862\",\r\n \"customer\": {\r\n \"id\": \"cu_1732786862\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4242\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\r\n \"card_isin\": \"424242\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_WTkWv5zRyilJVfcZFZB4\",\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"US\",\r\n \"line1\": \"here\",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Washington\",\r\n \"first_name\": \"One\",\r\n \"last_name\": \"Two\"\r\n },\r\n \"phone\": {\r\n \"number\": \"1234567890\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": null,\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"7327869509776879404951\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_PiKxSAcgYv1SCRuTgbNW_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_LHl9xKTts4FUwsDgPIAA\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_XcYZAcIAg28iKuSfTVOm\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-11-28T09:56:24.895Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": null,\r\n \"time_zone\": null,\r\n \"ip_address\": \"::1\",\r\n \"user_agent\": null,\r\n \"color_depth\": null,\r\n \"java_enabled\": null,\r\n \"screen_width\": null,\r\n \"accept_header\": null,\r\n \"screen_height\": null,\r\n \"java_script_enabled\": null\r\n },\r\n \"payment_method_id\": \"pm_GuFw64hE9GdwBaAdu60R\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2024-11-28T09:42:31.429Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n-> Psync\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_PiKxSAcgYv1SCRuTgbNW?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_vEvPY8nOxGDtjC1IfIgOVDVouV4bfDK1MPyTB2vqPCDjf3QTSaW4lP0UkjDORWi1'\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_PiKxSAcgYv1SCRuTgbNW\",\r\n \"merchant_id\": \"merchant_1732786757\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 10000,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_PiKxSAcgYv1SCRuTgbNW_secret_6PMdd9eOqqYm0XyBvRCs\",\r\n \"created\": \"2024-11-28T09:41:24.895Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1732786862\",\r\n \"customer\": {\r\n \"id\": \"cu_1732786862\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4242\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\r\n \"card_isin\": \"424242\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_WTkWv5zRyilJVfcZFZB4\",\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"US\",\r\n \"line1\": \"here\",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Washington\",\r\n \"first_name\": \"One\",\r\n \"last_name\": \"Two\"\r\n },\r\n \"phone\": {\r\n \"number\": \"1234567890\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": null,\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"7327869509776879404951\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_PiKxSAcgYv1SCRuTgbNW_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_LHl9xKTts4FUwsDgPIAA\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_XcYZAcIAg28iKuSfTVOm\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-11-28T09:56:24.895Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": null,\r\n \"time_zone\": null,\r\n \"ip_address\": \"::1\",\r\n \"user_agent\": null,\r\n \"color_depth\": null,\r\n \"java_enabled\": null,\r\n \"screen_width\": null,\r\n \"accept_header\": null,\r\n \"screen_height\": null,\r\n \"java_script_enabled\": null\r\n },\r\n \"payment_method_id\": \"pm_GuFw64hE9GdwBaAdu60R\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2024-11-28T09:42:31.429Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "ShankarSinghC",
|
| 6 |
+
"created_at": "2024-11-28T08:03:58+00:00",
|
| 7 |
+
"merged_at": "2024-11-29T10:25:16+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-core",
|
| 11 |
+
"C-bug",
|
| 12 |
+
"A-payment-methods"
|
| 13 |
+
],
|
| 14 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6690",
|
| 15 |
+
"commits": [
|
| 16 |
+
{
|
| 17 |
+
"sha": "7dcba45f2cc6f59b2c16c4cc6b070d337a6ffcc8",
|
| 18 |
+
"message": "pass internet as the commerce_indicator for discover cards",
|
| 19 |
+
"author": "Shankar Singh C",
|
| 20 |
+
"date": "2024-11-28T07:06:29+00:00",
|
| 21 |
+
"url": "https://github.com/juspay/hyperswitch/commit/7dcba45f2cc6f59b2c16c4cc6b070d337a6ffcc8"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"sha": "353051de46f0cc5d910ee8a8ddeaa598ff07d2b3",
|
| 25 |
+
"message": "add network_transaction_id_supported_connectors in production.toml",
|
| 26 |
+
"author": "Shankar Singh C",
|
| 27 |
+
"date": "2024-11-28T07:22:28+00:00",
|
| 28 |
+
"url": "https://github.com/juspay/hyperswitch/commit/353051de46f0cc5d910ee8a8ddeaa598ff07d2b3"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"sha": "936284c8712187997b63b2bd162eb0c71c344da9",
|
| 32 |
+
"message": "populate card network for card details and network transaction id flow",
|
| 33 |
+
"author": "Shankar Singh C",
|
| 34 |
+
"date": "2024-11-28T07:40:50+00:00",
|
| 35 |
+
"url": "https://github.com/juspay/hyperswitch/commit/936284c8712187997b63b2bd162eb0c71c344da9"
|
| 36 |
+
}
|
| 37 |
+
]
|
| 38 |
+
}
|
prs/pr_6705.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6705,
|
| 3 |
+
"title": "chore: address Rust 1.83.0 clippy lints and enable more clippy lints",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nThis PR addresses clippy lints stabilized / enabled in Rust 1.83.0. The major warnings being thrown due to the version bump were [`empty_line_after_doc_comments`](https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments) and [`empty_line_after_outer_attr`](https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr), and very few were from [`needless_lifetimes`](https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes). Consequently, addressing these involved removing some blank lines after doc comments and attributes, and removing the unnecessary lifetime annotations.\r\n\r\nIn addition, this PR enables and addresses the following lints:\r\n\r\n- [`cloned_instead_of_copied`](https://rust-lang.github.io/rust-clippy/master/index.html#cloned_instead_of_copied): Checks for usage of `cloned()` on an `Iterator` or `Option` where `copied()` could be used instead.\r\n- [`dbg_macro`](https://rust-lang.github.io/rust-clippy/master/index.html#dbg_macro): Checks for usage of the `dbg!` macro.\r\n- [`fn_params_excessive_bools`](https://rust-lang.github.io/rust-clippy/master/index.html#fn_params_excessive_bools): Checks for excessive use of bools in function definitions, suggests two-variant enums instead. The maximum number of boolean params allowed by default is 3.\r\n - There's also [`struct_excessive_bools`](https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools) which warns about excessive usage of bools in structs, which I did NOT enable, since some of the fields in say business profile are bools, which toggle specific features of behavior and may not be easily replaceable with enums.\r\n- [`mod_module_files`](https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files): Warns if `mod.rs` files are included in the module structure.\r\n- [`unnecessary_self_imports`](https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_self_imports): Checks for imports ending in `::{self}`.\r\n- [`wildcard_dependencies`](https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_dependencies): Checks for wildcard dependencies in the `Cargo.toml`.\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\nResolves #6704.\r\n\r\nAs for the new lints enabled, they should help ensure better consistency throughout the codebase and help enforce certain practices.\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nFrom what I'd expect, none of the existing behavior should be affected due to these changes. Our Postman and Cypress tests running on CI should pass, as before.\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "SanchithHegde",
|
| 6 |
+
"created_at": "2024-12-01T18:55:46+00:00",
|
| 7 |
+
"merged_at": "2024-12-02T14:57:14+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"C-refactor",
|
| 11 |
+
"M-api-contract-changes"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6705",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "53c9df517e70d0449c8c539c9eebd1026e050b50",
|
| 17 |
+
"message": "chore: address Rust 1.83 clippy lints",
|
| 18 |
+
"author": "Sanchith Hegde",
|
| 19 |
+
"date": "2024-11-29T11:53:48+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/53c9df517e70d0449c8c539c9eebd1026e050b50"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sha": "8fd7bab3d3ae814ce1aa09c8efe79ddbc6906cbc",
|
| 24 |
+
"message": "chore: remove leading and trailing blank documentation comment lines",
|
| 25 |
+
"author": "Sanchith Hegde",
|
| 26 |
+
"date": "2024-11-29T18:44:04+00:00",
|
| 27 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8fd7bab3d3ae814ce1aa09c8efe79ddbc6906cbc"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"sha": "d44bb00cc11c6b3bae23febe7f40d1d9068c5ad4",
|
| 31 |
+
"message": "chore: enable some lints and address them\n\nThe following lints are now enabled:\n- cloned_instead_of_copied\n- dbg_macro\n- fn_params_excessive_bools\n- mod_module_files\n- unnecessary_self_imports\n- wildcard_dependencies",
|
| 32 |
+
"author": "Sanchith Hegde",
|
| 33 |
+
"date": "2024-11-30T18:32:57+00:00",
|
| 34 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d44bb00cc11c6b3bae23febe7f40d1d9068c5ad4"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"sha": "9334aec9aedad7ea331bdf6787802a889f01d223",
|
| 38 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 39 |
+
"author": "Sanchith Hegde",
|
| 40 |
+
"date": "2024-12-01T19:02:44+00:00",
|
| 41 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9334aec9aedad7ea331bdf6787802a889f01d223"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"sha": "2f6b343f337e5b3f5e8681051963efffef2f9951",
|
| 45 |
+
"message": "Merge branch 'main' into address-1.83-clippy-lints",
|
| 46 |
+
"author": "Sanchith Hegde",
|
| 47 |
+
"date": "2024-12-02T10:36:17+00:00",
|
| 48 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2f6b343f337e5b3f5e8681051963efffef2f9951"
|
| 49 |
+
}
|
| 50 |
+
]
|
| 51 |
+
}
|
prs/pr_6710.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6710,
|
| 3 |
+
"title": "chore: wasm paze additional details",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nAddition details for Paze Wallet\r\n\r\n<img width=\"569\" alt=\"image\" src=\"https://github.com/user-attachments/assets/fc751564-b9ba-464c-b094-f4bb01bb8124\">\r\n\r\n<!-- Describe your changes in detail -->\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "JeevaRamu0104",
|
| 6 |
+
"created_at": "2024-12-02T06:54:46+00:00",
|
| 7 |
+
"merged_at": "2024-12-04T09:54:38+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-core",
|
| 11 |
+
"A-euclid-foc"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6710",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "012100b374a4b6621b51a6791343c7ec757a530c",
|
| 17 |
+
"message": "Merge branch 'main' of github.com:juspay/hyperswitch",
|
| 18 |
+
"author": "Jeeva Ramachandran",
|
| 19 |
+
"date": "2024-10-23T12:13:09+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/012100b374a4b6621b51a6791343c7ec757a530c"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sha": "687e40bf3942c44406fa1c10f986c0d94cb6f398",
|
| 24 |
+
"message": "Merge branch 'main' of github.com:juspay/hyperswitch",
|
| 25 |
+
"author": "Jeeva Ramachandran",
|
| 26 |
+
"date": "2024-10-28T11:03:26+00:00",
|
| 27 |
+
"url": "https://github.com/juspay/hyperswitch/commit/687e40bf3942c44406fa1c10f986c0d94cb6f398"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"sha": "ed5114ca95ec8a4b4ec0d294eb531716d4d86012",
|
| 31 |
+
"message": "Merge branch 'main' of github.com:juspay/hyperswitch",
|
| 32 |
+
"author": "Jeeva Ramachandran",
|
| 33 |
+
"date": "2024-11-29T06:40:40+00:00",
|
| 34 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ed5114ca95ec8a4b4ec0d294eb531716d4d86012"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"sha": "24073809ebf90c6cf972a3155483358cdf58c8db",
|
| 38 |
+
"message": "Merge branch 'main' of github.com:juspay/hyperswitch into paze-additional-details",
|
| 39 |
+
"author": "Jeeva Ramachandran",
|
| 40 |
+
"date": "2024-12-02T06:21:44+00:00",
|
| 41 |
+
"url": "https://github.com/juspay/hyperswitch/commit/24073809ebf90c6cf972a3155483358cdf58c8db"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"sha": "76c3b143f61c87f87c6101b9da9d7beebd29e8cd",
|
| 45 |
+
"message": "chore: add paze additional details",
|
| 46 |
+
"author": "Jeeva Ramachandran",
|
| 47 |
+
"date": "2024-12-02T06:30:03+00:00",
|
| 48 |
+
"url": "https://github.com/juspay/hyperswitch/commit/76c3b143f61c87f87c6101b9da9d7beebd29e8cd"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"sha": "d31c52b156284f9d7215377463dd3d2cc1499ccf",
|
| 52 |
+
"message": "Merge branch 'main' into paze-additional-details",
|
| 53 |
+
"author": "Jeeva Ramachandran",
|
| 54 |
+
"date": "2024-12-02T14:10:10+00:00",
|
| 55 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d31c52b156284f9d7215377463dd3d2cc1499ccf"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"sha": "e4a6694bee28ca52e81123d4b9414a4e78922c51",
|
| 59 |
+
"message": "Merge branch 'main' into paze-additional-details",
|
| 60 |
+
"author": "Jeeva Ramachandran",
|
| 61 |
+
"date": "2024-12-03T03:57:01+00:00",
|
| 62 |
+
"url": "https://github.com/juspay/hyperswitch/commit/e4a6694bee28ca52e81123d4b9414a4e78922c51"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"sha": "13aec10c0d7b183c58249fbd3cefc4c887b25f6c",
|
| 66 |
+
"message": "Merge branch 'main' into paze-additional-details",
|
| 67 |
+
"author": "Jeeva Ramachandran",
|
| 68 |
+
"date": "2024-12-04T05:41:54+00:00",
|
| 69 |
+
"url": "https://github.com/juspay/hyperswitch/commit/13aec10c0d7b183c58249fbd3cefc4c887b25f6c"
|
| 70 |
+
}
|
| 71 |
+
]
|
| 72 |
+
}
|
prs/pr_6720.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6720,
|
| 3 |
+
"title": "fix(connector): adyen - propagate connector mandate details in incoming webhooks",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nDescribed in the linked #6719 \r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\nEnsures mandate details are stored for Adyen.\r\n\r\n## How did you test it?\r\nSince this is an intermittent scenario, webhooks flow was tested locally by disabling propagation of mandate details during PSync flow for Adyen.\r\n\r\n`connector_mandate_details` is populate post receiving the webhooks\r\n<img width=\"1341\" alt=\"Screenshot 2024-12-02 at 8 30 39\u202fPM\" src=\"https://github.com/user-attachments/assets/e488b0e1-e7cf-45a5-b706-cfe77ff50a85\">\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "kashif-m",
|
| 6 |
+
"created_at": "2024-12-02T11:18:44+00:00",
|
| 7 |
+
"merged_at": "2024-12-02T18:30:38+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-connector-integration"
|
| 11 |
+
],
|
| 12 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6720",
|
| 13 |
+
"commits": [
|
| 14 |
+
{
|
| 15 |
+
"sha": "b28645ca0ddd1102c15e6a3d7ba0d293ae9bf6ab",
|
| 16 |
+
"message": "fix(connector): adyen - propagate connector mandate details in incoming webhooks",
|
| 17 |
+
"author": "Kashif",
|
| 18 |
+
"date": "2024-12-02T08:58:35+00:00",
|
| 19 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b28645ca0ddd1102c15e6a3d7ba0d293ae9bf6ab"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"sha": "e980b2b893ffa071d14ea18c365371c52fbfb942",
|
| 23 |
+
"message": "Merge remote-tracking branch 'origin/main' into 6719-bug-mandate-details-are-not-persisted-for-adyen-connector",
|
| 24 |
+
"author": "Kashif",
|
| 25 |
+
"date": "2024-12-02T11:16:10+00:00",
|
| 26 |
+
"url": "https://github.com/juspay/hyperswitch/commit/e980b2b893ffa071d14ea18c365371c52fbfb942"
|
| 27 |
+
}
|
| 28 |
+
]
|
| 29 |
+
}
|
prs/pr_6722.json
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6722,
|
| 3 |
+
"title": "feat(payments_v2): implement payments capture v2",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] New feature\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nThis PR introduces payments capture endpoint for the v2 version. \r\n\r\nThis PR also changes the `GenerateResponse` trait to be implemented on the payment data. The new trait looks like this\r\n```rust\r\n\r\npub trait GenerateResponse<Response>\r\nwhere\r\n Self: Sized,\r\n{\r\n #[cfg(feature = \"v2\")]\r\n fn generate_response(\r\n self,\r\n state: &SessionState,\r\n connector_http_status_code: Option<u16>,\r\n external_latency: Option<u128>,\r\n is_latency_header_enabled: Option<bool>,\r\n merchant_account: &domain::MerchantAccount,\r\n ) -> RouterResponse<Response>;\r\n}\r\n```\r\n\r\nAlso the fields in `AttemptAmountDetails` are made as private, necessary getters and setters are provided to work with these fields.\r\n\r\nResolved some of the clippy warnings for v2.\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n<details>\r\n\r\n<summary>\r\nCreate a payment with automatic capture\r\n</summary>\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/create-intent' \\\r\n--header 'api-key: dev_WvQ9nNM8yudKrDcVqh3FrURJm3HMKU3tmxMFKnlZef9Hkhyxy1r9A89I4s03jO9h' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-profile-id: pro_MxajZP8J2IgEXmAs0MpY' \\\r\n--data '{\r\n \"amount_details\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\"\r\n },\r\n \"capture_method\":\"automatic\",\r\n \"authentication_type\": \"no_three_ds\"\r\n}'\r\n```\r\n\r\n- Response \r\n\r\n```json\r\n{\r\n \"id\": \"12345_pay_0193882e51ac7692905c3279518700eb\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount_details\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"skip_external_tax_calculation\": \"Skip\",\r\n \"skip_surcharge_calculation\": \"Skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null\r\n },\r\n \"client_secret\": \"12345_pay_0193882e51ac7692905c3279518700eb_secret_0193882e51ac7692905c3284173ac888\",\r\n \"merchant_reference_id\": null,\r\n \"routing_algorithm_id\": null,\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"billing\": null,\r\n \"shipping\": null,\r\n \"customer_id\": null,\r\n \"customer_present\": \"Present\",\r\n \"description\": null,\r\n \"return_url\": null,\r\n \"setup_future_usage\": \"on_session\",\r\n \"apply_mit_exemption\": \"Skip\",\r\n \"statement_descriptor\": null,\r\n \"order_details\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"payment_link_enabled\": \"Skip\",\r\n \"payment_link_config\": null,\r\n \"request_incremental_authorization\": \"default\",\r\n \"expires_on\": \"2024-12-02T16:37:37.228Z\",\r\n \"frm_metadata\": null,\r\n \"request_external_three_ds_authentication\": \"Skip\"\r\n}\r\n```\r\n\r\n</details>\r\n\r\n\r\n<details>\r\n\r\n<summary> Confirm the payment intent </summary>\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_0193882e51ac7692905c3279518700eb/confirm-intent' \\\r\n--header 'x-client-secret: 12345_pay_0193882e51ac7692905c3279518700eb_secret_0193882e51ac7692905c3284173ac888' \\\r\n--header 'x-profile-id: pro_MxajZP8J2IgEXmAs0MpY' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: pk_dev_538be9702de84258b89c6ac654f5ecb1' \\\r\n--data '{\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"card_cvc\": \"100\"\r\n }\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\"\r\n}'\r\n```\r\n\r\n- In the response, `amount_capturable` should be 0 indicating that no amount can be captured further. `amount_captured` should be equal to the net amount.\r\n\r\n```json\r\n{\r\n \"id\": \"12345_pay_0193882e51ac7692905c3279518700eb\",\r\n \"status\": \"succeeded\",\r\n \"amount\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"skip_external_tax_calculation\": \"Skip\",\r\n \"skip_surcharge_calculation\": \"Skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"net_amount\": 100,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_captured\": 100\r\n },\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"12345_pay_0193882e51ac7692905c3279518700eb_secret_0193882e51ac7692905c3284173ac888\",\r\n \"created\": \"2024-12-02T16:22:37.228Z\",\r\n \"payment_method_data\": null,\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"next_action\": null,\r\n \"connector_transaction_id\": \"pi_3QRcOZD5R7gDAGff1DNcLrku\",\r\n \"connector_reference_id\": null,\r\n \"merchant_connector_id\": \"mca_viTlEW768QtaKIyYYGjl\",\r\n \"browser_info\": null,\r\n \"error\": null\r\n}\r\n```\r\n\r\n</details>\r\n\r\n\r\n<details>\r\n\r\n<summary> Create a payment with manual capture </summary>\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/create-intent' \\\r\n--header 'api-key: dev_WvQ9nNM8yudKrDcVqh3FrURJm3HMKU3tmxMFKnlZef9Hkhyxy1r9A89I4s03jO9h' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-profile-id: pro_MxajZP8J2IgEXmAs0MpY' \\\r\n--data '{\r\n \"amount_details\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\"\r\n },\r\n \"capture_method\":\"manual\",\r\n \"authentication_type\": \"no_three_ds\"\r\n}'\r\n```\r\n\r\n</details>\r\n\r\n<details>\r\n\r\n<summary> Confirm the payment intent </summary>\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/create-intent' \\\r\n--header 'api-key: dev_WvQ9nNM8yudKrDcVqh3FrURJm3HMKU3tmxMFKnlZef9Hkhyxy1r9A89I4s03jO9h' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-profile-id: pro_MxajZP8J2IgEXmAs0MpY' \\\r\n--data '{\r\n \"amount_details\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\"\r\n },\r\n \"capture_method\":\"manual\",\r\n \"authentication_type\": \"no_three_ds\"\r\n}'\r\n```\r\n\r\n- The status should be `requires_capture`, with `amount_capturable` equal to the net amount\r\n```json\r\n{\r\n \"id\": \"12345_pay_0193967efce773d38d2db5dcd00df061\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"net_amount\": 100,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 100,\r\n \"amount_captured\": 0\r\n },\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"12345_pay_0193967efce773d38d2db5dcd00df061_secret_0193967efce87481a4075ab617dba612\",\r\n \"created\": \"2024-12-05T11:05:24.969Z\",\r\n \"payment_method_data\": {\r\n \"billing\": null\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"next_action\": null,\r\n \"connector_transaction_id\": \"pi_3QScs9D5R7gDAGff1Vn6BBrV\",\r\n \"connector_reference_id\": null,\r\n \"merchant_connector_id\": \"mca_VyXpopmpz9vwaQaNhmER\",\r\n \"browser_info\": null,\r\n \"error\": null\r\n}\r\n```\r\n\r\n</details>\r\n\r\n\r\n<details>\r\n\r\n<summary>Capture the payment </summary>\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_019396c5a45870c1a45722b60b0159b5/capture' \\\r\n--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \\\r\n--data '{}'\r\n```\r\n\r\n- Response\r\n```json\r\n{\r\n \"id\": \"12345_pay_019396c5a45870c1a45722b60b0159b5\",\r\n \"status\": \"succeeded\",\r\n \"amount\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"net_amount\": 100,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_captured\": 100\r\n }\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary> Create a 3DS payment </summary>\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/create-intent' \\\r\n--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \\\r\n--data-raw '{\r\n \"amount_details\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\"\r\n },\r\n \"capture_method\":\"manual\",\r\n \"authentication_type\": \"three_ds\",\r\n \"billing\": {\r\n \"address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Dough\"\r\n },\r\n \"email\": \"example@example.com\"\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Dough\",\r\n \"city\": \"Karwar\",\r\n \"zip\": \"581301\",\r\n \"state\": \"Karnataka\"\r\n },\r\n \"email\": \"example@example.com\"\r\n }\r\n}'\r\n```\r\n\r\n- Response \r\n```json\r\n{\r\n \"id\": \"12345_pay_019396c80c8074d0a664df3d3a194856\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount_details\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null\r\n },\r\n \"client_secret\": \"12345_pay_019396c80c8074d0a664df3d3a194856_secret_019396c80c8074d0a664df4671f65402\",\r\n \"profile_id\": \"pro_ByYDje1ZZELFwRyx8IIS\",\r\n \"merchant_reference_id\": null,\r\n \"routing_algorithm_id\": null,\r\n \"capture_method\": \"manual\",\r\n \"authentication_type\": \"three_ds\",\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": null,\r\n \"country\": null,\r\n \"line1\": null,\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": null,\r\n \"state\": null,\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Dough\"\r\n },\r\n \"phone\": null,\r\n \"email\": \"example@example.com\"\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"Karwar\",\r\n \"country\": null,\r\n \"line1\": null,\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"581301\",\r\n \"state\": \"Karnataka\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Dough\"\r\n },\r\n \"phone\": null,\r\n \"email\": \"example@example.com\"\r\n },\r\n \"customer_id\": null,\r\n \"customer_present\": \"Present\",\r\n \"description\": null,\r\n \"return_url\": null,\r\n \"setup_future_usage\": \"on_session\",\r\n \"apply_mit_exemption\": \"Skip\",\r\n \"statement_descriptor\": null,\r\n \"order_details\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"payment_link_enabled\": \"Skip\",\r\n \"payment_link_config\": null,\r\n \"request_incremental_authorization\": \"default\",\r\n \"expires_on\": \"2024-12-05T12:40:13.089Z\",\r\n \"frm_metadata\": null,\r\n \"request_external_three_ds_authentication\": \"Skip\"\r\n}\r\n```\r\n\r\n- Confirm the payment intent\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_019396cc683b7a2195085791a9018983/confirm-intent' \\\r\n--header 'x-client-secret: 12345_pay_019396cc683b7a2195085791a9018983_secret_019396cc683c72e3a33309c8f573d29e' \\\r\n--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: pk_dev_1896564f01cc4ffc8039f4e538a43b88' \\\r\n--data '{\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"card_cvc\": \"100\"\r\n }\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\"\r\n}'\r\n```\r\n\r\n- Response\r\n```json\r\n{\r\n \"id\": \"12345_pay_019396cc683b7a2195085791a9018983\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"net_amount\": 100,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_captured\": null\r\n },\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"12345_pay_019396cc683b7a2195085791a9018983_secret_019396cc683c72e3a33309c8f573d29e\",\r\n \"created\": \"2024-12-05T12:29:58.716Z\",\r\n \"payment_method_data\": {\r\n \"billing\": null\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"next_action\": {\r\n \"type\": \"redirect_to_url\",\r\n \"redirect_to_url\": \"http://localhost:8080/v2/payments/12345_pay_019396cc683b7a2195085791a9018983/start-redirection?publishable_key=pk_dev_1896564f01cc4ffc8039f4e538a43b88&profile_id=pro_ByYDje1ZZELFwRyx8IIS\"\r\n },\r\n \"connector_transaction_id\": \"pi_3QSeC3D5R7gDAGff0mIJA1Wg\",\r\n \"connector_reference_id\": null,\r\n \"merchant_connector_id\": \"mca_VyXpopmpz9vwaQaNhmER\",\r\n \"browser_info\": null,\r\n \"error\": null\r\n}\r\n```\r\n\r\n- Complete the redirection\r\n\r\n\r\n- Retrieve the payment\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_019396cc683b7a2195085791a9018983' \\\r\n--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \\\r\n--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \\\r\n--data ''\r\n```\r\n\r\n- Response\r\n```json\r\n{\r\n \"id\": \"12345_pay_019396cc683b7a2195085791a9018983\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"net_amount\": 100,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 100,\r\n \"amount_captured\": 100\r\n },\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"12345_pay_019396cc683b7a2195085791a9018983_secret_019396cc683c72e3a33309c8f573d29e\",\r\n \"created\": \"2024-12-05T12:29:58.716Z\",\r\n \"payment_method_data\": {\r\n \"billing\": null\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_transaction_id\": \"pi_3QSeC3D5R7gDAGff0mIJA1Wg\",\r\n \"connector_reference_id\": null,\r\n \"merchant_connector_id\": \"mca_VyXpopmpz9vwaQaNhmER\",\r\n \"browser_info\": null,\r\n \"error\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"Karwar\",\r\n \"country\": null,\r\n \"line1\": null,\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"581301\",\r\n \"state\": \"Karnataka\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Dough\"\r\n },\r\n \"phone\": null,\r\n \"email\": \"example@example.com\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": null,\r\n \"country\": null,\r\n \"line1\": null,\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": null,\r\n \"state\": null,\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Dough\"\r\n },\r\n \"phone\": null,\r\n \"email\": \"example@example.com\"\r\n }\r\n}\r\n```\r\n\r\n- Capture the payment\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_019396cc683b7a2195085791a9018983/capture' \\\r\n--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \\\r\n--data '{}'\r\n```\r\n\r\n- Response\r\n```json\r\n{\r\n \"id\": \"12345_pay_019396cc683b7a2195085791a9018983\",\r\n \"status\": \"succeeded\",\r\n \"amount\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"net_amount\": 100,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_captured\": 100\r\n }\r\n}\r\n```\r\n</details>\r\n\r\n\r\n<details>\r\n\r\n<summary> Create a partial capture</summary>\r\n\r\n- Create a payment\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/create-intent' \\\r\n--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \\\r\n--data-raw '{\r\n \"amount_details\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\"\r\n },\r\n \"capture_method\":\"manual\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"billing\": {\r\n \"address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Dough\"\r\n },\r\n \"email\": \"example@example.com\"\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Dough\",\r\n \"city\": \"Karwar\",\r\n \"zip\": \"581301\",\r\n \"state\": \"Karnataka\"\r\n },\r\n \"email\": \"example@example.com\"\r\n }\r\n}'\r\n```\r\n\r\n- Response\r\n```json\r\n{\r\n \"id\": \"12345_pay_019396d160917c41baa6130f8716dbb7\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount_details\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null\r\n },\r\n \"client_secret\": \"12345_pay_019396d160917c41baa6130f8716dbb7_secret_019396d160917c41baa6131341a1bc9e\",\r\n \"profile_id\": \"pro_ByYDje1ZZELFwRyx8IIS\",\r\n \"merchant_reference_id\": null,\r\n \"routing_algorithm_id\": null,\r\n \"capture_method\": \"manual\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": null,\r\n \"country\": null,\r\n \"line1\": null,\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": null,\r\n \"state\": null,\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Dough\"\r\n },\r\n \"phone\": null,\r\n \"email\": \"example@example.com\"\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"Karwar\",\r\n \"country\": null,\r\n \"line1\": null,\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"581301\",\r\n \"state\": \"Karnataka\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Dough\"\r\n },\r\n \"phone\": null,\r\n \"email\": \"example@example.com\"\r\n },\r\n \"customer_id\": null,\r\n \"customer_present\": \"Present\",\r\n \"description\": null,\r\n \"return_url\": null,\r\n \"setup_future_usage\": \"on_session\",\r\n \"apply_mit_exemption\": \"Skip\",\r\n \"statement_descriptor\": null,\r\n \"order_details\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"payment_link_enabled\": \"Skip\",\r\n \"payment_link_config\": null,\r\n \"request_incremental_authorization\": \"default\",\r\n \"expires_on\": \"2024-12-05T12:50:24.434Z\",\r\n \"frm_metadata\": null,\r\n \"request_external_three_ds_authentication\": \"Skip\"\r\n}\r\n```\r\n\r\n- confirm the payment\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_019396d160917c41baa6130f8716dbb7/confirm-intent' \\\r\n--header 'x-client-secret: 12345_pay_019396d160917c41baa6130f8716dbb7_secret_019396d160917c41baa6131341a1bc9e' \\\r\n--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: pk_dev_1896564f01cc4ffc8039f4e538a43b88' \\\r\n--data '{\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"card_cvc\": \"100\"\r\n }\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\"\r\n}'\r\n```\r\n\r\n- Response\r\n```json\r\n{\r\n \"id\": \"12345_pay_019396d160917c41baa6130f8716dbb7\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"net_amount\": 100,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 100,\r\n \"amount_captured\": 0\r\n },\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"12345_pay_019396d160917c41baa6130f8716dbb7_secret_019396d160917c41baa6131341a1bc9e\",\r\n \"created\": \"2024-12-05T12:35:24.434Z\",\r\n \"payment_method_data\": {\r\n \"billing\": null\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"next_action\": null,\r\n \"connector_transaction_id\": \"pi_3QSeIyD5R7gDAGff1woLG5lU\",\r\n \"connector_reference_id\": null,\r\n \"merchant_connector_id\": \"mca_VyXpopmpz9vwaQaNhmER\",\r\n \"browser_info\": null,\r\n \"error\": null\r\n}\r\n```\r\n\r\n- Capture the payment with `amount_to_capture`\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_019396d160917c41baa6130f8716dbb7/capture' \\\r\n--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \\\r\n--data '{\r\n \"amount_to_capture\": 69\r\n}'\r\n```\r\n\r\n- Response, status should be `partially_captured`\r\n```json\r\n{\r\n \"id\": \"12345_pay_019396d160917c41baa6130f8716dbb7\",\r\n \"status\": \"partially_captured\",\r\n \"amount\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"net_amount\": 100,\r\n \"amount_to_capture\": 69,\r\n \"amount_capturable\": 0,\r\n \"amount_captured\": 69\r\n }\r\n}\r\n```\r\n\r\n\r\n</details>\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n",
|
| 5 |
+
"author": "Narayanbhat166",
|
| 6 |
+
"created_at": "2024-12-02T16:27:13+00:00",
|
| 7 |
+
"merged_at": "2024-12-20T15:53:01+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"M-api-contract-changes",
|
| 11 |
+
"api-v2"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6722",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "b9ff05360df5c20d0aca3afb53b9811ffc054de1",
|
| 17 |
+
"message": "feat(payments_v2): implement payments capture v2",
|
| 18 |
+
"author": "Narayan Bhat",
|
| 19 |
+
"date": "2024-12-02T16:00:33+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b9ff05360df5c20d0aca3afb53b9811ffc054de1"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sha": "8874a1d450555a04119f4b975132c01956ed3fd7",
|
| 24 |
+
"message": "Merge branch 'main' into payments_capture_v2",
|
| 25 |
+
"author": "Narayan Bhat",
|
| 26 |
+
"date": "2024-12-02T19:46:14+00:00",
|
| 27 |
+
"url": "https://github.com/juspay/hyperswitch/commit/8874a1d450555a04119f4b975132c01956ed3fd7"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"sha": "ff28a6ce718dd8819b7cdc1837262daf7585a9c6",
|
| 31 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 32 |
+
"author": "hyperswitch-bot[bot]",
|
| 33 |
+
"date": "2024-12-02T19:49:10+00:00",
|
| 34 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ff28a6ce718dd8819b7cdc1837262daf7585a9c6"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"sha": "25c19d2338bcf96825f3ae1894132f4606f430ef",
|
| 38 |
+
"message": "chore: cargo clippy",
|
| 39 |
+
"author": "Narayan Bhat",
|
| 40 |
+
"date": "2024-12-03T07:45:25+00:00",
|
| 41 |
+
"url": "https://github.com/juspay/hyperswitch/commit/25c19d2338bcf96825f3ae1894132f4606f430ef"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"sha": "4e14701e927822e749cf71b4f3010e808c511bc3",
|
| 45 |
+
"message": "chore: cargo clippy_v2",
|
| 46 |
+
"author": "Narayan Bhat",
|
| 47 |
+
"date": "2024-12-03T07:52:19+00:00",
|
| 48 |
+
"url": "https://github.com/juspay/hyperswitch/commit/4e14701e927822e749cf71b4f3010e808c511bc3"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"sha": "2a790cea3c792586ccba11f3e11fdd9b7a4e02e9",
|
| 52 |
+
"message": "chore: cargo clippy_v2",
|
| 53 |
+
"author": "Narayan Bhat",
|
| 54 |
+
"date": "2024-12-03T11:11:29+00:00",
|
| 55 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2a790cea3c792586ccba11f3e11fdd9b7a4e02e9"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"sha": "52786abf9a5f9a7ae5ad8df90c590e8f9b33c223",
|
| 59 |
+
"message": "refactor: add validation for amount_to_capture",
|
| 60 |
+
"author": "Narayan Bhat",
|
| 61 |
+
"date": "2024-12-04T11:15:26+00:00",
|
| 62 |
+
"url": "https://github.com/juspay/hyperswitch/commit/52786abf9a5f9a7ae5ad8df90c590e8f9b33c223"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"sha": "21361558d77b7e16331c4a738567bd680e8a57f9",
|
| 66 |
+
"message": "Merge branch 'main' into payments_capture_v2",
|
| 67 |
+
"author": "Narayan Bhat",
|
| 68 |
+
"date": "2024-12-04T14:10:19+00:00",
|
| 69 |
+
"url": "https://github.com/juspay/hyperswitch/commit/21361558d77b7e16331c4a738567bd680e8a57f9"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"sha": "52ba04b7884850f87169c23bb359ccb11ac7127d",
|
| 73 |
+
"message": "docs(openapi): re-generate OpenAPI specification",
|
| 74 |
+
"author": "hyperswitch-bot[bot]",
|
| 75 |
+
"date": "2024-12-04T15:03:22+00:00",
|
| 76 |
+
"url": "https://github.com/juspay/hyperswitch/commit/52ba04b7884850f87169c23bb359ccb11ac7127d"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"sha": "ed9d2b0f5007752bb074534d3208f2f61b30faf5",
|
| 80 |
+
"message": "chore: cargo clippy_v2",
|
| 81 |
+
"author": "Narayan Bhat",
|
| 82 |
+
"date": "2024-12-05T06:26:48+00:00",
|
| 83 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ed9d2b0f5007752bb074534d3208f2f61b30faf5"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"sha": "2ef4a383cecd653594de5206c2ccd5e84b0f8ed8",
|
| 87 |
+
"message": "chore: change field order in response",
|
| 88 |
+
"author": "Narayan Bhat",
|
| 89 |
+
"date": "2024-12-06T10:29:52+00:00",
|
| 90 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2ef4a383cecd653594de5206c2ccd5e84b0f8ed8"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"sha": "aa53b740402c273805b89b61ff3772bfddaa6d1c",
|
| 94 |
+
"message": "Merge branch 'main' into payments_capture_v2",
|
| 95 |
+
"author": "Narayanbhat166",
|
| 96 |
+
"date": "2024-12-18T19:22:43+00:00",
|
| 97 |
+
"url": "https://github.com/juspay/hyperswitch/commit/aa53b740402c273805b89b61ff3772bfddaa6d1c"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"sha": "3e17fe2c2caa5240664d16d94c9bf3f1c11f4c15",
|
| 101 |
+
"message": "chore: cargo clippy",
|
| 102 |
+
"author": "Narayanbhat166",
|
| 103 |
+
"date": "2024-12-18T19:40:13+00:00",
|
| 104 |
+
"url": "https://github.com/juspay/hyperswitch/commit/3e17fe2c2caa5240664d16d94c9bf3f1c11f4c15"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"sha": "f1d2447e3518fa2bed66ea69e81ac81c24ad112a",
|
| 108 |
+
"message": "chore: fix typo",
|
| 109 |
+
"author": "Narayanbhat166",
|
| 110 |
+
"date": "2024-12-19T06:08:04+00:00",
|
| 111 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f1d2447e3518fa2bed66ea69e81ac81c24ad112a"
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"sha": "2b4995f93d390698e28390661a223cbfc4fad587",
|
| 115 |
+
"message": "Merge branch 'main' into payments_capture_v2",
|
| 116 |
+
"author": "Narayanbhat166",
|
| 117 |
+
"date": "2024-12-19T09:54:27+00:00",
|
| 118 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2b4995f93d390698e28390661a223cbfc4fad587"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"sha": "92f2034543ec0dbd83f2ff68f28212742a4229a4",
|
| 122 |
+
"message": "chore: cargo clippy_v2",
|
| 123 |
+
"author": "Narayanbhat166",
|
| 124 |
+
"date": "2024-12-19T09:54:49+00:00",
|
| 125 |
+
"url": "https://github.com/juspay/hyperswitch/commit/92f2034543ec0dbd83f2ff68f28212742a4229a4"
|
| 126 |
+
}
|
| 127 |
+
]
|
| 128 |
+
}
|
prs/pr_6725.json
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6725,
|
| 3 |
+
"title": "feat(core): payment links - add support for custom background image and layout in details section",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nThis PR introduces UI revamps to the payment links by including below changes - (described in #6711)\r\n- Introduce `branding_visibility` in business profile's payment link config\r\n- Introduce `details_layout` and `background_image` in both business profile and payments create API\r\n- Consume these values in payment link's template\r\n\r\nThere are two additional changes which are mentioned below\r\n- Always use SDK's top redirection in payment links\r\n- Update connector_list ENV config for `network_transaction_id_supported_connectors`\r\n\r\n### Additional Changes\r\n\r\n- [x] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\nHelps configure details section for payment links, and fixes a few existing bugs around logos.\r\n\r\n## How did you test it?\r\n\r\n<details>\r\n <summary>Overview</summary>\r\n\r\nThings to test and verify -\r\n\r\n1. Background image in details section\r\n - Provision for background images is added in the details section of the payment links\r\n - Below configs are provided for configuring the image\r\n - Image URL\r\n - Image width\r\n - Image positioning\r\n2. Feasibility of rectangular images as logo\r\n - Images with rectagular dimenstions can be used as merchant logo\r\n3. Branding visibility\r\n - HyperSwitch branding toggle in the payment links\r\n4. Layouts for details section\r\n - Multiple layouts for details section\r\n - Layout1\r\n - Layout2\r\n\r\n</details>\r\n\r\n<details>\r\n <summary>Steps for testing</summary>\r\n\r\n*Details layout*\r\n- Provision for configuring `details_layout` is at both profile level and at payments API level\r\n<details>\r\n <summary>1. Default layout (layout1) </summary>\r\n\r\n- Create a default payment link (without configuring `details_layout`)\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'api-key: dev_CWKVSn8Qjyb1Qjt6AGNmivVRPm3mgmoS9GDhKPvTB7vVVAbktxV6wPnX3QcJNstt' \\\r\n --data-raw '{\"authentication_type\":\"three_ds\",\"customer_id\":\"cus_rFGS1qK0MTSxdj0m5aqo\",\"profile_id\":\"pro_r48ZhNBTND9A4PAc5rHT\",\"amount\":100,\"currency\":\"HKD\",\"payment_link\":true,\"setup_future_usage\":\"off_session\",\"description\":\"This is my description of why this payment was requested.\",\"connector\":[\"adyen\"],\"capture_method\":\"automatic\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"email\":\"john.doe@example.com\",\"session_expiry\":100000,\"return_url\":\"https://example.com\",\"payment_link_config\":{\"theme\":\"#14356f\",\"logo\":\"https://static.wikia.nocookie.net/logopedia/images/4/41/Zurich-1997-Horizontal.png\",\"seller_name\":\"Hyperswitch Inc.\"}}'\r\n\r\n<img width=\"1728\" alt=\"Screenshot 2024-12-06 at 11 37 58\u202fAM\" src=\"https://github.com/user-attachments/assets/2a8c02a7-6083-44d2-9fda-26fd15e1fc7d\">\r\n\r\n- Set `layout1` in business profile config\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/account/merchant_1733294735/business_profile/pro_r48ZhNBTND9A4PAc5rHT' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'api-key: test_admin' \\\r\n --data '{\"payment_link_config\":{\"allowed_domains\":[\"*\"],\"enabled_saved_payment_method\":true,\"theme\":\"#1A1A1A\",\"logo\":\"https://hyperswitch.io/favicon.ico\",\"details_layout\":\"layout1\"}}'\r\n\r\n- Create a payment link after configuring `details_layout` in business profile\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'api-key: dev_CWKVSn8Qjyb1Qjt6AGNmivVRPm3mgmoS9GDhKPvTB7vVVAbktxV6wPnX3QcJNstt' \\\r\n --data-raw '{\"authentication_type\":\"three_ds\",\"customer_id\":\"cus_rFGS1qK0MTSxdj0m5aqo\",\"profile_id\":\"pro_r48ZhNBTND9A4PAc5rHT\",\"amount\":100,\"currency\":\"HKD\",\"payment_link\":true,\"setup_future_usage\":\"off_session\",\"description\":\"This is my description of why this payment was requested.\",\"connector\":[\"adyen\"],\"capture_method\":\"automatic\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"email\":\"john.doe@example.com\",\"session_expiry\":100000,\"return_url\":\"https://example.com\",\"payment_link_config\":{\"theme\":\"#14356f\",\"logo\":\"https://static.wikia.nocookie.net/logopedia/images/4/41/Zurich-1997-Horizontal.png\",\"seller_name\":\"Hyperswitch Inc.\"}}'\r\n\r\n<img width=\"1728\" alt=\"Screenshot 2024-12-06 at 11 39 37\u202fAM\" src=\"https://github.com/user-attachments/assets/3b022c0b-a163-4651-9595-f39c46388684\">\r\n\r\n- Create a payment link using `layout1` in the payments API\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'api-key: dev_CWKVSn8Qjyb1Qjt6AGNmivVRPm3mgmoS9GDhKPvTB7vVVAbktxV6wPnX3QcJNstt' \\\r\n --data-raw '{\"authentication_type\":\"three_ds\",\"customer_id\":\"cus_rFGS1qK0MTSxdj0m5aqo\",\"profile_id\":\"pro_r48ZhNBTND9A4PAc5rHT\",\"amount\":100,\"currency\":\"HKD\",\"payment_link\":true,\"setup_future_usage\":\"off_session\",\"description\":\"This is my description of why this payment was requested.\",\"connector\":[\"adyen\"],\"capture_method\":\"automatic\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"email\":\"john.doe@example.com\",\"session_expiry\":100000,\"return_url\":\"https://example.com\",\"payment_link_config\":{\"theme\":\"#14356f\",\"logo\":\"https://static.wikia.nocookie.net/logopedia/images/4/41/Zurich-1997-Horizontal.png\",\"seller_name\":\"Hyperswitch Inc.\",\"details_layout\":\"layout1\"}}'\r\n\r\n<img width=\"1728\" alt=\"Screenshot 2024-12-06 at 11 43 33\u202fAM\" src=\"https://github.com/user-attachments/assets/05d8a6d0-e77d-414b-b67f-87ad0919f3f1\">\r\n\r\n</details>\r\n\r\n<details>\r\n <summary>2. Layout 2 </summary>\r\n\r\n- Set `layout2` in business profile config\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/account/merchant_1733294735/business_profile/pro_r48ZhNBTND9A4PAc5rHT' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'api-key: test_admin' \\\r\n --data '{\"payment_link_config\":{\"allowed_domains\":[\"*\"],\"enabled_saved_payment_method\":true,\"theme\":\"#1A1A1A\",\"logo\":\"https://hyperswitch.io/favicon.ico\",\"details_layout\":\"layout2\",\"business_specific_configs\":{\"style1\":{\"enabled_saved_payment_method\":true,\"theme\":\"#FEFEFE\",\"logo\":\"https://hyperswitch.io/favicon.ico\"},\"style2\":{\"enabled_saved_payment_method\":true,\"theme\":\"#1A1A1A\",\"logo\":\"https://hyperswitch.io/favicon.ico\"}}}}'\r\n\r\n- Create a payment link after configuring `details_layout` in business profile\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'api-key: dev_CWKVSn8Qjyb1Qjt6AGNmivVRPm3mgmoS9GDhKPvTB7vVVAbktxV6wPnX3QcJNstt' \\\r\n --data-raw '{\"authentication_type\":\"three_ds\",\"customer_id\":\"cus_rFGS1qK0MTSxdj0m5aqo\",\"profile_id\":\"pro_r48ZhNBTND9A4PAc5rHT\",\"amount\":100,\"currency\":\"HKD\",\"payment_link\":true,\"setup_future_usage\":\"off_session\",\"description\":\"This is my description of why this payment was requested.\",\"connector\":[\"adyen\"],\"capture_method\":\"automatic\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"email\":\"john.doe@example.com\",\"session_expiry\":100000,\"return_url\":\"https://example.com\",\"payment_link_config\":{\"theme\":\"#14356f\",\"logo\":\"https://static.wikia.nocookie.net/logopedia/images/4/41/Zurich-1997-Horizontal.png\",\"seller_name\":\"Hyperswitch Inc.\"}}'\r\n\r\n<img width=\"1728\" alt=\"Screenshot 2024-12-06 at 11 45 45\u202fAM\" src=\"https://github.com/user-attachments/assets/f00b60a4-1313-40d8-8337-4d02a045b3d0\">\r\n\r\n- Create a payment link using `layout2` in the payments API\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'api-key: dev_CWKVSn8Qjyb1Qjt6AGNmivVRPm3mgmoS9GDhKPvTB7vVVAbktxV6wPnX3QcJNstt' \\\r\n --data-raw '{\"authentication_type\":\"three_ds\",\"customer_id\":\"cus_rFGS1qK0MTSxdj0m5aqo\",\"profile_id\":\"pro_r48ZhNBTND9A4PAc5rHT\",\"amount\":100,\"currency\":\"HKD\",\"payment_link\":true,\"setup_future_usage\":\"off_session\",\"description\":\"This is my description of why this payment was requested.\",\"connector\":[\"adyen\"],\"capture_method\":\"automatic\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"email\":\"john.doe@example.com\",\"session_expiry\":100000,\"return_url\":\"https://example.com\",\"payment_link_config\":{\"theme\":\"#14356f\",\"logo\":\"https://static.wikia.nocookie.net/logopedia/images/4/41/Zurich-1997-Horizontal.png\",\"seller_name\":\"Hyperswitch Inc.\",\"details_layout\":\"layout2\"}}'\r\n\r\n<img width=\"1728\" alt=\"Screenshot 2024-12-06 at 11 46 53\u202fAM\" src=\"https://github.com/user-attachments/assets/2ab30fdb-de31-413f-a414-aa137e1189a5\">\r\n\r\n</details>\r\n\r\n*Branding visibility*\r\n- Provision for toggling branding visibility is at profile level\r\n\r\n<details>\r\n <summary>1. Default visibility</summary>\r\n\r\n- Create a payment link\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'api-key: dev_CWKVSn8Qjyb1Qjt6AGNmivVRPm3mgmoS9GDhKPvTB7vVVAbktxV6wPnX3QcJNstt' \\\r\n --data-raw '{\"authentication_type\":\"three_ds\",\"customer_id\":\"cus_rFGS1qK0MTSxdj0m5aqo\",\"profile_id\":\"pro_r48ZhNBTND9A4PAc5rHT\",\"amount\":100,\"currency\":\"HKD\",\"payment_link\":true,\"setup_future_usage\":\"off_session\",\"description\":\"This is my description of why this payment was requested.\",\"connector\":[\"adyen\"],\"capture_method\":\"automatic\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"email\":\"john.doe@example.com\",\"session_expiry\":100000,\"return_url\":\"https://example.com\",\"payment_link_config\":{\"theme\":\"#14356f\",\"logo\":\"https://static.wikia.nocookie.net/logopedia/images/4/41/Zurich-1997-Horizontal.png\",\"seller_name\":\"Hyperswitch Inc.\",\"details_layout\":\"layout2\"}}'\r\n\r\n<img width=\"1727\" alt=\"Screenshot 2024-12-06 at 12 27 30\u202fPM\" src=\"https://github.com/user-attachments/assets/d89d6f4c-3280-4918-848a-f79bf35a96ef\">\r\n\r\n</details>\r\n\r\n<details>\r\n <summary>2. Hidden visibility</summary>\r\n\r\n- Set `branding_visibility` to true in business profile config\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/account/merchant_1733294735/business_profile/pro_r48ZhNBTND9A4PAc5rHT' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'api-key: test_admin' \\\r\n --data '{\"payment_link_config\":{\"allowed_domains\":[\"*\"],\"enabled_saved_payment_method\":true,\"theme\":\"#1A1A1A\",\"logo\":\"https://hyperswitch.io/favicon.ico\",\"branding_visibility\":false,\"business_specific_configs\":{\"style1\":{\"enabled_saved_payment_method\":true,\"theme\":\"#FEFEFE\",\"logo\":\"https://hyperswitch.io/favicon.ico\"},\"style2\":{\"enabled_saved_payment_method\":true,\"theme\":\"#1A1A1A\",\"logo\":\"https://hyperswitch.io/favicon.ico\"}}}}'\r\n\r\n- Create a payment link\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'api-key: dev_CWKVSn8Qjyb1Qjt6AGNmivVRPm3mgmoS9GDhKPvTB7vVVAbktxV6wPnX3QcJNstt' \\\r\n --data-raw '{\"authentication_type\":\"three_ds\",\"customer_id\":\"cus_rFGS1qK0MTSxdj0m5aqo\",\"profile_id\":\"pro_r48ZhNBTND9A4PAc5rHT\",\"amount\":100,\"currency\":\"HKD\",\"payment_link\":true,\"setup_future_usage\":\"off_session\",\"description\":\"This is my description of why this payment was requested.\",\"connector\":[\"adyen\"],\"capture_method\":\"automatic\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"email\":\"john.doe@example.com\",\"session_expiry\":100000,\"return_url\":\"https://example.com\",\"payment_link_config\":{\"theme\":\"#14356f\",\"logo\":\"https://static.wikia.nocookie.net/logopedia/images/4/41/Zurich-1997-Horizontal.png\",\"seller_name\":\"Hyperswitch Inc.\",\"details_layout\":\"layout2\"}}'\r\n\r\n<img width=\"1728\" alt=\"Screenshot 2024-12-06 at 12 26 01\u202fPM\" src=\"https://github.com/user-attachments/assets/54d98c99-3218-43a1-ab04-51fcfc8041f8\">\r\n\r\n</details>\r\n\r\n*Background image*\r\n- Provision for setting background image is at both profile and payments API level\r\n<details>\r\n <summary>1. Background images in business profile</summary>\r\n\r\n- Set background image in business profile (url and size)\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/account/merchant_1733294735/business_profile/pro_r48ZhNBTND9A4PAc5rHT' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'api-key: test_admin' \\\r\n --data '{\"payment_link_config\":{\"allowed_domains\":[\"*\"],\"enabled_saved_payment_method\":true,\"theme\":\"#1A1A1A\",\"logo\":\"https://hyperswitch.io/favicon.ico\",\"background_image\":{\"url\":\"https://img.freepik.com/free-photo/hand-painted-watercolor-background-with-sky-clouds-shape_24972-1095.jpg\",\"size\":\"cover\"},\"business_specific_configs\":{\"style1\":{\"enabled_saved_payment_method\":true,\"theme\":\"#FEFEFE\",\"logo\":\"https://hyperswitch.io/favicon.ico\"},\"style2\":{\"enabled_saved_payment_method\":true,\"theme\":\"#1A1A1A\",\"logo\":\"https://hyperswitch.io/favicon.ico\"}}}}'\r\n\r\n- Create a payment link\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'api-key: dev_CWKVSn8Qjyb1Qjt6AGNmivVRPm3mgmoS9GDhKPvTB7vVVAbktxV6wPnX3QcJNstt' \\\r\n --data-raw '{\"authentication_type\":\"three_ds\",\"customer_id\":\"cus_rFGS1qK0MTSxdj0m5aqo\",\"profile_id\":\"pro_r48ZhNBTND9A4PAc5rHT\",\"amount\":100,\"currency\":\"HKD\",\"payment_link\":true,\"setup_future_usage\":\"off_session\",\"description\":\"This is my description of why this payment was requested.\",\"connector\":[\"adyen\"],\"capture_method\":\"automatic\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"email\":\"john.doe@example.com\",\"session_expiry\":100000,\"return_url\":\"https://example.com\",\"payment_link_config\":{\"theme\":\"#14356f\",\"logo\":\"https://static.wikia.nocookie.net/logopedia/images/4/41/Zurich-1997-Horizontal.png\",\"seller_name\":\"Hyperswitch Inc.\",\"details_layout\":\"layout2\"}}'\r\n\r\n</details>\r\n\r\n<details>\r\n <summary>2. Background images in payments API</summary>\r\n\r\n- Send the background image in the payments API\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'api-key: dev_CWKVSn8Qjyb1Qjt6AGNmivVRPm3mgmoS9GDhKPvTB7vVVAbktxV6wPnX3QcJNstt' \\\r\n --data-raw '{\"authentication_type\":\"three_ds\",\"customer_id\":\"cus_rFGS1qK0MTSxdj0m5aqo\",\"profile_id\":\"pro_r48ZhNBTND9A4PAc5rHT\",\"amount\":100,\"currency\":\"HKD\",\"payment_link\":true,\"setup_future_usage\":\"off_session\",\"description\":\"This is my description of why this payment was requested.\",\"connector\":[\"adyen\"],\"capture_method\":\"automatic\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"email\":\"john.doe@example.com\",\"session_expiry\":100000,\"return_url\":\"https://example.com\",\"payment_link_config\":{\"theme\":\"#14356f\",\"logo\":\"https://static.wikia.nocookie.net/logopedia/images/4/41/Zurich-1997-Horizontal.png\",\"seller_name\":\"Hyperswitch Inc.\",\"details_layout\":\"layout2\",\"background_image\":{\"url\":\"https://img.freepik.com/free-photo/abstract-blue-geometric-shapes-background_24972-1841.jpg\",\"size\":\"cover\"}}}'\r\n\r\n<img width=\"1728\" alt=\"Screenshot 2024-12-06 at 1 36 15\u202fPM\" src=\"https://github.com/user-attachments/assets/17bbcb56-1efa-48f8-b05d-19c3ed137d0c\">\r\n\r\n</details>\r\n\r\n\r\n</details>\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "kashif-m",
|
| 6 |
+
"created_at": "2024-12-03T06:45:30+00:00",
|
| 7 |
+
"merged_at": "2024-12-12T15:48:18+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"M-api-contract-changes",
|
| 11 |
+
"Payment Links"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6725",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "0c2691f64af4e2bc42110990d8ad09a8944183ed",
|
| 17 |
+
"message": "feat(payment_link): add support for background image",
|
| 18 |
+
"author": "Kashif",
|
| 19 |
+
"date": "2024-12-02T13:51:29+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/0c2691f64af4e2bc42110990d8ad09a8944183ed"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sha": "376253d41e6b4ef6f889405309adff00c753f903",
|
| 24 |
+
"message": "feat: custom deserializer and serializer for ElementSize",
|
| 25 |
+
"author": "Kashif",
|
| 26 |
+
"date": "2024-12-03T06:44:44+00:00",
|
| 27 |
+
"url": "https://github.com/juspay/hyperswitch/commit/376253d41e6b4ef6f889405309adff00c753f903"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"sha": "7a160ede37f75efd450fd9c729a1d8294eeb7a01",
|
| 31 |
+
"message": "Merge remote-tracking branch 'origin/main' into 6711-payment-links-background-image",
|
| 32 |
+
"author": "Kashif",
|
| 33 |
+
"date": "2024-12-04T06:27:17+00:00",
|
| 34 |
+
"url": "https://github.com/juspay/hyperswitch/commit/7a160ede37f75efd450fd9c729a1d8294eeb7a01"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"sha": "e5119b6101a2eed235c1fdadaaa1e6dd8fc193a8",
|
| 38 |
+
"message": "feat(core): payment links - consume layout, background image and brand visibility in payment links template",
|
| 39 |
+
"author": "Kashif",
|
| 40 |
+
"date": "2024-12-05T20:46:37+00:00",
|
| 41 |
+
"url": "https://github.com/juspay/hyperswitch/commit/e5119b6101a2eed235c1fdadaaa1e6dd8fc193a8"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"sha": "887ef06f76bb08f42bbfd9984ae5a1ed0c21450c",
|
| 45 |
+
"message": "chore: run formatter",
|
| 46 |
+
"author": "hyperswitch-bot[bot]",
|
| 47 |
+
"date": "2024-12-05T20:53:50+00:00",
|
| 48 |
+
"url": "https://github.com/juspay/hyperswitch/commit/887ef06f76bb08f42bbfd9984ae5a1ed0c21450c"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"sha": "ea9a367a49664b47491641d97b2372650acc02ef",
|
| 52 |
+
"message": "chore: generate openapi spec",
|
| 53 |
+
"author": "Kashif",
|
| 54 |
+
"date": "2024-12-05T20:59:27+00:00",
|
| 55 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ea9a367a49664b47491641d97b2372650acc02ef"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"sha": "1d3a18c2f85e97227192e406acf2e0dd1b68c663",
|
| 59 |
+
"message": "Merge remote-tracking branch 'origin/6711-payment-links-background-image' into 6711-payment-links-background-image",
|
| 60 |
+
"author": "Kashif",
|
| 61 |
+
"date": "2024-12-05T21:00:01+00:00",
|
| 62 |
+
"url": "https://github.com/juspay/hyperswitch/commit/1d3a18c2f85e97227192e406acf2e0dd1b68c663"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"sha": "dd680f5add3ed0db82b12293ff72099bce9efd5b",
|
| 66 |
+
"message": "Merge remote-tracking branch 'origin/main' into 6711-payment-links-background-image",
|
| 67 |
+
"author": "Kashif",
|
| 68 |
+
"date": "2024-12-05T21:00:06+00:00",
|
| 69 |
+
"url": "https://github.com/juspay/hyperswitch/commit/dd680f5add3ed0db82b12293ff72099bce9efd5b"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"sha": "2e235da5daa6546e873889916aa542f15ef0312a",
|
| 73 |
+
"message": "chore: fix openapi spec",
|
| 74 |
+
"author": "Kashif",
|
| 75 |
+
"date": "2024-12-05T21:02:58+00:00",
|
| 76 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2e235da5daa6546e873889916aa542f15ef0312a"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"sha": "13a16a07ff8bbcefd01ba0d5f295f2986ff9c389",
|
| 80 |
+
"message": "chore: clippy fixes and openapi spec re-generation",
|
| 81 |
+
"author": "Kashif",
|
| 82 |
+
"date": "2024-12-06T08:10:31+00:00",
|
| 83 |
+
"url": "https://github.com/juspay/hyperswitch/commit/13a16a07ff8bbcefd01ba0d5f295f2986ff9c389"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"sha": "2719fb24259ea857b9b95692b6f80378ef1c2e73",
|
| 87 |
+
"message": "Merge remote-tracking branch 'origin/main' into 6711-payment-links-background-image",
|
| 88 |
+
"author": "Kashif",
|
| 89 |
+
"date": "2024-12-06T08:11:58+00:00",
|
| 90 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2719fb24259ea857b9b95692b6f80378ef1c2e73"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"sha": "70422cd752043a4b74fe4e7522695b8a377e4258",
|
| 94 |
+
"message": "chore: run formatter",
|
| 95 |
+
"author": "hyperswitch-bot[bot]",
|
| 96 |
+
"date": "2024-12-06T08:33:13+00:00",
|
| 97 |
+
"url": "https://github.com/juspay/hyperswitch/commit/70422cd752043a4b74fe4e7522695b8a377e4258"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"sha": "7b37ab873c44d3cbfc8a719a42bd0250fc041890",
|
| 101 |
+
"message": "chore: re-generate openAPI docs",
|
| 102 |
+
"author": "Kashif",
|
| 103 |
+
"date": "2024-12-09T07:11:45+00:00",
|
| 104 |
+
"url": "https://github.com/juspay/hyperswitch/commit/7b37ab873c44d3cbfc8a719a42bd0250fc041890"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"sha": "ce2abb2626bbe6e9b08129a9e6a1a2bbcaefeb91",
|
| 108 |
+
"message": "Merge remote-tracking branch 'origin/main' into 6711-payment-links-background-image",
|
| 109 |
+
"author": "Kashif",
|
| 110 |
+
"date": "2024-12-12T10:30:29+00:00",
|
| 111 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ce2abb2626bbe6e9b08129a9e6a1a2bbcaefeb91"
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"sha": "a4e93ed62253861643d3394253053fc964f84253",
|
| 115 |
+
"message": "chore: clippy fix after merging w main",
|
| 116 |
+
"author": "Kashif",
|
| 117 |
+
"date": "2024-12-12T10:36:49+00:00",
|
| 118 |
+
"url": "https://github.com/juspay/hyperswitch/commit/a4e93ed62253861643d3394253053fc964f84253"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"sha": "151211157442a6c77ac75fcd9c01531fe80e48f7",
|
| 122 |
+
"message": "chore: remove cybersource and stripe for network_transaction_id_supported_connectors",
|
| 123 |
+
"author": "Kashif",
|
| 124 |
+
"date": "2024-12-12T11:56:54+00:00",
|
| 125 |
+
"url": "https://github.com/juspay/hyperswitch/commit/151211157442a6c77ac75fcd9c01531fe80e48f7"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"sha": "2a9cb416f6232d3bec2aedca9a7deb0be646f721",
|
| 129 |
+
"message": "chore: use top redirection for open payment links",
|
| 130 |
+
"author": "Kashif",
|
| 131 |
+
"date": "2024-12-12T13:12:37+00:00",
|
| 132 |
+
"url": "https://github.com/juspay/hyperswitch/commit/2a9cb416f6232d3bec2aedca9a7deb0be646f721"
|
| 133 |
+
}
|
| 134 |
+
]
|
| 135 |
+
}
|
prs/pr_6727.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6727,
|
| 3 |
+
"title": "feat(connector): [DEUTSCHEBANK, FIUU ] Handle 2xx errors given by Connector",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [X] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n1. Consuming error message given by `DeutscheBank` in case of 2xx errors, because it is currently not handled for 2xx errors. Error message is only consumed for 4xx and 5xx.\r\n2. Consuming error message given by `Fiuu` in case of 2xx errors only in case of `refunds`. In all other cases where 2xx errors are thrown, code is already handling it. \r\n\r\n\r\n\r\n\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n3. `crates/router/src/configs`\r\n4. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nTested manually using Postman\r\n1. DB testing\r\n[Test Doc](https://docs.google.com/document/d/1DUUcWRbLXbaJWoxt1Rfn7s1rByJiMKouHXIk2VAONHk/edit?usp=sharing)\r\n2. Not able to test manually for Fiuu\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [X] I formatted the code `cargo +nightly fmt --all`\r\n- [X] I addressed lints thrown by `cargo clippy`\r\n- [X] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "dgeee13",
|
| 6 |
+
"created_at": "2024-12-03T08:22:48+00:00",
|
| 7 |
+
"merged_at": "2024-12-12T10:20:34+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [],
|
| 10 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6727",
|
| 11 |
+
"commits": [
|
| 12 |
+
{
|
| 13 |
+
"sha": "f50c208ae9f35e1223feff582495bb407f8354c1",
|
| 14 |
+
"message": "consume connector error message for 2xx errors for DeutscheBank",
|
| 15 |
+
"author": "Debarati",
|
| 16 |
+
"date": "2024-12-03T08:22:19+00:00",
|
| 17 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f50c208ae9f35e1223feff582495bb407f8354c1"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"sha": "72a8e5e1e475f53575edee56680d71d346c6f5a9",
|
| 21 |
+
"message": "consume connector error message for 2xx refund errors for Fiuu",
|
| 22 |
+
"author": "Debarati",
|
| 23 |
+
"date": "2024-12-04T07:40:02+00:00",
|
| 24 |
+
"url": "https://github.com/juspay/hyperswitch/commit/72a8e5e1e475f53575edee56680d71d346c6f5a9"
|
| 25 |
+
}
|
| 26 |
+
]
|
| 27 |
+
}
|
prs/pr_6728.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6728,
|
| 3 |
+
"title": "fix(connector): [Cybersource] change commerce indicator for discover cards in apple pay",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\ncommerce indicator for discover card in applepay is changed since the payments are failing in production for cybersource\r\n\r\nNote: This is hotifx against [#6690](https://github.com/juspay/hyperswitch/pull/6690)\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nTested through postman:\r\n\r\n- Create an MCA for Cybersource:\r\n- Create a Payment with Applepay: \r\n```\r\n{\r\n \"amount\": 650,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"amount_to_capture\": 650,\r\n \"customer_id\": \"test_fb\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"apple_pay\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"apple_pay\": {\r\n \"payment_data\": \"{{payment_data}}\",\r\n \"payment_method\": {\r\n \"display_name\": \"MasterCard 7599\",\r\n \"network\": \"MasterCard\",\r\n \"type\": \"credit\"\r\n },\r\n \"transaction_identifier\": \"{{transaction_identifier}}\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"jhkdsa\",\r\n \"zip\": \"10000\",\r\n \"last_name\": \"chikke\",\r\n \"city\": \"adf\",\r\n \"country\": \"US\",\r\n \"first_name\": \"srujan\",\r\n \"state\": \"Alabama\"\r\n },\r\n \"email\": \"chikke.srujan@juspay.in\"\r\n }\r\n }\r\n}\r\n```\r\n- The payment should `succeed`\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "Sakilmostak",
|
| 6 |
+
"created_at": "2024-12-03T08:38:39+00:00",
|
| 7 |
+
"merged_at": "2024-12-03T10:39:13+00:00",
|
| 8 |
+
"base_branch": "hotfix-2024.11.27.0",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-connector-integration",
|
| 11 |
+
"C-bug"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6728",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "b456ad681c0f41a17d86ddd14d77dbd589d4829c",
|
| 17 |
+
"message": "fix: commerce indicator for applepay discover cards",
|
| 18 |
+
"author": "Sk Sakil Mostak",
|
| 19 |
+
"date": "2024-12-03T08:22:55+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/b456ad681c0f41a17d86ddd14d77dbd589d4829c"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
}
|
prs/pr_6730.json
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6730,
|
| 3 |
+
"title": "refactor(connector): Move connectors Datatrans, Paybox, Placetopay, Bluesnap from router crate to hyperswitch_connector crate",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nMoving Datatrans, Paybox, Placetopay, Bluesnap from router crate to hyperswitch_connector crate\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nBluesnap\r\n1. Merchant Account Create:\r\n```\r\ncurl --location 'http://localhost:8080/accounts' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data-raw '{\r\n \"merchant_id\": \"merchant_1733471721\",\r\n \"locker_id\": \"m0010\",\r\n \"merchant_name\": \"NewAge Retailer\",\r\n \"merchant_details\": {\r\n \"primary_contact_person\": \"John Test\",\r\n \"primary_email\": \"JohnTest@test.com\",\r\n \"primary_phone\": \"sunt laborum\",\r\n \"secondary_contact_person\": \"John Test2\",\r\n \"secondary_email\": \"JohnTest2@test.com\",\r\n \"secondary_phone\": \"cillum do dolor id\",\r\n \"website\": \"https://www.example.com\",\r\n \"about_business\": \"Online Retail with a wide selection of organic products for North America\",\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\":\"john\",\r\n \"last_name\":\"Doe\"\r\n }\r\n },\r\n \"return_url\": \"https://google.com/success\",\r\n \"webhook_details\": {\r\n \"webhook_version\": \"1.0.1\",\r\n \"webhook_username\": \"ekart_retail\",\r\n \"webhook_password\": \"password_ekart@123\",\r\n \"webhook_url\":\"https://webhook.site\",\r\n \"payment_created_enabled\": true,\r\n \"payment_succeeded_enabled\": true,\r\n \"payment_failed_enabled\": true\r\n },\r\n \"sub_merchants_enabled\": false,\r\n \"parent_merchant_id\":\"merchant_123\",\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"primary_business_details\": [\r\n {\r\n \"country\": \"US\",\r\n \"business\": \"default\"\r\n }\r\n ]\r\n}'\r\n```\r\n2. API Key create:\r\n```\r\ncurl --location 'http://localhost:8080/api_keys/merchant_1733471718' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"name\": \"API Key 1\",\r\n \"description\": null,\r\n \"expiration\": \"2038-01-19T03:14:08.000Z\"\r\n}'\r\n```\r\n3. Payments Connector Create:\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1733471718/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"bluesnap\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"BodyKey\",\r\n \"key1\": \"*********\",\r\n \"api_key\": \"********\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true,\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n }\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true,\r\n \"accepted_countries\": {\r\n \"type\": \"disable_only\",\r\n \"list\": [\r\n \"HK\"\r\n ]\r\n },\r\n \"accepted_currencies\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"USD\",\r\n \"GBP\",\r\n \"INR\"\r\n ]\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MyWebhookSecret\"\r\n },\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\"\r\n}'\r\n```\r\n4. Payment Create\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_tPWY3rQZOEH3yvne2TjmwmdiUMEoZWDHiXAnqQYCI1WLD8tTAOz73HUVnP2NapdP' \\\r\n--data-raw '{\r\n \"amount\": 6540,\r\n \"currency\": \"USD\",\r\n \"amount_to_capture\": 6540,\r\n \"confirm\": true,\r\n \"profile_id\": null,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"setup_future_usage\": \"on_session\", \r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"customer_id\": \"customer123\",\r\n \"phone_country_code\": \"+1\",\r\n \"routing\": { \r\n \"type\": \"single\",\r\n \"data\": \"stripe\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": { \r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 6540,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"128.0.0.1\"\r\n },\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"payment_link\": false,\r\n \"payment_link_config\": {\r\n \"theme\": \"\",\r\n \"logo\": \"\",\r\n \"seller_name\": \"\",\r\n \"sdk_layout\": \"\",\r\n \"display_sdk_only\": false,\r\n \"enabled_saved_payment_method\": false\r\n },\r\n \"payment_type\": \"normal\", \r\n \"request_incremental_authorization\": false,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"session_expiry\": 900 \r\n}'\r\n```\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_0ff0Bsh6apC6g9uB7Ucb\",\r\n \"merchant_id\": \"merchant_1733471718\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 6540,\r\n \"net_amount\": 6540,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 6540,\r\n \"connector\": \"bluesnap\",\r\n \"client_secret\": \"pay_0ff0Bsh6apC6g9uB7Ucb_secret_yCNuS9M4bKbIY1IORmyJ\",\r\n \"created\": \"2024-12-06T07:57:10.872Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"customer123\",\r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"on_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4242\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\r\n \"card_isin\": \"424242\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_mXfChlbmpcm0bszGzMx3\",\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"order_details\": [\r\n {\r\n \"brand\": null,\r\n \"amount\": 6540,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"product_id\": null,\r\n \"product_name\": \"Apple iphone 15\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"requires_shipping\": null\r\n }\r\n ],\r\n \"email\": \"customer@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"9999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"customer123\",\r\n \"created_at\": 1733471830,\r\n \"expires\": 1733475430,\r\n \"secret\": \"epk_900cb6e800c84683b9d6e7329b80de0f\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"1069992070\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": {\r\n \"apple_pay\": null,\r\n \"airwallex\": null,\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"1069992070\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_124TsP9d0vq1SfNk02kh\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Uhud5Ut3On6vftqGdGRG\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-12-06T08:12:10.872Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"128.0.0.1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2024-12-06T07:57:14.163Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n5. Payments Retreive:\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_0ff0Bsh6apC6g9uB7Ucb?force_sync=true&expand_captures=true&expand_attempts=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_tPWY3rQZOEH3yvne2TjmwmdiUMEoZWDHiXAnqQYCI1WLD8tTAOz73HUVnP2NapdP'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_0ff0Bsh6apC6g9uB7Ucb\",\r\n \"merchant_id\": \"merchant_1733471718\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 6540,\r\n \"net_amount\": 6540,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 6540,\r\n \"connector\": \"bluesnap\",\r\n \"client_secret\": \"pay_0ff0Bsh6apC6g9uB7Ucb_secret_yCNuS9M4bKbIY1IORmyJ\",\r\n \"created\": \"2024-12-06T07:57:10.872Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"customer123\",\r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"attempts\": [\r\n {\r\n \"attempt_id\": \"pay_0ff0Bsh6apC6g9uB7Ucb_1\",\r\n \"status\": \"charged\",\r\n \"amount\": 6540,\r\n \"currency\": \"USD\",\r\n \"connector\": \"bluesnap\",\r\n \"error_message\": null,\r\n \"payment_method\": \"card\",\r\n \"connector_transaction_id\": \"1069992070\",\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2024-12-06T07:57:10.872Z\",\r\n \"modified_at\": \"2024-12-06T07:57:14.180Z\",\r\n \"cancellation_reason\": null,\r\n \"mandate_id\": null,\r\n \"error_code\": null,\r\n \"payment_token\": \"token_mXfChlbmpcm0bszGzMx3\",\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"reference_id\": \"1069992070\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"client_source\": null,\r\n \"client_version\": null\r\n }\r\n ],\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"on_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4242\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\r\n \"card_isin\": \"424242\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_mXfChlbmpcm0bszGzMx3\",\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"order_details\": [\r\n {\r\n \"brand\": null,\r\n \"amount\": 6540,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"product_id\": null,\r\n \"product_name\": \"Apple iphone 15\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"requires_shipping\": null\r\n }\r\n ],\r\n \"email\": \"customer@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"9999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"1069992070\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": {\r\n \"apple_pay\": null,\r\n \"airwallex\": null,\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"1069992070\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_124TsP9d0vq1SfNk02kh\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Uhud5Ut3On6vftqGdGRG\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-12-06T08:12:10.872Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"128.0.0.1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": \"pm_WxMaNbb2RnrDW7BwG42N\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2024-12-06T07:57:14.163Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n---\r\n\r\n2. Paybox:\r\nPayment Connector Create:\r\n```\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"datatrans\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"BodyKey\",\r\n \"key1\": \"hidden\",\r\n \"api_key\": \"hidden\"\r\n },\r\n \"test_mode\": false,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n }\r\n}\r\n```\r\n\r\nPayments Create:\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_P1heFBcrJN6rygECCa2nY1FpksdWWwOv3cMhESdNurWrZgfdI46hhyKIk1SzvoNy' \\\r\n--data-raw '{\r\n \"amount\": 1234,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"email\": \"p1qqdwxsdw43@example.com\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4111111111111111\",\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"2025\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"card_cvc\": \"975\"\r\n }\r\n }\r\n}'\r\n```\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_Wh6vQU7MEawVULtkdqOa\",\r\n \"merchant_id\": \"merchant_1733745720\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1234,\r\n \"net_amount\": 1234,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1234,\r\n \"connector\": \"datatrans\",\r\n \"client_secret\": \"pay_Wh6vQU7MEawVULtkdqOa_secret_SDr4aNY3XHI0EGsPQqna\",\r\n \"created\": \"2024-12-09T12:07:40.471Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": null,\r\n \"customer\": {\r\n \"id\": null,\r\n \"name\": null,\r\n \"email\": \"p1qqdwxsdw43@example.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": null,\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1111\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"2025\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"debit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"241209130740638496\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_QxhsX7qdij93dhXZ2s9Y\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_kJYzhfkQOToFnpcCNXFF\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-12-09T12:22:40.471Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2024-12-09T12:07:40.884Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n\r\n3. Paybox:\r\nPayment Connector Create:\r\n```\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"paybox\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"MultiAuthKey\",\r\n \"api_key\": \"hidden\",\r\n \"key1\": \"hidden\",\r\n \"api_secret\": \"hidden\",\r\n \"key2\":\"hidden\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true,\r\n \"accepted_countries\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"US\"\r\n ]\r\n }\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true,\r\n \"accepted_countries\": {\r\n \"type\": \"enable_only\",\r\n \"list\": [\r\n \"US\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MyWebhookSecret\"\r\n },\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\"\r\n}\r\n```\r\n\r\nPayments Create:\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_NplkxQ8Lo7HNh1Dh8futGetrXKaqWzN7V0hRmr7GOtm3scEsSIe3Qo0hpXPTi3zm' \\\r\n--data-raw '{\r\n \"amount\": 500,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"customer_id\": \"abcdef\",\r\n \"email\": \"guest@example.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5200000000000007\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"26\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_ZhtVT1EprfMuMobjBjzW\",\r\n \"merchant_id\": \"merchant_1733746240\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 500,\r\n \"net_amount\": 500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 500,\r\n \"connector\": \"paybox\",\r\n \"client_secret\": \"pay_ZhtVT1EprfMuMobjBjzW_secret_lzYvpxiqYBWG7Njap3Ux\",\r\n \"created\": \"2024-12-09T12:13:35.920Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"abcdef\",\r\n \"customer\": {\r\n \"id\": \"abcdef\",\r\n \"name\": null,\r\n \"email\": \"guest@example.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0007\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"520000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"26\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_5QPn9srKeNDiyYkmeDRx\",\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"abcdef\",\r\n \"created_at\": 1733746415,\r\n \"expires\": 1733750015,\r\n \"secret\": \"epk_547111b48c3d45b895d5b012287b8ba9\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"0080283777\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_0d0C3NhGL1jaw8gmRm3s\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_QH3dxu7K6VWFTUExK71o\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-12-09T12:28:35.919Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2024-12-09T12:13:37.610Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\nNote: Placetopay cannot be tested due to unavailability of connector credentials\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "spritianeja03",
|
| 6 |
+
"created_at": "2024-12-03T10:15:03+00:00",
|
| 7 |
+
"merged_at": "2024-12-12T07:45:33+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-connector-integration",
|
| 11 |
+
"C-refactor"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6730",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "62b69958baf25aa7fad7229415cbd7c4dd4d83f3",
|
| 17 |
+
"message": "Move Bamboraapac to hyperswitch_connector_crate",
|
| 18 |
+
"author": "Spriti Aneja",
|
| 19 |
+
"date": "2024-11-22T08:10:18+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/62b69958baf25aa7fad7229415cbd7c4dd4d83f3"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sha": "dfcaa69147ee1b949716cfad9b3e68f0a959bbc8",
|
| 24 |
+
"message": "Move Boku to hyperswitch_connector crate",
|
| 25 |
+
"author": "Spriti Aneja",
|
| 26 |
+
"date": "2024-11-25T11:16:37+00:00",
|
| 27 |
+
"url": "https://github.com/juspay/hyperswitch/commit/dfcaa69147ee1b949716cfad9b3e68f0a959bbc8"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"sha": "f52bf131ad522dfb41976dd0cf801c3ae946695d",
|
| 31 |
+
"message": "Moved Gocardless to hyperswitch_connector crate",
|
| 32 |
+
"author": "Spriti Aneja",
|
| 33 |
+
"date": "2024-11-27T12:06:03+00:00",
|
| 34 |
+
"url": "https://github.com/juspay/hyperswitch/commit/f52bf131ad522dfb41976dd0cf801c3ae946695d"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"sha": "6fbb36d5f9876724ab76eb117aaac7e50abcbb57",
|
| 38 |
+
"message": "Moved prophetpay to hyperswitch_connector crate",
|
| 39 |
+
"author": "Spriti Aneja",
|
| 40 |
+
"date": "2024-11-28T11:48:11+00:00",
|
| 41 |
+
"url": "https://github.com/juspay/hyperswitch/commit/6fbb36d5f9876724ab76eb117aaac7e50abcbb57"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"sha": "de3006f2dae05f0469622f5bbed2b5f41a4788e6",
|
| 45 |
+
"message": "Moved Rapyd to hyperswitch_connector crate",
|
| 46 |
+
"author": "Spriti Aneja",
|
| 47 |
+
"date": "2024-11-29T10:41:31+00:00",
|
| 48 |
+
"url": "https://github.com/juspay/hyperswitch/commit/de3006f2dae05f0469622f5bbed2b5f41a4788e6"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"sha": "de0b6c0ab32dbb65cd56ad6ec88930dcba6dbd34",
|
| 52 |
+
"message": "Merged main",
|
| 53 |
+
"author": "Spriti Aneja",
|
| 54 |
+
"date": "2024-12-02T06:54:17+00:00",
|
| 55 |
+
"url": "https://github.com/juspay/hyperswitch/commit/de0b6c0ab32dbb65cd56ad6ec88930dcba6dbd34"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"sha": "788e96a90ee896b6187ec41707f8596a5182e36f",
|
| 59 |
+
"message": "Resolved comments",
|
| 60 |
+
"author": "Spriti Aneja",
|
| 61 |
+
"date": "2024-12-02T11:18:41+00:00",
|
| 62 |
+
"url": "https://github.com/juspay/hyperswitch/commit/788e96a90ee896b6187ec41707f8596a5182e36f"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"sha": "7d713720e336728e514628105112ce6133f6d87a",
|
| 66 |
+
"message": "Moved Datatrans to hyperswitch_connector crate",
|
| 67 |
+
"author": "Spriti Aneja",
|
| 68 |
+
"date": "2024-12-03T10:07:29+00:00",
|
| 69 |
+
"url": "https://github.com/juspay/hyperswitch/commit/7d713720e336728e514628105112ce6133f6d87a"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"sha": "0369874d16a333b8040c6d84f7f9d32e67b086fb",
|
| 73 |
+
"message": "Moved Paybox to hyperswitch_connector crate",
|
| 74 |
+
"author": "Spriti Aneja",
|
| 75 |
+
"date": "2024-12-03T12:11:26+00:00",
|
| 76 |
+
"url": "https://github.com/juspay/hyperswitch/commit/0369874d16a333b8040c6d84f7f9d32e67b086fb"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"sha": "6936a0f588d6f31997472e457c750692a9be4727",
|
| 80 |
+
"message": "Moved Placetopay to hyperswitch_connectors crate",
|
| 81 |
+
"author": "Spriti Aneja",
|
| 82 |
+
"date": "2024-12-04T07:56:06+00:00",
|
| 83 |
+
"url": "https://github.com/juspay/hyperswitch/commit/6936a0f588d6f31997472e457c750692a9be4727"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"sha": "85cd7a89f433d2470be644d3d55f04ce01350a93",
|
| 87 |
+
"message": "Moved Bluesnap to hyperswitch_connectors crate",
|
| 88 |
+
"author": "Spriti Aneja",
|
| 89 |
+
"date": "2024-12-05T13:03:23+00:00",
|
| 90 |
+
"url": "https://github.com/juspay/hyperswitch/commit/85cd7a89f433d2470be644d3d55f04ce01350a93"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"sha": "771a6492e89fcb7c6d37575b387c314008358065",
|
| 94 |
+
"message": "Merge branch 'main' into connector-movement-new",
|
| 95 |
+
"author": "Spriti Aneja",
|
| 96 |
+
"date": "2024-12-06T07:05:27+00:00",
|
| 97 |
+
"url": "https://github.com/juspay/hyperswitch/commit/771a6492e89fcb7c6d37575b387c314008358065"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"sha": "76d718e96c09f8729b10a9aa8d840b9c500de28b",
|
| 101 |
+
"message": "Resolved errors",
|
| 102 |
+
"author": "Spriti Aneja",
|
| 103 |
+
"date": "2024-12-06T07:38:12+00:00",
|
| 104 |
+
"url": "https://github.com/juspay/hyperswitch/commit/76d718e96c09f8729b10a9aa8d840b9c500de28b"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"sha": "ab73dbbd236e71994bb9681c91852bdd7e5e865e",
|
| 108 |
+
"message": "Merge branch 'main' into connector-movement-new",
|
| 109 |
+
"author": "deepanshu-iiitu",
|
| 110 |
+
"date": "2024-12-10T11:35:55+00:00",
|
| 111 |
+
"url": "https://github.com/juspay/hyperswitch/commit/ab73dbbd236e71994bb9681c91852bdd7e5e865e"
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"sha": "d73ed7152f0c861baf78684098b9a80f5d206da2",
|
| 115 |
+
"message": "chore: Fix formatting",
|
| 116 |
+
"author": "deepanshu-iiitu",
|
| 117 |
+
"date": "2024-12-10T11:47:19+00:00",
|
| 118 |
+
"url": "https://github.com/juspay/hyperswitch/commit/d73ed7152f0c861baf78684098b9a80f5d206da2"
|
| 119 |
+
}
|
| 120 |
+
]
|
| 121 |
+
}
|
prs/pr_6732.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"number": 6732,
|
| 3 |
+
"title": "feat(connector): [Unifiedauthenticationservice] add Connector Template Code",
|
| 4 |
+
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\ntemplate for unified_authentication_service\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
|
| 5 |
+
"author": "sumanmaji4",
|
| 6 |
+
"created_at": "2024-12-03T12:50:29+00:00",
|
| 7 |
+
"merged_at": "2024-12-10T11:03:06+00:00",
|
| 8 |
+
"base_branch": "main",
|
| 9 |
+
"labels": [
|
| 10 |
+
"A-connector-integration",
|
| 11 |
+
"C-feature"
|
| 12 |
+
],
|
| 13 |
+
"url": "https://github.com/juspay/hyperswitch/pull/6732",
|
| 14 |
+
"commits": [
|
| 15 |
+
{
|
| 16 |
+
"sha": "9b6528fd7287848517c33f0aa1fd8115d6f47369",
|
| 17 |
+
"message": "unifiedauthenticationservice template",
|
| 18 |
+
"author": "sumanmaji4",
|
| 19 |
+
"date": "2024-12-03T12:26:39+00:00",
|
| 20 |
+
"url": "https://github.com/juspay/hyperswitch/commit/9b6528fd7287848517c33f0aa1fd8115d6f47369"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"sha": "87f6133c7c7b1153dc99ffa32ed3bb11a6bddd70",
|
| 24 |
+
"message": "comment resolved",
|
| 25 |
+
"author": "sumanmaji4",
|
| 26 |
+
"date": "2024-12-04T08:14:19+00:00",
|
| 27 |
+
"url": "https://github.com/juspay/hyperswitch/commit/87f6133c7c7b1153dc99ffa32ed3bb11a6bddd70"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"sha": "51ef649c1aca3858ddbe1157e2f78e5502470b92",
|
| 31 |
+
"message": "chore: run formatter",
|
| 32 |
+
"author": "hyperswitch-bot[bot]",
|
| 33 |
+
"date": "2024-12-05T13:52:40+00:00",
|
| 34 |
+
"url": "https://github.com/juspay/hyperswitch/commit/51ef649c1aca3858ddbe1157e2f78e5502470b92"
|
| 35 |
+
}
|
| 36 |
+
]
|
| 37 |
+
}
|