feat(router): Payment Intent and MCA changes for split payments#9049
Merged
likhinbopanna merged 5 commits intomainfrom Sep 1, 2025
Merged
feat(router): Payment Intent and MCA changes for split payments#9049likhinbopanna merged 5 commits intomainfrom
likhinbopanna merged 5 commits intomainfrom
Conversation
2450ccd to
6b02d44
Compare
Sakilmostak
requested changes
Aug 26, 2025
v2_compatible_migrations/2025-08-25-090221_add-split-txns-enabled-in-payment-intent/up.sql
Outdated
Show resolved
Hide resolved
2aea0a5 to
fee9289
Compare
Sakilmostak
reviewed
Aug 29, 2025
hrithikesh026
previously approved these changes
Aug 29, 2025
| @@ -0,0 +1,2 @@ | |||
| -- Your SQL goes here | |||
| ALTER TABLE payment_intent ADD COLUMN IF NOT EXISTS split_txns_enabled VARCHAR(16); No newline at end of file | |||
Contributor
There was a problem hiding this comment.
Are you sure this enum variant will not exceed 16 characters?
Contributor
Author
There was a problem hiding this comment.
It should be enough. We can anyways rename enum variants when serializing them in DB.
Sakilmostak
approved these changes
Aug 29, 2025
hrithikesh026
approved these changes
Aug 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Additional Changes
Motivation and Context
Closes #9047
How did you test it?
Response:
{ "merchant_id": "cloth_seller_v2_5WeDFMHDxeA6s3I9WReI", "id": "pro_ayVzG5Zr33W31ArJk7CK", "profile_name": "businesss", "return_url": "https://google.com/success", "enable_payment_response_hash": true, "payment_response_hash_key": "c94j5uGyFCAIU1N24p3mVl9DKLrSCN0xslChyzawzX1gwvSynCgpX6vS39JuA0J9", "redirect_to_merchant_with_http_post": false, "webhook_details": { "webhook_version": "1.0.1", "webhook_username": "ekart_retail", "webhook_password": "password_ekart@123", "webhook_url": "https://webhook.site", "payment_created_enabled": true, "payment_succeeded_enabled": true, "payment_failed_enabled": true, "payment_statuses_enabled": null, "refund_statuses_enabled": null, "payout_statuses_enabled": null }, "metadata": null, "applepay_verified_domains": null, "session_expiry": 900, "payment_link_config": null, "authentication_connector_details": null, "use_billing_as_payment_method_billing": true, "extended_card_info_config": null, "collect_shipping_details_from_wallet_connector_if_required": false, "collect_billing_details_from_wallet_connector_if_required": false, "always_collect_shipping_details_from_wallet_connector": false, "always_collect_billing_details_from_wallet_connector": false, "is_connector_agnostic_mit_enabled": false, "payout_link_config": null, "outgoing_webhook_custom_http_headers": null, "order_fulfillment_time": 900, "order_fulfillment_time_origin": "create", "tax_connector_id": null, "is_tax_connector_enabled": false, "is_network_tokenization_enabled": false, "should_collect_cvv_during_payment": null, "is_click_to_pay_enabled": false, "authentication_product_ids": null, "card_testing_guard_config": { "card_ip_blocking_status": "disabled", "card_ip_blocking_threshold": 3, "guest_user_card_blocking_status": "disabled", "guest_user_card_blocking_threshold": 10, "customer_id_blocking_status": "disabled", "customer_id_blocking_threshold": 5, "card_testing_guard_expiry": 3600 }, "is_clear_pan_retries_enabled": false, "is_debit_routing_enabled": false, "merchant_business_country": null, "is_iframe_redirection_enabled": null, "is_external_vault_enabled": null, "external_vault_connector_details": null, "merchant_category_code": null, "merchant_country_code": null, "split_txns_enabled": "enable" }{ "id": "12345_pay_0198e54f328775408faf14fc2c47651a", "status": "requires_payment_method", "amount_details": { "order_amount": 1000, "currency": "USD", "shipping_cost": null, "order_tax_amount": null, "external_tax_calculation": "skip", "surcharge_calculation": "skip", "surcharge_amount": null, "tax_on_surcharge": null }, "client_secret": "cs_0198e54f32b07003a723ffba50f47fea", "profile_id": "pro_dPNtC5bK3lNxBYt7kyk4", "merchant_reference_id": null, "routing_algorithm_id": null, "capture_method": "automatic", "authentication_type": "three_ds", "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe", "origin_zip": null }, "phone": { "number": "123456789", "country_code": "+1" }, "email": "user@gmail.com" }, "shipping": { "address": { "city": "Karwar", "country": "US", "line1": null, "line2": null, "line3": null, "zip": "571201", "state": "California", "first_name": "John", "last_name": "Dough", "origin_zip": null }, "phone": { "number": "123456789", "country_code": "+1" }, "email": "example@example.com" }, "customer_id": "12345_cus_0198e54d6c3b7871bcfde4a50ee43b88", "customer_present": "present", "description": null, "return_url": null, "setup_future_usage": "on_session", "apply_mit_exemption": "Skip", "statement_descriptor": null, "order_details": [ { "product_name": "Apple iphone 15", "quantity": 1, "amount": 1000, "tax_rate": null, "total_tax_amount": null, "requires_shipping": null, "product_img_link": null, "product_id": null, "category": null, "sub_category": null, "brand": null, "product_type": null, "product_tax_code": null, "description": null, "sku": null, "upc": null, "commodity_code": null, "unit_of_measure": null, "total_amount": null, "unit_discount_amount": null } ], "allowed_payment_method_types": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "payment_link_enabled": "Skip", "payment_link_config": null, "request_incremental_authorization": "false", "split_txns_enabled": "true", "expires_on": "2025-08-26T07:52:09.530Z", "frm_metadata": null, "request_external_three_ds_authentication": "Skip" }Checklist
cargo +nightly fmt --allcargo clippy