Skip to content

feat(connector): Moneris Connector Integration - #2127

Merged
JeevaRamu0104 merged 24 commits into
mainfrom
moneris_connector_integration
Aug 18, 2026
Merged

feat(connector): Moneris Connector Integration#2127
JeevaRamu0104 merged 24 commits into
mainfrom
moneris_connector_integration

Conversation

@Shubhodip900

@Shubhodip900 Shubhodip900 commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Description

Add Moneris Card integration with following flows.

  1. Authorize
  2. RepeatPayment
  3. PSync
  4. Capture
  5. Void
  6. ServerAuthenticationToken
  7. Refund
  8. RSync

Motivation and Context

Additional Changes

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

How did you test it?

End to end testing via HS <> UCS.

  1. Authorize ( Manual Capture):-

Request:-

{
    "amount": 800,
    "currency": "USD",
    "confirm": true,
    "capture_method": "manual",
    "capture_on": "2022-09-10T10:11:12Z",
    "amount_to_capture": 800,
    "customer_id": "StripeCustomer",
    "email": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "phone_country_code": "+1",
    "description": "Its my first payment request",
    "authentication_type": "no_three_ds",
    "return_url": "https://www.google.com/",
    "payment_method": "card",
    "payment_method_type": "credit",
    "payment_method_data": {
        "card": {
            "card_number": "4242424242424242",
            "card_exp_month": "01",
            "card_exp_year": "27",
            "card_holder_name": "Joseph Doe",
            "card_cvc": "123"
        }
    },
    "billing": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "California",
            "zip": "94122",
            "country": "DE",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        }
    },
    "shipping": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "California",
            "zip": "94122",
            "country": "DE",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        }
    },
    "statement_descriptor_name": "joseph",
    "statement_descriptor_suffix": "JS",
    "metadata": {
        "udf1": "value1",
        "new_customer": "true",
        "login_date": "2019-09-10T10:11:12Z"
    },
        "browser_info": {
        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
        "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
        "language": "nl-NL",
        "color_depth": 24,
        "screen_height": 723,
        "screen_width": 1536,
        "time_zone": 0,
        "java_enabled": true,
        "java_script_enabled": true,
        "ip_address": "127.0.0.1"
    }
}

Response:-

{
    "payment_id": "pay_PoztYAPFaxFxBdp67kFJ",
    "merchant_id": "merchant_1786686343",
    "status": "requires_capture",
    "amount": 800,
    "net_amount": 800,
    "shipping_cost": null,
    "amount_capturable": 800,
    "amount_received": null,
    "processor_merchant_id": "merchant_1786686343",
    "initiator": null,
    "sdk_authorization": "cHJvZmlsZV9pZD1wcm9fcENWckdzV25UY1RCWlRCNW9ETWkscHVibGlzaGFibGVfa2V5PXBrX2Rldl81N2ExOWIwMTkzNzI0ZTBjYTRlMzkzNTExNTI3MjI5NixjbGllbnRfc2VjcmV0PXBheV9Qb3p0WUFQRmF4RnhCZHA2N2tGSl9zZWNyZXRfRTdQeXVBdjhNVnZvUllCNlJsZHksY3VzdG9tZXJfaWQ9U3RyaXBlQ3VzdG9tZXIsY2xpZW50X3Nlc3Npb25faWQ9Y2xpZW50X3Nlc3NfTUV4M1BQYWcxbzloa3hGMGU5ajUscGF5bWVudF9pZD1wYXlfUG96dFlBUEZheEZ4QmRwNjdrRko=",
    "connector": "moneris",
    "state_metadata": null,
    "client_secret": "pay_PoztYAPFaxFxBdp67kFJ_secret_E7PyuAv8MVvoRYB6Rldy",
    "created": "2026-08-14T06:26:28.849Z",
    "modified_at": "2026-08-14T06:26:31.886Z",
    "connector_customer_id": null,
    "currency": "USD",
    "customer_id": "StripeCustomer",
    "customer": {
        "id": "StripeCustomer",
        "name": "John Doe",
        "email": "guest@example.com",
        "phone": "999999999",
        "phone_country_code": "+1",
        "customer_document_details": null
    },
    "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": "manual",
    "payment_method": "card",
    "payment_method_data": {
        "card": {
            "last4": "4242",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "424242",
            "card_extended_bin": null,
            "card_exp_month": "01",
            "card_exp_year": "27",
            "card_holder_name": "Joseph Doe",
            "payment_checks": null,
            "authentication_data": null,
            "auth_code": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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
    },
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "return_url": "https://www.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,
    "error_details": 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,
    "manual_retry_allowed": null,
    "connector_transaction_id": "pi0001KZZF6RD9EQGPRRD8ECNRBV6A",
    "frm_message": null,
    "metadata": {
        "udf1": "value1",
        "login_date": "2019-09-10T10:11:12Z",
        "new_customer": "true"
    },
    "connector_metadata": null,
    "connector_response_metadata": null,
    "feature_metadata": {
        "redirect_response": null,
        "search_tags": null,
        "apple_pay_recurring_details": null,
        "pix_additional_details": null,
        "boleto_additional_details": null,
        "pix_automatico_additional_details": null,
        "finix_additional_details": null
    },
    "reference_id": "pi0001KZZF6RD9EQGPRRD8ECNRBV6A",
    "payment_link": null,
    "profile_id": "pro_pCVrGsWnTcTBZTB5oDMi",
    "surcharge_details": null,
    "applied_offer": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_Rk07KYUU1IVrca49xr9D",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2026-08-14T06:41:28.849Z",
    "fingerprint": null,
    "browser_info": {
        "language": "nl-NL",
        "time_zone": 0,
        "ip_address": "127.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,
    "network_transaction_link_id": null,
    "payment_method_status": null,
    "updated": "2026-08-14T06:26:31.886Z",
    "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": null,
    "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,
    "billing_descriptor": null,
    "tokenization": null,
    "partner_merchant_identifier_details": null,
    "payment_method_tokenization_details": null,
    "installment_options": null,
    "installment_data": null,
    "sender_payment_instrument_id": null
}
  1. Authorize ( Automatic Capture):-

Request:-

{
    "amount": 800,
    "currency": "USD",
    "confirm": true,
    "capture_method": "automatic",
    "capture_on": "2022-09-10T10:11:12Z",
    "amount_to_capture": 800,
    "customer_id": "StripeCustomer",
    "email": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "phone_country_code": "+1",
    "description": "Its my first payment request",
    "authentication_type": "no_three_ds",
    "return_url": "https://www.google.com/",
    "payment_method": "card",
    "payment_method_type": "credit",
    "payment_method_data": {
        "card": {
            "card_number": "4242424242424242",
            "card_exp_month": "01",
            "card_exp_year": "27",
            "card_holder_name": "Joseph Doe",
            "card_cvc": "123"
        }
    },
    "billing": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "California",
            "zip": "94122",
            "country": "DE",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        }
    },
    "shipping": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "California",
            "zip": "94122",
            "country": "DE",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        }
    },
    "statement_descriptor_name": "joseph",
    "statement_descriptor_suffix": "JS",
    "metadata": {
        "udf1": "value1",
        "new_customer": "true",
        "login_date": "2019-09-10T10:11:12Z"
    },
        "browser_info": {
        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
        "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
        "language": "nl-NL",
        "color_depth": 24,
        "screen_height": 723,
        "screen_width": 1536,
        "time_zone": 0,
        "java_enabled": true,
        "java_script_enabled": true,
        "ip_address": "127.0.0.1"
    }
}

Response:-

{
    "payment_id": "pay_VvRpnIu5leLgox64JymR",
    "merchant_id": "merchant_1786686343",
    "status": "succeeded",
    "amount": 800,
    "net_amount": 800,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": 800,
    "processor_merchant_id": "merchant_1786686343",
    "initiator": null,
    "sdk_authorization": "cHJvZmlsZV9pZD1wcm9fcENWckdzV25UY1RCWlRCNW9ETWkscHVibGlzaGFibGVfa2V5PXBrX2Rldl81N2ExOWIwMTkzNzI0ZTBjYTRlMzkzNTExNTI3MjI5NixjbGllbnRfc2VjcmV0PXBheV9WdlJwbkl1NWxlTGdveDY0SnltUl9zZWNyZXRfa0ZmSWdWUnc2UW1XOVo4ekp1VDQsY3VzdG9tZXJfaWQ9U3RyaXBlQ3VzdG9tZXIsY2xpZW50X3Nlc3Npb25faWQ9Y2xpZW50X3Nlc3NfZVNaNFpDWjBuYTdveU44SG8wSUsscGF5bWVudF9pZD1wYXlfVnZScG5JdTVsZUxnb3g2NEp5bVI=",
    "connector": "moneris",
    "state_metadata": null,
    "client_secret": "pay_VvRpnIu5leLgox64JymR_secret_kFfIgVRw6QmW9Z8zJuT4",
    "created": "2026-08-14T06:29:17.923Z",
    "modified_at": "2026-08-14T06:29:20.449Z",
    "connector_customer_id": null,
    "currency": "USD",
    "customer_id": "StripeCustomer",
    "customer": {
        "id": "StripeCustomer",
        "name": "John Doe",
        "email": "guest@example.com",
        "phone": "999999999",
        "phone_country_code": "+1",
        "customer_document_details": null
    },
    "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": "card",
    "payment_method_data": {
        "card": {
            "last4": "4242",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "424242",
            "card_extended_bin": null,
            "card_exp_month": "01",
            "card_exp_year": "27",
            "card_holder_name": "Joseph Doe",
            "payment_checks": null,
            "authentication_data": null,
            "auth_code": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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
    },
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "return_url": "https://www.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,
    "error_details": 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,
    "manual_retry_allowed": null,
    "connector_transaction_id": "pi0001KZZFBX27RTEF3G9V3AAGZPM8",
    "frm_message": null,
    "metadata": {
        "udf1": "value1",
        "login_date": "2019-09-10T10:11:12Z",
        "new_customer": "true"
    },
    "connector_metadata": null,
    "connector_response_metadata": null,
    "feature_metadata": {
        "redirect_response": null,
        "search_tags": null,
        "apple_pay_recurring_details": null,
        "pix_additional_details": null,
        "boleto_additional_details": null,
        "pix_automatico_additional_details": null,
        "finix_additional_details": null
    },
    "reference_id": "pi0001KZZFBX27RTEF3G9V3AAGZPM8",
    "payment_link": null,
    "profile_id": "pro_pCVrGsWnTcTBZTB5oDMi",
    "surcharge_details": null,
    "applied_offer": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_Rk07KYUU1IVrca49xr9D",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2026-08-14T06:44:17.923Z",
    "fingerprint": null,
    "browser_info": {
        "language": "nl-NL",
        "time_zone": 0,
        "ip_address": "127.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,
    "network_transaction_link_id": null,
    "payment_method_status": null,
    "updated": "2026-08-14T06:29:20.449Z",
    "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": null,
    "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,
    "billing_descriptor": null,
    "tokenization": null,
    "partner_merchant_identifier_details": null,
    "payment_method_tokenization_details": null,
    "installment_options": null,
    "installment_data": null,
    "sender_payment_instrument_id": null
}
  1. PSync:-
    Response:-
{
    "payment_id": "pay_VvRpnIu5leLgox64JymR",
    "merchant_id": "merchant_1786686343",
    "status": "succeeded",
    "amount": 800,
    "net_amount": 800,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": 800,
    "processor_merchant_id": "merchant_1786686343",
    "initiator": null,
    "sdk_authorization": "cHJvZmlsZV9pZD1wcm9fcENWckdzV25UY1RCWlRCNW9ETWkscHVibGlzaGFibGVfa2V5PXBrX2Rldl81N2ExOWIwMTkzNzI0ZTBjYTRlMzkzNTExNTI3MjI5NixjbGllbnRfc2VjcmV0PXBheV9WdlJwbkl1NWxlTGdveDY0SnltUl9zZWNyZXRfa0ZmSWdWUnc2UW1XOVo4ekp1VDQsY3VzdG9tZXJfaWQ9U3RyaXBlQ3VzdG9tZXIscGF5bWVudF9pZD1wYXlfVnZScG5JdTVsZUxnb3g2NEp5bVI=",
    "connector": "moneris",
    "state_metadata": null,
    "client_secret": "pay_VvRpnIu5leLgox64JymR_secret_kFfIgVRw6QmW9Z8zJuT4",
    "created": "2026-08-14T06:29:17.923Z",
    "modified_at": "2026-08-14T06:29:20.449Z",
    "connector_customer_id": null,
    "currency": "USD",
    "customer_id": "StripeCustomer",
    "customer": {
        "id": "StripeCustomer",
        "name": "John Doe",
        "email": "guest@example.com",
        "phone": "999999999",
        "phone_country_code": "+1",
        "customer_document_details": null
    },
    "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": "card",
    "payment_method_data": {
        "card": {
            "last4": "4242",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "424242",
            "card_extended_bin": null,
            "card_exp_month": "01",
            "card_exp_year": "27",
            "card_holder_name": "Joseph Doe",
            "payment_checks": null,
            "authentication_data": null,
            "auth_code": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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
    },
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "return_url": "https://www.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,
    "error_details": 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,
    "manual_retry_allowed": null,
    "connector_transaction_id": "pi0001KZZFBX27RTEF3G9V3AAGZPM8",
    "frm_message": null,
    "metadata": {
        "udf1": "value1",
        "login_date": "2019-09-10T10:11:12Z",
        "new_customer": "true"
    },
    "connector_metadata": null,
    "connector_response_metadata": null,
    "feature_metadata": {
        "redirect_response": null,
        "search_tags": null,
        "apple_pay_recurring_details": null,
        "pix_additional_details": null,
        "boleto_additional_details": null,
        "pix_automatico_additional_details": null,
        "finix_additional_details": null
    },
    "reference_id": "pi0001KZZFBX27RTEF3G9V3AAGZPM8",
    "payment_link": null,
    "profile_id": "pro_pCVrGsWnTcTBZTB5oDMi",
    "surcharge_details": null,
    "applied_offer": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_Rk07KYUU1IVrca49xr9D",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2026-08-14T06:44:17.923Z",
    "fingerprint": null,
    "browser_info": {
        "language": "nl-NL",
        "time_zone": 0,
        "ip_address": "127.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,
    "network_transaction_link_id": null,
    "payment_method_status": null,
    "updated": "2026-08-14T06:29:20.449Z",
    "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": null,
    "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,
    "billing_descriptor": null,
    "tokenization": null,
    "partner_merchant_identifier_details": null,
    "payment_method_tokenization_details": null,
    "installment_options": null,
    "installment_data": null,
    "sender_payment_instrument_id": null
}
  1. Capture:-
    Request:-
{
  "amount_to_capture": 800,
  "statement_descriptor_name": "Joseph",
  "statement_descriptor_suffix": "JS"
}

Response:-

{
    "payment_id": "pay_EkF4ZCsO91aKhiZxkfg7",
    "merchant_id": "merchant_1786686343",
    "status": "succeeded",
    "amount": 800,
    "net_amount": 800,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": 800,
    "processor_merchant_id": "merchant_1786686343",
    "initiator": null,
    "sdk_authorization": "cHJvZmlsZV9pZD1wcm9fcENWckdzV25UY1RCWlRCNW9ETWkscHVibGlzaGFibGVfa2V5PXBrX2Rldl81N2ExOWIwMTkzNzI0ZTBjYTRlMzkzNTExNTI3MjI5NixjbGllbnRfc2VjcmV0PXBheV9Fa0Y0WkNzTzkxYUtoaVp4a2ZnN19zZWNyZXRfSnR6dElDaGVnT3ZhTGRLTWdmdzksY3VzdG9tZXJfaWQ9U3RyaXBlQ3VzdG9tZXIscGF5bWVudF9pZD1wYXlfRWtGNFpDc085MWFLaGlaeGtmZzc=",
    "connector": "moneris",
    "state_metadata": null,
    "client_secret": "pay_EkF4ZCsO91aKhiZxkfg7_secret_JtztIChegOvaLdKMgfw9",
    "created": "2026-08-14T06:31:20.221Z",
    "modified_at": "2026-08-14T06:31:30.706Z",
    "connector_customer_id": null,
    "currency": "USD",
    "customer_id": "StripeCustomer",
    "customer": {
        "id": "StripeCustomer",
        "name": "John Doe",
        "email": "guest@example.com",
        "phone": "999999999",
        "phone_country_code": "+1",
        "customer_document_details": null
    },
    "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": "manual",
    "payment_method": "card",
    "payment_method_data": {
        "card": {
            "last4": "4242",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "424242",
            "card_extended_bin": null,
            "card_exp_month": "01",
            "card_exp_year": "27",
            "card_holder_name": "Joseph Doe",
            "payment_checks": null,
            "authentication_data": null,
            "auth_code": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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
    },
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "return_url": "https://www.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,
    "error_details": 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,
    "manual_retry_allowed": null,
    "connector_transaction_id": "pi0001KZZFFMB2Y1E6EPA8S9ZYZJN1",
    "frm_message": null,
    "metadata": {
        "udf1": "value1",
        "login_date": "2019-09-10T10:11:12Z",
        "new_customer": "true"
    },
    "connector_metadata": null,
    "connector_response_metadata": null,
    "feature_metadata": {
        "redirect_response": null,
        "search_tags": null,
        "apple_pay_recurring_details": null,
        "pix_additional_details": null,
        "boleto_additional_details": null,
        "pix_automatico_additional_details": null,
        "finix_additional_details": null
    },
    "reference_id": "pi0001KZZFFMB2Y1E6EPA8S9ZYZJN1",
    "payment_link": null,
    "profile_id": "pro_pCVrGsWnTcTBZTB5oDMi",
    "surcharge_details": null,
    "applied_offer": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_Rk07KYUU1IVrca49xr9D",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2026-08-14T06:46:20.221Z",
    "fingerprint": null,
    "browser_info": {
        "language": "nl-NL",
        "time_zone": 0,
        "ip_address": "127.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,
    "network_transaction_link_id": null,
    "payment_method_status": null,
    "updated": "2026-08-14T06:31:30.706Z",
    "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": null,
    "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,
    "billing_descriptor": null,
    "tokenization": null,
    "partner_merchant_identifier_details": null,
    "payment_method_tokenization_details": null,
    "installment_options": null,
    "installment_data": null,
    "sender_payment_instrument_id": null
}
  1. Void:-
    Request:-
{
  "cancellation_reason": "requested_by_customer"
}

Response:-

{
    "payment_id": "pay_ohRSTmAP38tM9DYhZz0o",
    "merchant_id": "merchant_1786686343",
    "status": "cancelled",
    "amount": 800,
    "net_amount": 800,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": null,
    "processor_merchant_id": "merchant_1786686343",
    "initiator": null,
    "sdk_authorization": "cHJvZmlsZV9pZD1wcm9fcENWckdzV25UY1RCWlRCNW9ETWkscHVibGlzaGFibGVfa2V5PXBrX2Rldl81N2ExOWIwMTkzNzI0ZTBjYTRlMzkzNTExNTI3MjI5NixjbGllbnRfc2VjcmV0PXBheV9vaFJTVG1BUDM4dE05RFloWnowb19zZWNyZXRfdEtoN3NHQ2dEOFZYRXZPMllpMjIsY3VzdG9tZXJfaWQ9U3RyaXBlQ3VzdG9tZXIscGF5bWVudF9pZD1wYXlfb2hSU1RtQVAzOHRNOURZaFp6MG8=",
    "connector": "moneris",
    "state_metadata": null,
    "client_secret": "pay_ohRSTmAP38tM9DYhZz0o_secret_tKh7sGCgD8VXEvO2Yi22",
    "created": "2026-08-14T06:32:26.208Z",
    "modified_at": "2026-08-14T06:32:34.028Z",
    "connector_customer_id": null,
    "currency": "USD",
    "customer_id": "StripeCustomer",
    "customer": {
        "id": "StripeCustomer",
        "name": "John Doe",
        "email": "guest@example.com",
        "phone": "999999999",
        "phone_country_code": "+1",
        "customer_document_details": null
    },
    "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": "manual",
    "payment_method": "card",
    "payment_method_data": {
        "card": {
            "last4": "4242",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "424242",
            "card_extended_bin": null,
            "card_exp_month": "01",
            "card_exp_year": "27",
            "card_holder_name": "Joseph Doe",
            "payment_checks": null,
            "authentication_data": null,
            "auth_code": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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
    },
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "return_url": "https://www.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,
    "error_details": 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,
    "manual_retry_allowed": null,
    "connector_transaction_id": "pi0001KZZFHKR2NQ52712EPMJS3WVE",
    "frm_message": null,
    "metadata": {
        "udf1": "value1",
        "login_date": "2019-09-10T10:11:12Z",
        "new_customer": "true"
    },
    "connector_metadata": null,
    "connector_response_metadata": null,
    "feature_metadata": {
        "redirect_response": null,
        "search_tags": null,
        "apple_pay_recurring_details": null,
        "pix_additional_details": null,
        "boleto_additional_details": null,
        "pix_automatico_additional_details": null,
        "finix_additional_details": null
    },
    "reference_id": "pi0001KZZFHKR2NQ52712EPMJS3WVE",
    "payment_link": null,
    "profile_id": "pro_pCVrGsWnTcTBZTB5oDMi",
    "surcharge_details": null,
    "applied_offer": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_Rk07KYUU1IVrca49xr9D",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2026-08-14T06:47:26.208Z",
    "fingerprint": null,
    "browser_info": {
        "language": "nl-NL",
        "time_zone": 0,
        "ip_address": "127.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,
    "network_transaction_link_id": null,
    "payment_method_status": null,
    "updated": "2026-08-14T06:32:34.028Z",
    "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": null,
    "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,
    "billing_descriptor": null,
    "tokenization": null,
    "partner_merchant_identifier_details": null,
    "payment_method_tokenization_details": null,
    "installment_options": null,
    "installment_data": null,
    "sender_payment_instrument_id": null
}
  1. Refund:-
    Request:-
{
  "payment_id": "{{payment_id}}",
  "amount": 600,
  "reason": "Customer returned product",
  "refund_type": "instant",
  "metadata": {
    "udf1": "value1",
    "new_customer": "true",
    "login_date": "2019-09-10T10:11:12Z"
  }
}

Response:-

{
    "refund_id": "ref_0q8HsUaoE0p6J4udR1mu",
    "payment_id": "pay_CiyxYMtlZ1UZU8KNQj3l",
    "amount": 600,
    "currency": "USD",
    "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": "2026-08-14T06:34:21.094Z",
    "updated_at": "2026-08-14T06:34:22.519Z",
    "connector": "moneris",
    "profile_id": "pro_pCVrGsWnTcTBZTB5oDMi",
    "merchant_connector_id": "mca_Rk07KYUU1IVrca49xr9D",
    "split_refunds": null,
    "issuer_error_code": null,
    "issuer_error_message": null,
    "raw_connector_response": null,
    "connector_refund_id": "ri0001KZZFN40ZKMNPMPC4WK7N1RG2"
}
  1. Refund Sync:-

Response:-

{
    "refund_id": "ref_0q8HsUaoE0p6J4udR1mu",
    "payment_id": "pay_CiyxYMtlZ1UZU8KNQj3l",
    "amount": 600,
    "currency": "USD",
    "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": "2026-08-14T06:34:21.094Z",
    "updated_at": "2026-08-14T06:34:22.519Z",
    "connector": "moneris",
    "profile_id": "pro_pCVrGsWnTcTBZTB5oDMi",
    "merchant_connector_id": "mca_Rk07KYUU1IVrca49xr9D",
    "split_refunds": null,
    "issuer_error_code": null,
    "issuer_error_message": null,
    "raw_connector_response": null,
    "connector_refund_id": "ri0001KZZFN40ZKMNPMPC4WK7N1RG2"
}
  1. Card Payment (CIT):-
    Request:-
{
    "amount": 5000,
    "currency": "USD",
    "confirm": true,
      "capture_method": "automatic",
      "capture_on": "2022-09-10T10:11:12Z",
      "amount_to_capture": 5000,
    "customer_id": "StripeCustomer",
    "email": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "phone_country_code": "+1",
    "description": "Its my first payment request",
      "authentication_type": "no_three_ds",
    "return_url": "https://www.google.com/",
    "payment_method": "card",
    "payment_method_type": "debit",
     "setup_future_usage": "off_session",
      "customer_acceptance": {
        "acceptance_type": "offline"
    },
    "payment_method_data": {
        "card": {
            "card_number": "4242424242424242",
            "card_exp_month": "01",
            "card_exp_year": "28",
            "card_holder_name": "John",
            "card_cvc": "123"
        }
    },
    "billing": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "California",
            "zip": "94122",
            "country": "DE",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        }
    },
    "shipping": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "California",
            "zip": "94122",
            "country": "DE",
            "first_name": "joseph",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        }
    },
    "statement_descriptor_name": "joseph",
    "statement_descriptor_suffix": "JS",
    "metadata": {
        "udf1": "value1",
        "new_customer": "true",
        "login_date": "2019-09-10T10:11:12Z"
    }
}

Response:-

{
    "payment_id": "pay_VFLWOoURPeyxBBUrgjcO",
    "merchant_id": "merchant_1786686343",
    "status": "succeeded",
    "amount": 5000,
    "net_amount": 5000,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": 5000,
    "processor_merchant_id": "merchant_1786686343",
    "initiator": null,
    "sdk_authorization": "cHJvZmlsZV9pZD1wcm9fcENWckdzV25UY1RCWlRCNW9ETWkscHVibGlzaGFibGVfa2V5PXBrX2Rldl81N2ExOWIwMTkzNzI0ZTBjYTRlMzkzNTExNTI3MjI5NixjbGllbnRfc2VjcmV0PXBheV9WRkxXT29VUlBleXhCQlVyZ2pjT19zZWNyZXRfZUJSVzFPSWFNeG9EZnE5cjdjTHgsY3VzdG9tZXJfaWQ9U3RyaXBlQ3VzdG9tZXIsY2xpZW50X3Nlc3Npb25faWQ9Y2xpZW50X3Nlc3NfV3M2cUJsQ1lIWmhjeDFQeTBvMjkscGF5bWVudF9pZD1wYXlfVkZMV09vVVJQZXl4QkJVcmdqY08=",
    "connector": "moneris",
    "state_metadata": null,
    "client_secret": "pay_VFLWOoURPeyxBBUrgjcO_secret_eBRW1OIaMxoDfq9r7cLx",
    "created": "2026-08-14T06:39:00.200Z",
    "modified_at": "2026-08-14T06:39:02.599Z",
    "connector_customer_id": null,
    "currency": "USD",
    "customer_id": "StripeCustomer",
    "customer": {
        "id": "StripeCustomer",
        "name": "John Doe",
        "email": "guest@example.com",
        "phone": "999999999",
        "phone_country_code": "+1",
        "customer_document_details": null
    },
    "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": "4242",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "424242",
            "card_extended_bin": null,
            "card_exp_month": "01",
            "card_exp_year": "28",
            "card_holder_name": "John",
            "payment_checks": null,
            "authentication_data": null,
            "auth_code": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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
    },
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "DE",
            "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": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "return_url": "https://www.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,
    "error_details": null,
    "payment_experience": null,
    "payment_method_type": "debit",
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "manual_retry_allowed": null,
    "connector_transaction_id": "pi0001KZZFXNFKNP94ERRHF5598524",
    "frm_message": null,
    "metadata": {
        "udf1": "value1",
        "login_date": "2019-09-10T10:11:12Z",
        "new_customer": "true"
    },
    "connector_metadata": null,
    "connector_response_metadata": null,
    "feature_metadata": {
        "redirect_response": null,
        "search_tags": null,
        "apple_pay_recurring_details": null,
        "pix_additional_details": null,
        "boleto_additional_details": null,
        "pix_automatico_additional_details": null,
        "finix_additional_details": null
    },
    "reference_id": "pi0001KZZFXNFKNP94ERRHF5598524",
    "payment_link": null,
    "profile_id": "pro_pCVrGsWnTcTBZTB5oDMi",
    "surcharge_details": null,
    "applied_offer": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_Rk07KYUU1IVrca49xr9D",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2026-08-14T06:54:00.200Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_channel": null,
    "payment_method_id": "pm_CiIYYbVODzbpic19avtz",
    "network_transaction_id": null,
    "network_transaction_link_id": null,
    "payment_method_status": "active",
    "updated": "2026-08-14T06:39:02.599Z",
    "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": "pm0001KZZFXNGCHWVD35PGGBQ7B3G1",
    "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,
    "billing_descriptor": null,
    "tokenization": null,
    "partner_merchant_identifier_details": null,
    "payment_method_tokenization_details": {
        "payment_method_id": "pm_CiIYYbVODzbpic19avtz",
        "payment_method_status": "active",
        "psp_tokenization": false,
        "network_tokenization": false,
        "network_transaction_id": null,
        "network_transaction_link_id": null,
        "is_eligible_for_mit_payment": false
    },
    "installment_options": null,
    "installment_data": null,
    "sender_payment_instrument_id": null
}
  1. Payment Request using payment_method_id (MIT):-
    Request:-
{
    "amount": 77000,
    "currency": "USD",
    "confirm": true,
    "customer_id": "StripeCustomer",
    "recurring_details": {
        "type": "payment_method_id",
        "data": "pm_CiIYYbVODzbpic19avtz"
    },
    "off_session": true
}

Response:-

{
    "payment_id": "pay_ZbfHQJ7NKwOgznXMGQTC",
    "merchant_id": "merchant_1786686343",
    "status": "succeeded",
    "amount": 77000,
    "net_amount": 77000,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": 77000,
    "processor_merchant_id": "merchant_1786686343",
    "initiator": null,
    "sdk_authorization": "cHJvZmlsZV9pZD1wcm9fcENWckdzV25UY1RCWlRCNW9ETWkscHVibGlzaGFibGVfa2V5PXBrX2Rldl81N2ExOWIwMTkzNzI0ZTBjYTRlMzkzNTExNTI3MjI5NixjbGllbnRfc2VjcmV0PXBheV9aYmZIUUo3Tkt3T2d6blhNR1FUQ19zZWNyZXRfcFhENXRrV1dmd0l3RFhsallmUnAsY3VzdG9tZXJfaWQ9U3RyaXBlQ3VzdG9tZXIsY2xpZW50X3Nlc3Npb25faWQ9Y2xpZW50X3Nlc3NfSDB0MmZEdU5iSU5xWXNrNVd2N1AscGF5bWVudF9pZD1wYXlfWmJmSFFKN05Ld09nem5YTUdRVEM=",
    "connector": "moneris",
    "state_metadata": null,
    "client_secret": "pay_ZbfHQJ7NKwOgznXMGQTC_secret_pXD5tkWWfwIwDXljYfRp",
    "created": "2026-08-14T06:40:53.820Z",
    "modified_at": "2026-08-14T06:40:58.681Z",
    "connector_customer_id": null,
    "currency": "USD",
    "customer_id": "StripeCustomer",
    "customer": {
        "id": "StripeCustomer",
        "name": "John Doe",
        "email": "guest@example.com",
        "phone": "999999999",
        "phone_country_code": "+1",
        "customer_document_details": null
    },
    "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": "4242",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "424242",
            "card_extended_bin": null,
            "card_exp_month": "01",
            "card_exp_year": "28",
            "card_holder_name": "John",
            "payment_checks": null,
            "authentication_data": null,
            "auth_code": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "billing": null,
    "order_details": null,
    "email": "guest@example.com",
    "name": "John Doe",
    "phone": "999999999",
    "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,
    "error_details": null,
    "payment_experience": null,
    "payment_method_type": "debit",
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "manual_retry_allowed": null,
    "connector_transaction_id": "pi0001KZZG16PK8X5CFEDFQ7J354ZN",
    "frm_message": null,
    "metadata": null,
    "connector_metadata": null,
    "connector_response_metadata": null,
    "feature_metadata": {
        "redirect_response": null,
        "search_tags": null,
        "apple_pay_recurring_details": null,
        "pix_additional_details": null,
        "boleto_additional_details": null,
        "pix_automatico_additional_details": null,
        "finix_additional_details": null
    },
    "reference_id": "pi0001KZZG16PK8X5CFEDFQ7J354ZN",
    "payment_link": null,
    "profile_id": "pro_pCVrGsWnTcTBZTB5oDMi",
    "surcharge_details": null,
    "applied_offer": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_Rk07KYUU1IVrca49xr9D",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2026-08-14T06:55:53.820Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_channel": null,
    "payment_method_id": "pm_CiIYYbVODzbpic19avtz",
    "network_transaction_id": null,
    "network_transaction_link_id": null,
    "payment_method_status": "active",
    "updated": "2026-08-14T06:40:58.681Z",
    "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": "pm0001KZZFXNGCHWVD35PGGBQ7B3G1",
    "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,
    "billing_descriptor": null,
    "tokenization": null,
    "partner_merchant_identifier_details": null,
    "payment_method_tokenization_details": {
        "payment_method_id": "pm_CiIYYbVODzbpic19avtz",
        "payment_method_status": "active",
        "psp_tokenization": true,
        "network_tokenization": false,
        "network_transaction_id": null,
        "network_transaction_link_id": null,
        "is_eligible_for_mit_payment": true
    },
    "installment_options": null,
    "installment_data": null,
    "sender_payment_instrument_id": null
}

@Shubhodip900 Shubhodip900 self-assigned this Aug 13, 2026
@Shubhodip900
Shubhodip900 requested review from a team as code owners August 13, 2026 21:07
@Shubhodip900 Shubhodip900 linked an issue Aug 13, 2026 that may be closed by this pull request
Shubhodip900 and others added 6 commits August 14, 2026 02:45
Auto-applied by CI:
- cargo +nightly fmt --all
- make -C sdk generate (if applicable)
- make docs (if applicable)

This commit was automatically generated by GitHub Actions.
Comment thread data/field_probe/moneris.json Outdated
},
"Card": {
"status": "error",
"error": "Failed to obtain authentication type. Moneris Authorize requires an OAuth access token on `resource_common_data.access_token`, but it was None."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 7 FailedToObtainAuthType entries look like a probe gap, but I think there's a real bug behind them.

moneris.rs guards 7 request builders on resource_common_data.access_token (Authorize, capture, PSync, refund, rsync), but never overrides should_do_access_token() — which defaults to false in crates/types-traits/interfaces/src/connector_types.rs:236.

That method is what decides whether the caller-supplied token gets wired into the flow data (crates/grpc-server/grpc-server/src/server/payments.rs:1071):

let should_do_access_token = connector_data
    .connector
    .should_do_access_token(Some(payment_flow_data.payment_method));

let payment_flow_data = if should_do_access_token {
    let access_token = payload.state.as_ref()
        .and_then(|state| state.access_token.as_ref())
        .ok_or_else(|| /* FailedToObtainAuthType */)?;
    payment_flow_data.set_access_token(Some(access_token_data))
} else {
    payment_flow_data   // moneris lands here — token dropped
};

So at runtime the token is dropped even when the caller sends one, and every Moneris payment should hit the same error the probe recorded here. create_server_authentication_token probes as supported, so the token-minting flow itself is implemented — only the declaration is missing:

fn should_do_access_token(&self, _payment_method: Option<PaymentMethod>) -> bool {
    true
}

The probe needs a second, separate change, since it reads a hand-maintained list rather than the trait method. In crates/internal/field-probe/probe-config.toml:

[[oauth_connectors]]
name = "moneris"

No entry needed under [access_token.overrides]moneris.rs:258 uses a plain Bearer {token}, so the generic probe_access_token mock works (unlike fiservcommercehub, which needed a special format). Re-running the probe after both changes should take these 7 flows past auth.

@gopikrishna000

Copy link
Copy Markdown
Contributor

This PR only has fixture-based verification (crates/internal/integration-tests/src/connector_specs/moneris/specs.json, exercised by the unit-test harness against static request/response shapes) — there's no scenario that makes a real call against Moneris's sandbox.

Given this PR also touches shared/core files (payment.proto, router_data.rs, connector_types.rs, types.rs), we're actively building out a certification gate (see .github/test/certified_connectors.json + the cert-gate step in ci.yml on poc/test-ucs-stripe-authorize-ci) so that core/proto changes are re-verified against real sandbox calls for connectors carrying prod traffic, and so new connectors don't merge with compile-and-unit-test-only coverage.

For Moneris to get real regression coverage (not just schema/shape validation), we'd need:

  1. A live suite scenario (e.g. under crates/internal/integration-tests/src/global_suites/PaymentService_Authorize/), similar to Stripe's no3ds_auto_capture_credit_card.
  2. Live Moneris sandbox credentials added to the CI creds file.
  3. A verified PASS from that scenario against the real sandbox, ideally as a required check on this PR before merge.

Can you add a scenario + confirm it passes against Moneris's live sandbox? Happy to help wire it into the cert-gate once the Stripe pattern (poc/test-ucs-stripe-authorize-ci) lands, so this becomes copy-paste for new connectors going forward.

Vani-1107
Vani-1107 previously approved these changes Aug 14, 2026
Auto-applied by CI:
- cargo +nightly fmt --all
- make -C sdk generate (if applicable)
- make docs (if applicable)

This commit was automatically generated by GitHub Actions.
gopikrishna000
gopikrishna000 previously approved these changes Aug 14, 2026
Vani-1107
Vani-1107 previously approved these changes Aug 14, 2026
Comment thread crates/types-traits/domain_types/src/types.rs
Comment thread crates/integrations/connector-integration/src/connectors/moneris/transformers.rs Outdated
Comment thread crates/integrations/connector-integration/src/connectors/moneris.rs Outdated
Comment thread crates/integrations/connector-integration/src/connectors/moneris.rs Outdated
Comment thread crates/integrations/connector-integration/src/connectors/moneris/transformers.rs Outdated
Comment thread crates/types-traits/grpc-api-types/proto/payment.proto Outdated
Comment thread crates/integrations/connector-integration/src/connectors/moneris.rs Outdated
Comment thread crates/integrations/connector-integration/src/connectors/moneris.rs Outdated
Comment thread crates/integrations/connector-integration/src/connectors/moneris.rs Outdated
pub enum StorePaymentMethod {
DoNotStore,
CardholderInitiated,
MerchantInitiated,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: MerchantInitiated is never constructed.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moneris does support this variant, currently we are not using as we don't have this use case, but we can keep the enum variant for future development.

Auto-applied by CI:
- cargo +nightly fmt --all
- make -C sdk generate (if applicable)
- make docs (if applicable)

This commit was automatically generated by GitHub Actions.
payment_method_id: Secret<String>,
}

impl<F, T> TryFrom<ResponseRouterData<MonerisPaymentsResponse, Self>>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A partial capture lands here as Charged. This impl is generic over F and T, so it can't compare minor_amount_to_capture against the authorized amount — SUCCEEDED always maps to Charged and PartialCharged is unreachable.

Does Moneris return a distinct status for a partial complete? If not, Capture needs its own response impl that compares the two amounts.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, added capture specific Try From

@JeevaRamu0104 JeevaRamu0104 added the integration new connector integration label Aug 18, 2026
JeevaRamu0104
JeevaRamu0104 previously approved these changes Aug 18, 2026
Auto-applied by CI:
- cargo +nightly fmt --all
- make -C sdk generate (if applicable)
- make docs (if applicable)

This commit was automatically generated by GitHub Actions.
Vani-1107
Vani-1107 previously approved these changes Aug 18, 2026
JeevaRamu0104
JeevaRamu0104 previously approved these changes Aug 18, 2026
@Shubhodip900
Shubhodip900 dismissed stale reviews from JeevaRamu0104 and Vani-1107 via aa64855 August 18, 2026 09:31
@JeevaRamu0104
JeevaRamu0104 added this pull request to the merge queue Aug 18, 2026
Merged via the queue into main with commit 7aa0b8b Aug 18, 2026
19 checks passed
@JeevaRamu0104
JeevaRamu0104 deleted the moneris_connector_integration branch August 18, 2026 21:47
shuklatushar226 added a commit that referenced this pull request Aug 18, 2026
Moneris (#2127) landed on main while Ilixium was in review, and both claimed the
same ConnectorSpecificConfig oneof field number. Five conflicts, all resolved
keep-both:

* crates/types-traits/grpc-api-types/proto/payment.proto - both sides added a
  config message and both used oneof field 147. Moneris keeps 147 since it is
  already on main and renumbering a published field would be a wire break;
  Ilixium moves to 148, which is free. Both messages retained. The Connector
  enum needed no change - MONERIS = 48 and ILIXIUM = 138 do not collide.
* sdk/javascript/src/payments/_generated_grpc_client.ts - generated from the
  proto; both config entries kept and the oneof map ordered to match the new
  field numbering (moneris then ilixium).
* crates/integrations/connector-integration/src/default_implementations.rs -
  each side appended its connector to the same macro list; both kept. Git
  auto-merged the other nine occurrences.
* config/superposition.toml and crates/types-traits/domain_types/src/types.rs -
  each side appended its name to a connector list (the superposition dimension
  enum, and the "Supported connectors" string in the InvalidDataFormat error
  raised by patch_connector_urls). Took main's line and appended ilixium.

Verified both connectors survive in all five files, no duplicate oneof field
numbers remain, cargo check -p grpc-server is clean with the CI feature flags,
and cargo fmt --all --check passes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
pixincreate added a commit that referenced this pull request Aug 19, 2026
…-response-parsing

* origin/main:
  feat(connector): [Trustly] Implementation (#2068)
  feat(connector): [ilixium] add Ilixium connector with all six core flows (#2125)
  chore(version): 2026.08.19.0
  feat(connector): Moneris Connector Integration (#2127)
  feat(shadow): add x-org-id header to outgoing shadow mode requests (#2148)
  chore(version): 2026.08.18.1
  feat(tamara): override prod with sbx url (#2147)
  docs(sdk/payout-service): add per-operation docs for java, node, pyth… (#2102)
  feat(qwikcilver): add payment method eligibility check (#2135)
  feat(connector): implement Authorize (Card, non-3DS + 3DS redirect), PSync, Capture, Void, Refund and RSync for citigate (#2124)
  chore(version): 2026.08.18.0
  feat(logs): euler-parity golden-line sources + mapping config (on #2075) (#2076)
  fix(sync): return merchant_transaction_id on failed payment sync response (#2141)
  feat(connector): [Truelayer] Implementation (#2047)
  refactor(deps): make log_utils optional and fix default log format visibility (#2137)
  fix(maya): capture missing response fields + surface raw connector response (#2134)
  chore(version): 2026.08.17.0
  feat(connector): [Truelayer] Add support for Returning Customer Flow (#1458)
pixincreate added a commit that referenced this pull request Aug 20, 2026
…et-decrypt-recurring

* origin/main: (23 commits)
  feat(connector): add Elavon repeat payment flow (#2149)
  chore: add issue template (#2158)
  chore(version): 2026.08.20.0
  fix(log): normalize dotted source fields in log transformations (#2154)
  fix(events): serialize connector payloads as JSON text (#2077)
  feat(connector): [Trustly] Implementation (#2068)
  feat(connector): [ilixium] add Ilixium connector with all six core flows (#2125)
  chore(version): 2026.08.19.0
  feat(connector): Moneris Connector Integration (#2127)
  feat(shadow): add x-org-id header to outgoing shadow mode requests (#2148)
  chore(version): 2026.08.18.1
  feat(tamara): override prod with sbx url (#2147)
  docs(sdk/payout-service): add per-operation docs for java, node, pyth… (#2102)
  feat(qwikcilver): add payment method eligibility check (#2135)
  feat(connector): implement Authorize (Card, non-3DS + 3DS redirect), PSync, Capture, Void, Refund and RSync for citigate (#2124)
  chore(version): 2026.08.18.0
  feat(logs): euler-parity golden-line sources + mapping config (on #2075) (#2076)
  fix(sync): return merchant_transaction_id on failed payment sync response (#2141)
  feat(connector): [Truelayer] Implementation (#2047)
  refactor(deps): make log_utils optional and fix default log format visibility (#2137)
  ...
pixincreate added a commit that referenced this pull request Aug 24, 2026
…crypt-recurring

* origin/main: (32 commits)
  fix(clippy): drop two useless format! calls failing CI (#2167)
  Docs: remove php sdk references (#2144)
  chore(version): 2026.08.20.3
  fix(connectors): [tsys_transit] send NTID in merchant initiated nitd transactions (#2163)
  chore(version): 2026.08.20.2
  feat(connector): Worldpay Raft Connector Integration (#2138)
  refactor(connector): add card payment method support (with RSA/AES encryption) (#2151)
  chore(version): 2026.08.20.1
  fix(connectors): [tsys_transit] add support for syncing manual capture payments (#2160)
  feat(connector): add Elavon repeat payment flow (#2149)
  chore: add issue template (#2158)
  chore(version): 2026.08.20.0
  fix(log): normalize dotted source fields in log transformations (#2154)
  fix(events): serialize connector payloads as JSON text (#2077)
  feat(connector): [Trustly] Implementation (#2068)
  feat(connector): [ilixium] add Ilixium connector with all six core flows (#2125)
  chore(version): 2026.08.19.0
  feat(connector): Moneris Connector Integration (#2127)
  feat(shadow): add x-org-id header to outgoing shadow mode requests (#2148)
  chore(version): 2026.08.18.1
  ...

# Conflicts:
#	data/field_probe/boost.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration new connector integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Moneris Connector Integration

4 participants