Skip to content

feat(core): Fix Applepay/Gpay for Trustpay#8881

Merged
likhinbopanna merged 1 commit into
mainfrom
gpay-fix
Aug 10, 2025
Merged

feat(core): Fix Applepay/Gpay for Trustpay#8881
likhinbopanna merged 1 commit into
mainfrom
gpay-fix

Conversation

@awasthi21

@awasthi21 awasthi21 commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Hotfix :#8882

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Payments Create

curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_izwUb76c3qmeJJSgPxfqXzA7J728ss4o7EY0FdWlwyQIw3xhIxUAv1GKZGIoYWLw' \
--data-raw '{
    "amount": 6100,
    "currency": "USD",
    "confirm": false,
    "business_country": "US",
    "business_label": "default",
    "amount_to_capture": 6100,
    "capture_method": "automatic",
    "capture_on": "2022-09-10T10:11:12Z",
    "return_url": "https://google.com/",
    "email": "something@gmail.com",
    "setup_future_usage": "on_session",
    "name": "Joseph Doe",
    "phone": "999999999",
    "phone_country_code": "+65",
    "description": "Its my first payment request",
    "statement_descriptor_name": "Juspay",
    "statement_descriptor_suffix": "Router",
    "customer_id": "cu_1747653129",
    "billing": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "California",
            "zip": "94122",
            "country": "US",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        }
    }
}

Response

{
    "payment_id": "pay_OluPb5CwYfHKZOofzB5I",
    "merchant_id": "merchant_1754664301",
    "status": "requires_payment_method",
    "amount": 6500,
    "net_amount": 6500,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": null,
    "connector": null,
    "client_secret": "pay_OluPb5CwYfHKZOofzB5I_secret_k4QIAxGM5V5Okc4RMLIV",
    "created": "2025-08-08T15:04:58.988Z",
    "currency": "USD",
    "customer_id": "test_fb",
    "customer": {
        "id": "test_fb",
        "name": "Joseph Doe",
        "email": "something@gmail.com",
        "phone": "999999999",
        "phone_country_code": "+65"
    },
    "description": "Its my first payment request",
    "refunds": null,
    "disputes": null,
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": null,
    "off_session": null,
    "capture_on": null,
    "capture_method": "automatic",
    "payment_method": null,
    "payment_method_data": null,
    "payment_token": null,
    "shipping": null,
    "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": "8056594427",
            "country_code": "+91"
        },
        "email": null
    },
    "order_details": null,
    "email": "something@gmail.com",
    "name": "Joseph Doe",
    "phone": "999999999",
    "return_url": "https://google.com/",
    "authentication_type": "three_ds",
    "statement_descriptor_name": "Juspay",
    "statement_descriptor_suffix": "Router",
    "next_action": null,
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": null,
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": {
        "customer_id": "test_fb",
        "created_at": 1754665498,
        "expires": 1754669098,
        "secret": "epk_c3d7311b50d2474c927d089153109bd4"
    },
    "manual_retry_allowed": null,
    "connector_transaction_id": null,
    "frm_message": null,
    "metadata": null,
    "connector_metadata": null,
    "feature_metadata": {
        "redirect_response": null,
        "search_tags": null,
        "apple_pay_recurring_details": {
            "payment_description": "this is the apple pay recurring payment",
            "regular_billing": {
                "label": "pay to hyperswitchs merchant",
                "recurring_payment_start_date": "2027-09-10T10:11:12.000Z",
                "recurring_payment_end_date": "2027-09-10T10:11:12.000Z",
                "recurring_payment_interval_unit": "year",
                "recurring_payment_interval_count": 1
            },
            "billing_agreement": "billing starts from the above mentioned start date",
            "management_url": "https://applepaydemo.apple.com/"
        }
    },
    "reference_id": null,
    "payment_link": null,
    "profile_id": "pro_8zw2mkU5ZzZHUfqYFtx2",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": null,
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-08-08T15:19:58.988Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_channel": null,
    "payment_method_id": null,
    "network_transaction_id": null,
    "payment_method_status": null,
    "updated": "2025-08-08T15:04:59.033Z",
    "split_payments": null,
    "frm_metadata": null,
    "extended_authorization_applied": null,
    "capture_before": null,
    "merchant_order_reference_id": null,
    "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
}

Session Create Call

curl --location 'http://localhost:8080/payments/session_tokens' \
--header 'Content-Type: application/json' \
--header 'x-browser-name: Safari' \
--header 'x-client-platform: web' \
--header 'x-merchant-domain: hyperswitch-demo-store.netlify.app' \
--header 'api-key: pk_dev_53b837ea9757471ebf7ab7ac908add0e' \
--data '{
    "payment_id": "pay_4MSU93Srz6glicm51zuR",
    "wallets": [],
    "client_secret": "pay_4MSU93Srz6glicm51zuR_secret_CJTeNGnHxgvBH5kyg6xc"
}'

Session Response

{
    "payment_id": "pay_4MSU93Srz6glicm51zuR",
    "client_secret": "pay_4MSU93Srz6glicm51zuR_secret_CJTeNGnHxgvBH5kyg6xc",
    "session_token": [
        {
            "wallet_name": "apple_pay",
            "session_token_data": null,
            "payment_request_data": null,
            "connector": "trustpay",
            "delayed_session_token": true,
            "sdk_next_action": {
                "next_action": "confirm"
            },
            "connector_reference_id": null,
            "connector_sdk_public_key": null,
            "connector_merchant_id": null
        },
        {
            "wallet_name": "google_pay",
            "delayed_session_token": true,
            "connector": "trustpay",
            "sdk_next_action": {
                "next_action": "confirm"
            }
        }
    ]
}

Confirm Case

curl --location 'http://localhost:8080/payments/pay_4MSU93Srz6glicm51zuR/confirm' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: pk_dev_53b837ea9757471ebf7ab7ac908add0e' \
--data '{
    "client_secret": "pay_4MSU93Srz6glicm51zuR_secret_CJTeNGnHxgvBH5kyg6xc",
    "payment_method": "wallet",
    "payment_method_type": "apple_pay",
    "payment_method_data": {
        "wallet": {
            "apple_pay_third_party_sdk": {}
        }
    }
    
    
}'

Confirm Response

{
    "payment_id": "pay_4MSU93Srz6glicm51zuR",
    "merchant_id": "merchant_1754664301",
    "status": "requires_customer_action",
    "amount": 6100,
    "net_amount": 6100,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": null,
    "connector": "trustpay",
    "client_secret": "pay_4MSU93Srz6glicm51zuR_secret_CJTeNGnHxgvBH5kyg6xc",
    "created": "2025-08-08T15:05:23.278Z",
    "currency": "USD",
    "customer_id": "cu_1747653129",
    "customer": {
        "id": "cu_1747653129",
        "name": "Joseph Doe",
        "email": "something@gmail.com",
        "phone": "999999999",
        "phone_country_code": "+65"
    },
    "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": "wallet",
    "payment_method_data": {
        "wallet": {},
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "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": "8056594427",
            "country_code": "+91"
        },
        "email": null
    },
    "order_details": null,
    "email": "something@gmail.com",
    "name": "Joseph Doe",
    "phone": "999999999",
    "return_url": "https://google.com/",
    "authentication_type": null,
    "statement_descriptor_name": "Juspay",
    "statement_descriptor_suffix": "Router",
    "next_action": {
        "type": "third_party_sdk_session_token",
        "session_token": {
            "wallet_name": "apple_pay",
            "session_token_data": {
                "secrets": {
                    "display": "dkaHcqUegL8Z8r1TY3i-3CvMhhugW0zBlbhAHb9MiQW1mpgIlR9uZ8XK5_3e0eEdeqt7ex9T1GCHTa-v0CXXO8yFjXFYzOvQpGOJu8jhsJPoh7sdU20n8LMYoSfUOxxx",
                    "payment": "qkqoQaucCzAaQS37WmM8AtvoviohY7D9-jKfTIngWGYjCVVjf0D6KEjjHJc01JNl3gOCqwBU2ojxk2ntRWsDja_OgSmEwSTy0w-L5bsTtkuom66n_mz8wFbK7HwA6Pbq"
                }
            },
            "payment_request_data": {
                "country_code": "IN",
                "currency_code": "USD",
                "total": {
                    "label": "juspay.in",
                    "type": null,
                    "amount": "61.00"
                },
                "merchant_capabilities": [
                    "supports3DS"
                ],
                "supported_networks": [
                    "visa",
                    "masterCard",
                    "maestro"
                ],
                "merchant_identifier": null
            },
            "connector": "trustpay",
            "delayed_session_token": true,
            "sdk_next_action": {
                "next_action": "sync"
            },
            "connector_reference_id": null,
            "connector_sdk_public_key": null,
            "connector_merchant_id": null
        }
    },
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": "apple_pay",
    "connector_label": "trustpay_US_default",
    "business_country": "US",
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": null,
    "manual_retry_allowed": null,
    "connector_transaction_id": "fo6mF0U6IuOejr6BU5ymiA",
    "frm_message": null,
    "metadata": null,
    "connector_metadata": null,
    "feature_metadata": null,
    "reference_id": null,
    "payment_link": null,
    "profile_id": "pro_8zw2mkU5ZzZHUfqYFtx2",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_46VoXY1k1qrEp2u8SW44",
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-08-08T15:20:23.278Z",
    "fingerprint": null,
    "browser_info": {
        "os_type": null,
        "language": null,
        "time_zone": null,
        "ip_address": "::1",
        "os_version": null,
        "user_agent": null,
        "color_depth": null,
        "device_model": null,
        "java_enabled": null,
        "screen_width": null,
        "accept_header": null,
        "screen_height": null,
        "accept_language": "en",
        "java_script_enabled": null
    },
    "payment_channel": null,
    "payment_method_id": null,
    "network_transaction_id": null,
    "payment_method_status": null,
    "updated": "2025-08-08T15:07:28.716Z",
    "split_payments": null,
    "frm_metadata": null,
    "extended_authorization_applied": null,
    "capture_before": null,
    "merchant_order_reference_id": null,
    "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
}

GooglePay
Create Call

curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_izwUb76c3qmeJJSgPxfqXzA7J728ss4o7EY0FdWlwyQIw3xhIxUAv1GKZGIoYWLw' \
--data-raw '{
    "amount": 6100,
    "currency": "USD",
    "confirm": false,
    "business_country": "US",
    "business_label": "default",
    "amount_to_capture": 6100,
    "capture_method": "automatic",
    "capture_on": "2022-09-10T10:11:12Z",
    "return_url": "https://google.com/",
    "email": "something@gmail.com",
    "setup_future_usage": "on_session",
    "name": "Joseph Doe",
    "phone": "999999999",
    "phone_country_code": "+65",
    "description": "Its my first payment request",
    "statement_descriptor_name": "Juspay",
    "statement_descriptor_suffix": "Router",
    "customer_id": "cu_1747653129",
    "billing": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "California",
            "zip": "94122",
            "country": "US",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        }
    }
}

Response

{
    "payment_id": "pay_tfPQ5nAGzc3VPOxlN0lg",
    "merchant_id": "merchant_1754664301",
    "status": "requires_payment_method",
    "amount": 6500,
    "net_amount": 6500,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": null,
    "connector": null,
    "client_secret": "pay_tfPQ5nAGzc3VPOxlN0lg_secret_WubijRpU0FZgk7GDvLTq",
    "created": "2025-08-08T15:10:11.112Z",
    "currency": "USD",
    "customer_id": "test_fb",
    "customer": {
        "id": "test_fb",
        "name": "Joseph Doe",
        "email": "something@gmail.com",
        "phone": "999999999",
        "phone_country_code": "+65"
    },
    "description": "Its my first payment request",
    "refunds": null,
    "disputes": null,
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": null,
    "off_session": null,
    "capture_on": null,
    "capture_method": "automatic",
    "payment_method": null,
    "payment_method_data": null,
    "payment_token": null,
    "shipping": null,
    "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": "8056594427",
            "country_code": "+91"
        },
        "email": null
    },
    "order_details": null,
    "email": "something@gmail.com",
    "name": "Joseph Doe",
    "phone": "999999999",
    "return_url": "https://google.com/",
    "authentication_type": "three_ds",
    "statement_descriptor_name": "Juspay",
    "statement_descriptor_suffix": "Router",
    "next_action": null,
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": null,
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": {
        "customer_id": "test_fb",
        "created_at": 1754665811,
        "expires": 1754669411,
        "secret": "epk_f4e63e8f6e764dfc8c50c6a0c1841bd4"
    },
    "manual_retry_allowed": null,
    "connector_transaction_id": null,
    "frm_message": null,
    "metadata": null,
    "connector_metadata": null,
    "feature_metadata": {
        "redirect_response": null,
        "search_tags": null,
        "apple_pay_recurring_details": {
            "payment_description": "this is the apple pay recurring payment",
            "regular_billing": {
                "label": "pay to hyperswitchs merchant",
                "recurring_payment_start_date": "2027-09-10T10:11:12.000Z",
                "recurring_payment_end_date": "2027-09-10T10:11:12.000Z",
                "recurring_payment_interval_unit": "year",
                "recurring_payment_interval_count": 1
            },
            "billing_agreement": "billing starts from the above mentioned start date",
            "management_url": "https://applepaydemo.apple.com/"
        }
    },
    "reference_id": null,
    "payment_link": null,
    "profile_id": "pro_8zw2mkU5ZzZHUfqYFtx2",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": null,
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-08-08T15:25:11.112Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_channel": null,
    "payment_method_id": null,
    "network_transaction_id": null,
    "payment_method_status": null,
    "updated": "2025-08-08T15:10:11.123Z",
    "split_payments": null,
    "frm_metadata": null,
    "extended_authorization_applied": null,
    "capture_before": null,
    "merchant_order_reference_id": null,
    "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
}

Session Resquest

curl --location 'http://localhost:8080/payments/session_tokens' \
--header 'Content-Type: application/json' \
--header 'x-browser-name: Safari' \
--header 'x-client-platform: web' \
--header 'x-merchant-domain: hyperswitch-demo-store.netlify.app' \
--header 'api-key: pk_dev_53b837ea9757471ebf7ab7ac908add0e' \
--data '{
    "payment_id": "pay_tfPQ5nAGzc3VPOxlN0lg",
    "wallets": [],
    "client_secret": "pay_tfPQ5nAGzc3VPOxlN0lg_secret_WubijRpU0FZgk7GDvLTq"
}'

Session Response

{
    "payment_id": "pay_tfPQ5nAGzc3VPOxlN0lg",
    "client_secret": "pay_tfPQ5nAGzc3VPOxlN0lg_secret_WubijRpU0FZgk7GDvLTq",
    "session_token": [
        {
            "wallet_name": "apple_pay",
            "session_token_data": null,
            "payment_request_data": null,
            "connector": "trustpay",
            "delayed_session_token": true,
            "sdk_next_action": {
                "next_action": "confirm"
            },
            "connector_reference_id": null,
            "connector_sdk_public_key": null,
            "connector_merchant_id": null
        },
        {
            "wallet_name": "google_pay",
            "delayed_session_token": true,
            "connector": "trustpay",
            "sdk_next_action": {
                "next_action": "confirm"
            }
        }
    ]
}

Confirm
Request

curl --location 'http://localhost:8080/payments/pay_tfPQ5nAGzc3VPOxlN0lg/confirm' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: pk_dev_53b837ea9757471ebf7ab7ac908add0e' \
--data '{
    "client_secret": "pay_tfPQ5nAGzc3VPOxlN0lg_secret_WubijRpU0FZgk7GDvLTq",
    "payment_method": "wallet",
    "payment_method_type": "google_pay",
    "payment_method_data": {
        "wallet": {
            "google_pay_third_party_sdk": {}
        }
    }
 
}'

Response

{
    "payment_id": "pay_tfPQ5nAGzc3VPOxlN0lg",
    "merchant_id": "merchant_1754664301",
    "status": "requires_customer_action",
    "amount": 6500,
    "net_amount": 6500,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": null,
    "connector": "trustpay",
    "client_secret": "pay_tfPQ5nAGzc3VPOxlN0lg_secret_WubijRpU0FZgk7GDvLTq",
    "created": "2025-08-08T15:10:11.112Z",
    "currency": "USD",
    "customer_id": "test_fb",
    "customer": {
        "id": "test_fb",
        "name": "Joseph Doe",
        "email": "something@gmail.com",
        "phone": "999999999",
        "phone_country_code": "+65"
    },
    "description": "Its my first payment request",
    "refunds": null,
    "disputes": null,
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": null,
    "off_session": null,
    "capture_on": null,
    "capture_method": "automatic",
    "payment_method": "wallet",
    "payment_method_data": {
        "wallet": {},
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "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": "8056594427",
            "country_code": "+91"
        },
        "email": null
    },
    "order_details": null,
    "email": "something@gmail.com",
    "name": "Joseph Doe",
    "phone": "999999999",
    "return_url": "https://google.com/",
    "authentication_type": "three_ds",
    "statement_descriptor_name": "Juspay",
    "statement_descriptor_suffix": "Router",
    "next_action": {
        "type": "third_party_sdk_session_token",
        "session_token": {
            "wallet_name": "google_pay",
            "merchant_info": {
                "merchant_id": "BCR2DN6TZ7NIH23I",
                "merchant_name": "juspay.in"
            },
            "shipping_address_required": false,
            "email_required": false,
            "shipping_address_parameters": {
                "phone_number_required": false
            },
            "allowed_payment_methods": [
                {
                    "type": "CARD",
                    "parameters": {
                        "allowed_auth_methods": [
                            "PAN_ONLY",
                            "CRYPTOGRAM_3DS"
                        ],
                        "allowed_card_networks": [
                            "MASTERCARD",
                            "VISA"
                        ],
                        "assurance_details_required": true
                    },
                    "tokenization_specification": {
                        "type": "PAYMENT_GATEWAY",
                        "parameters": {
                            "gateway": "trustpay",
                            "gateway_merchant_id": "4107721441"
                        }
                    }
                }
            ],
            "transaction_info": {
                "country_code": "IN",
                "currency_code": "USD",
                "total_price_status": "FINAL",
                "total_price": "65.00"
            },
            "delayed_session_token": true,
            "connector": "trustpay",
            "sdk_next_action": {
                "next_action": "sync"
            },
            "secrets": {
                "display": "hR_aG2qx6agfcULydAeX-oUeFPcuxOrLR5j1vYD17yG4_31H3gbm9hUcj7kQXIkkJxYFukY5HvMod9r_z5gS1ueLolq2BhN3bNn4IZHv5xDdCbhNbwpj_uZDRlNN6YUh",
                "payment": "yXtiIRTwWkrBsCTddsdZd24h3kCvSUuZ6KHPdoQQkfuwry_EKIFb0ur6vlCi5_YK6mtugMJV0ppT3jX3vEMXho1UdXIbUh8-2pYuPJnIzH7Iy2N0GxC3JcOzHE_4koxZ"
            }
        }
    },
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": "google_pay",
    "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": "nRKRaGuBoWDTzcEA9SaB2w",
    "frm_message": null,
    "metadata": null,
    "connector_metadata": null,
    "feature_metadata": {
        "redirect_response": null,
        "search_tags": null,
        "apple_pay_recurring_details": {
            "payment_description": "this is the apple pay recurring payment",
            "regular_billing": {
                "label": "pay to hyperswitchs merchant",
                "recurring_payment_start_date": "2027-09-10T10:11:12.000Z",
                "recurring_payment_end_date": "2027-09-10T10:11:12.000Z",
                "recurring_payment_interval_unit": "year",
                "recurring_payment_interval_count": 1
            },
            "billing_agreement": "billing starts from the above mentioned start date",
            "management_url": "https://applepaydemo.apple.com/"
        }
    },
    "reference_id": null,
    "payment_link": null,
    "profile_id": "pro_8zw2mkU5ZzZHUfqYFtx2",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_46VoXY1k1qrEp2u8SW44",
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-08-08T15:25:11.112Z",
    "fingerprint": null,
    "browser_info": {
        "os_type": null,
        "language": null,
        "time_zone": null,
        "ip_address": "::1",
        "os_version": null,
        "user_agent": null,
        "color_depth": null,
        "device_model": null,
        "java_enabled": null,
        "screen_width": null,
        "accept_header": null,
        "screen_height": null,
        "accept_language": "en",
        "java_script_enabled": null
    },
    "payment_channel": null,
    "payment_method_id": null,
    "network_transaction_id": null,
    "payment_method_status": null,
    "updated": "2025-08-08T15:10:36.654Z",
    "split_payments": null,
    "frm_metadata": null,
    "extended_authorization_applied": null,
    "capture_before": null,
    "merchant_order_reference_id": null,
    "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
}

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@awasthi21 awasthi21 self-assigned this Aug 8, 2025
@awasthi21 awasthi21 requested a review from a team as a code owner August 8, 2025 14:52
@semanticdiff-com

semanticdiff-com Bot commented Aug 8, 2025

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  crates/router/src/core/payments.rs  75% smaller

@likhinbopanna likhinbopanna added this pull request to the merge queue Aug 10, 2025
Merged via the queue into main with commit 7a3b4da Aug 10, 2025
27 of 33 checks passed
@likhinbopanna likhinbopanna deleted the gpay-fix branch August 10, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants