hyperswitch
hyperswitch copied to clipboard
feat(connector): [checkout] Add mandate flow
Type of Change
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
Integrated CIT/MIT and setup mandate flow.
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?
CIT/MIT:
CIT
Request
{
"amount": 100,
"currency": "USD",
"confirm": true,
"setup_future_usage": "off_session",
// "payment_type": "setup_mandate",
"customer_id": "chec",
"return_url": "https://www.google.com",
"capture_method": "automatic",
"payment_method": "card",
"payment_method_type": "credit",
"all_keys_required": true,
"authentication_type": "three_ds",
"description": "hellow world",
"billing": {
"address": {
"zip": "560095",
"country": "US",
"first_name": "Sakil",
"last_name": "Mostak",
"line1": "Fasdf",
"line2": "Fasdf",
"city": "Fasdf"
}
},
"browser_info": {
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"ip_address": "192.168.1.1",
"java_enabled": false,
"java_script_enabled": true,
"language": "en-US",
"color_depth": 24,
"screen_height": 1080,
"screen_width": 1920,
"time_zone": 330,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
},
"email": "[email protected]",
"payment_method_data": {
"card": {
// "card_number": "2221008123677736",
"card_number": "5137210000000158",
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "CL-BRW2",
"card_cvc": "217"
}
},
"customer_acceptance": {
"acceptance_type": "online",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "in sit",
"user_agent": "amet irure esse"
}
}
}
Response
{
"payment_id": "pay_x6DG2ez6RwRFTE1fQKyy",
"merchant_id": "merchant_1756831157",
"status": "requires_customer_action",
"amount": 100,
"net_amount": 100,
"shipping_cost": null,
"amount_capturable": 100,
"amount_received": null,
"connector": "checkout",
"client_secret": "pay_x6DG2ez6RwRFTE1fQKyy_secret_H3pAxetStLZ4y321oqD2",
"created": "2025-09-03T03:39:32.638Z",
"currency": "USD",
"customer_id": "chec",
"customer": {
"id": "chec",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": "hellow world",
"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": "0158",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "513721",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "CL-BRW2",
"payment_checks": null,
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": {
"address": {
"city": "Fasdf",
"country": "US",
"line1": "Fasdf",
"line2": "Fasdf",
"line3": null,
"zip": "560095",
"state": null,
"first_name": "Sakil",
"last_name": "Mostak",
"origin_zip": null
},
"phone": null,
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": "https://www.google.com/",
"authentication_type": "three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": {
"type": "redirect_to_url",
"redirect_to_url": "http://localhost:8080/payments/redirect/pay_x6DG2ez6RwRFTE1fQKyy/merchant_1756831157/pay_x6DG2ez6RwRFTE1fQKyy_1"
},
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "chec",
"created_at": 1756870772,
"expires": 1756874372,
"secret": "epk_8c2ab88aa66b4225b1cae8ecb30c0ff5"
},
"manual_retry_allowed": null,
"connector_transaction_id": "pay_qkcqdb4d5eourp52jbsb56u5li",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pay_x6DG2ez6RwRFTE1fQKyy_1",
"payment_link": null,
"profile_id": "pro_iAJjPLq8Jy18zB0dMRCp",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_HuSsMZdOxGYMxylcPlDq",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-03T03:54:32.638Z",
"fingerprint": null,
"browser_info": {
"language": "en-US",
"time_zone": 330,
"ip_address": "192.168.1.1",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
"color_depth": 24,
"java_enabled": false,
"screen_width": 1920,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"screen_height": 1080,
"java_script_enabled": true
},
"payment_channel": null,
"payment_method_id": null,
"network_transaction_id": null,
"payment_method_status": null,
"updated": "2025-09-03T03:39:33.696Z",
"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": "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": "{\"id\":\"pay_qkcqdb4d5eourp52jbsb56u5li\",\"status\":\"Pending\",\"reference\":\"pay_x6DG2ez6RwRFTE1fQKyy_1\",\"3ds\":{\"downgraded\":false,\"enrolled\":\"Y\"},\"_links\":{\"self\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_qkcqdb4d5eourp52jbsb56u5li\"},\"actions\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_qkcqdb4d5eourp52jbsb56u5li/actions\"},\"redirect\":{\"href\":\"https://authentication-devices.sandbox.checkout.com/sessions-interceptor/sid_6dxmtvhe44dulaknf465r3oriu\"}}}",
"enable_partial_authorization": null
}
Psync (after comleting redirection)
{
"payment_id": "pay_x6DG2ez6RwRFTE1fQKyy",
"merchant_id": "merchant_1756831157",
"status": "succeeded",
"amount": 100,
"net_amount": 100,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 100,
"connector": "checkout",
"client_secret": "pay_x6DG2ez6RwRFTE1fQKyy_secret_H3pAxetStLZ4y321oqD2",
"created": "2025-09-03T03:39:32.638Z",
"currency": "USD",
"customer_id": "chec",
"customer": {
"id": "chec",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": "hellow world",
"refunds": null,
"disputes": null,
"attempts": [
{
"attempt_id": "pay_x6DG2ez6RwRFTE1fQKyy_1",
"status": "charged",
"amount": 100,
"order_tax_amount": null,
"currency": "USD",
"connector": "checkout",
"error_message": null,
"payment_method": "card",
"connector_transaction_id": "pay_qkcqdb4d5eourp52jbsb56u5li",
"capture_method": "automatic",
"authentication_type": "three_ds",
"created_at": "2025-09-03T03:39:32.638Z",
"modified_at": "2025-09-03T03:39:52.242Z",
"cancellation_reason": null,
"mandate_id": null,
"error_code": null,
"payment_token": null,
"connector_metadata": {
"psync_flow": "Capture"
},
"payment_experience": null,
"payment_method_type": "credit",
"reference_id": "pay_x6DG2ez6RwRFTE1fQKyy_1",
"unified_code": null,
"unified_message": null,
"client_source": null,
"client_version": 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": "0158",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "513721",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "CL-BRW2",
"payment_checks": null,
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": {
"address": {
"city": "Fasdf",
"country": "US",
"line1": "Fasdf",
"line2": "Fasdf",
"line3": null,
"zip": "560095",
"state": null,
"first_name": "Sakil",
"last_name": "Mostak",
"origin_zip": null
},
"phone": null,
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": "https://www.google.com/",
"authentication_type": "three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": false,
"connector_transaction_id": "pay_qkcqdb4d5eourp52jbsb56u5li",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pay_x6DG2ez6RwRFTE1fQKyy_1",
"payment_link": null,
"profile_id": "pro_iAJjPLq8Jy18zB0dMRCp",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_HuSsMZdOxGYMxylcPlDq",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-03T03:54:32.638Z",
"fingerprint": null,
"browser_info": {
"language": "en-US",
"time_zone": 330,
"ip_address": "192.168.1.1",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
"color_depth": 24,
"java_enabled": false,
"screen_width": 1920,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"screen_height": 1080,
"java_script_enabled": true
},
"payment_channel": null,
"payment_method_id": "pm_VZ3QnaEEi22c4qmKOkW1",
"network_transaction_id": null,
"payment_method_status": "active",
"updated": "2025-09-03T03:40:15.234Z",
"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": "src_7dvn5hvhfwvenpontohrcvi6ty",
"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": "{\"id\":\"pay_qkcqdb4d5eourp52jbsb56u5li\",\"requested_on\":\"2025-09-03T03:39:32.823722Z\",\"source\":{\"id\":\"src_7dvn5hvhfwvenpontohrcvi6ty\",\"type\":\"card\",\"expiry_month\":12,\"expiry_year\":2030,\"scheme\":\"Mastercard\",\"scheme_local\":\"cartes_bancaires\",\"local_schemes\":[\"cartes_bancaires\"],\"last4\":\"0158\",\"fingerprint\":\"F6044B07C3770BC948DF7AE193C1FA809E1B4DB5C72EDF7C0B23888A4D09CF0F\",\"bin\":\"51372100\",\"card_type\":\"CREDIT\",\"card_category\":\"CONSUMER\",\"issuer\":\"BANQUE CHAABI DU MAROC\",\"issuer_country\":\"FR\",\"product_id\":\"BPD\",\"product_type\":\"Business Premium Debit\",\"avs_check\":\"S\",\"cvv_check\":\"Y\",\"payment_account_reference\":\"\"},\"expires_on\":\"2025-10-03T03:39:50.4661992Z\",\"amount\":100,\"currency\":\"USD\",\"payment_type\":\"Regular\",\"reference\":\"pay_x6DG2ez6RwRFTE1fQKyy_1\",\"status\":\"Captured\",\"approved\":true,\"3ds\":{\"downgraded\":false,\"enrolled\":\"Y\",\"authentication_response\":\"Y\",\"cryptogram\":\"AAABAVIREQAAAAAAAAAAAAAAAAA=\",\"xid\":\"69bca5bc-d23a-4925-b1af-1a1dcc9ed97d\",\"version\":\"2.2.0\",\"exemption\":\"none\",\"challenged\":true,\"exemption_applied\":\"none\",\"eci\":\"02\"},\"authentication\":{\"experience\":\"3ds\"},\"balances\":{\"total_authorized\":100,\"total_voided\":0,\"available_to_void\":0,\"total_captured\":100,\"available_to_capture\":0,\"total_refunded\":0,\"available_to_refund\":100},\"risk\":{\"flagged\":false,\"score\":0.0},\"processing\":{\"acquirer_transaction_id\":\"117453352243070678536\",\"retrieval_reference_number\":\"411589373241\",\"merchant_category_code\":\"5815\",\"scheme_merchant_id\":\"788826\",\"scheme\":\"MASTERCARD\",\"aft\":false,\"pan_type_processed\":\"fpan\",\"cko_network_token_available\":false,\"provision_network_token\":false},\"eci\":\"02\",\"scheme_id\":\"642351794611712\",\"_links\":{\"self\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_qkcqdb4d5eourp52jbsb56u5li\"},\"actions\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_qkcqdb4d5eourp52jbsb56u5li/actions\"},\"refund\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_qkcqdb4d5eourp52jbsb56u5li/refunds\"}}}",
"enable_partial_authorization": null
}
MIT
Request
{
"amount": 100,
"currency": "USD",
"customer_id": "chec",
"confirm": true,
"off_session": true,
"recurring_details": {
"type": "payment_method_id",
"data": "pm_VZ3QnaEEi22c4qmKOkW1"
}
}
Response
{
"payment_id": "pay_kOSDa28c2DUYmQijjcCr",
"merchant_id": "merchant_1756831157",
"status": "processing",
"amount": 100,
"net_amount": 100,
"shipping_cost": null,
"amount_capturable": 100,
"amount_received": null,
"connector": "checkout",
"client_secret": "pay_kOSDa28c2DUYmQijjcCr_secret_E9YM9Wg5cFWYJCcAKZou",
"created": "2025-09-03T03:41:43.717Z",
"currency": "USD",
"customer_id": "chec",
"customer": {
"id": "chec",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": 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": "0158",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "513721",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "CL-BRW2",
"payment_checks": null,
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "chec",
"created_at": 1756870903,
"expires": 1756874503,
"secret": "epk_a2c6c511308f4e90b4ce155dde49e914"
},
"manual_retry_allowed": false,
"connector_transaction_id": "pay_aedfbqdjzp7uvjwf5qk5fhqcpy",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pay_kOSDa28c2DUYmQijjcCr_1",
"payment_link": null,
"profile_id": "pro_iAJjPLq8Jy18zB0dMRCp",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_HuSsMZdOxGYMxylcPlDq",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-03T03:56:43.717Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": "pm_VZ3QnaEEi22c4qmKOkW1",
"network_transaction_id": null,
"payment_method_status": "active",
"updated": "2025-09-03T03:41:44.440Z",
"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": "src_7dvn5hvhfwvenpontohrcvi6ty",
"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
}
PSync
{
"payment_id": "pay_kOSDa28c2DUYmQijjcCr",
"merchant_id": "merchant_1756831157",
"status": "succeeded",
"amount": 100,
"net_amount": 100,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 100,
"connector": "checkout",
"client_secret": "pay_kOSDa28c2DUYmQijjcCr_secret_E9YM9Wg5cFWYJCcAKZou",
"created": "2025-09-03T03:41:43.717Z",
"currency": "USD",
"customer_id": "chec",
"customer": {
"id": "chec",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"attempts": [
{
"attempt_id": "pay_kOSDa28c2DUYmQijjcCr_1",
"status": "pending",
"amount": 100,
"order_tax_amount": null,
"currency": "USD",
"connector": "checkout",
"error_message": null,
"payment_method": "card",
"connector_transaction_id": "pay_aedfbqdjzp7uvjwf5qk5fhqcpy",
"capture_method": null,
"authentication_type": "no_three_ds",
"created_at": "2025-09-03T03:41:43.717Z",
"modified_at": "2025-09-03T03:41:44.439Z",
"cancellation_reason": null,
"mandate_id": null,
"error_code": null,
"payment_token": null,
"connector_metadata": {
"psync_flow": "Capture"
},
"payment_experience": null,
"payment_method_type": "credit",
"reference_id": "pay_kOSDa28c2DUYmQijjcCr_1",
"unified_code": null,
"unified_message": null,
"client_source": null,
"client_version": 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": "0158",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "513721",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "CL-BRW2",
"payment_checks": null,
"authentication_data": null
},
"billing": {
"address": {
"city": "Fasdf",
"country": "US",
"line1": "Fasdf",
"line2": "Fasdf",
"line3": null,
"zip": "560095",
"state": null,
"first_name": "CL-BRW2",
"last_name": null,
"origin_zip": null
},
"phone": null,
"email": null
}
},
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": false,
"connector_transaction_id": "pay_aedfbqdjzp7uvjwf5qk5fhqcpy",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pay_kOSDa28c2DUYmQijjcCr_1",
"payment_link": null,
"profile_id": "pro_iAJjPLq8Jy18zB0dMRCp",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_HuSsMZdOxGYMxylcPlDq",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-03T03:56:43.717Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": "pm_VZ3QnaEEi22c4qmKOkW1",
"network_transaction_id": null,
"payment_method_status": "active",
"updated": "2025-09-03T03:43:01.697Z",
"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": "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": "{\"id\":\"pay_aedfbqdjzp7uvjwf5qk5fhqcpy\",\"requested_on\":\"2025-09-03T03:41:43.893082Z\",\"source\":{\"id\":\"src_7dvn5hvhfwvenpontohrcvi6ty\",\"type\":\"card\",\"expiry_month\":12,\"expiry_year\":2030,\"scheme\":\"Mastercard\",\"scheme_local\":\"cartes_bancaires\",\"local_schemes\":[\"cartes_bancaires\"],\"last4\":\"0158\",\"fingerprint\":\"F6044B07C3770BC948DF7AE193C1FA809E1B4DB5C72EDF7C0B23888A4D09CF0F\",\"bin\":\"51372100\",\"card_type\":\"CREDIT\",\"card_category\":\"CONSUMER\",\"issuer\":\"BANQUE CHAABI DU MAROC\",\"issuer_country\":\"FR\",\"product_id\":\"BPD\",\"product_type\":\"Business Premium Debit\",\"avs_check\":\"S\",\"payment_account_reference\":\"\"},\"expires_on\":\"2025-10-03T03:41:44.2783422Z\",\"amount\":100,\"currency\":\"USD\",\"payment_type\":\"Recurring\",\"reference\":\"pay_kOSDa28c2DUYmQijjcCr_1\",\"status\":\"Captured\",\"approved\":true,\"balances\":{\"total_authorized\":100,\"total_voided\":0,\"available_to_void\":0,\"total_captured\":100,\"available_to_capture\":0,\"total_refunded\":0,\"available_to_refund\":100},\"risk\":{\"flagged\":false},\"processing\":{\"acquirer_transaction_id\":\"127885786606297372535\",\"retrieval_reference_number\":\"383588287480\",\"merchant_category_code\":\"5815\",\"scheme_merchant_id\":\"788826\",\"scheme\":\"MASTERCARD\",\"aft\":false,\"pan_type_processed\":\"fpan\",\"cko_network_token_available\":false,\"provision_network_token\":false},\"merchant_initiated\":true,\"scheme_id\":\"194570014059728\",\"_links\":{\"self\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_aedfbqdjzp7uvjwf5qk5fhqcpy\"},\"actions\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_aedfbqdjzp7uvjwf5qk5fhqcpy/actions\"},\"refund\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_aedfbqdjzp7uvjwf5qk5fhqcpy/refunds\"}}}",
"enable_partial_authorization": null
}
Setup Mandate flow
CIT
Request
{
"amount": 0,
"currency": "USD",
"confirm": true,
"setup_future_usage": "off_session",
"payment_type": "setup_mandate",
"customer_id": "checkout_test",
"return_url": "https://www.google.com",
"capture_method": "automatic",
"payment_method": "card",
"payment_method_type": "credit",
"all_keys_required": true,
"authentication_type": "three_ds",
"description": "hellow world",
"billing": {
"address": {
"zip": "560095",
"country": "US",
"first_name": "Sakil",
"last_name": "Mostak",
"line1": "Fasdf",
"line2": "Fasdf",
"city": "Fasdf"
}
},
"browser_info": {
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"ip_address": "192.168.1.1",
"java_enabled": false,
"java_script_enabled": true,
"language": "en-US",
"color_depth": 24,
"screen_height": 1080,
"screen_width": 1920,
"time_zone": 330,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
},
"email": "[email protected]",
"payment_method_data": {
"card": {
// "card_number": "2221008123677736",
"card_number": "5137210000000158",
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "CL-BRW2",
"card_cvc": "217"
}
},
"customer_acceptance": {
"acceptance_type": "online",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "in sit",
"user_agent": "amet irure esse"
}
}
}
Response
{
"payment_id": "pay_S5bugqtX2XtuZqlBdLsF",
"merchant_id": "merchant_1756831157",
"status": "requires_customer_action",
"amount": 0,
"net_amount": 0,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": "checkout",
"client_secret": "pay_S5bugqtX2XtuZqlBdLsF_secret_5BY6ptKlDOiquFFFjdbp",
"created": "2025-09-03T03:45:12.631Z",
"currency": "USD",
"customer_id": "checkout_test",
"customer": {
"id": "checkout_test",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": "hellow world",
"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": "0158",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "513721",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "CL-BRW2",
"payment_checks": null,
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": {
"address": {
"city": "Fasdf",
"country": "US",
"line1": "Fasdf",
"line2": "Fasdf",
"line3": null,
"zip": "560095",
"state": null,
"first_name": "Sakil",
"last_name": "Mostak",
"origin_zip": null
},
"phone": null,
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": "https://www.google.com/",
"authentication_type": "three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": {
"type": "redirect_to_url",
"redirect_to_url": "http://localhost:8080/payments/redirect/pay_S5bugqtX2XtuZqlBdLsF/merchant_1756831157/pay_S5bugqtX2XtuZqlBdLsF_1"
},
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "checkout_test",
"created_at": 1756871112,
"expires": 1756874712,
"secret": "epk_4a38d6e875d84048876102170688156c"
},
"manual_retry_allowed": null,
"connector_transaction_id": "pay_6evhe3fwgdpejdi6awaewkgu5a",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pay_S5bugqtX2XtuZqlBdLsF_1",
"payment_link": null,
"profile_id": "pro_iAJjPLq8Jy18zB0dMRCp",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_HuSsMZdOxGYMxylcPlDq",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-03T04:00:12.631Z",
"fingerprint": null,
"browser_info": {
"language": "en-US",
"time_zone": 330,
"ip_address": "192.168.1.1",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
"color_depth": 24,
"java_enabled": false,
"screen_width": 1920,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"screen_height": 1080,
"java_script_enabled": true
},
"payment_channel": null,
"payment_method_id": "pm_ekWhZLbwrTIglNg2q0TP",
"network_transaction_id": null,
"payment_method_status": "inactive",
"updated": "2025-09-03T03:45:14.294Z",
"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": "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
}
Psync
{
"payment_id": "pay_S5bugqtX2XtuZqlBdLsF",
"merchant_id": "merchant_1756831157",
"status": "succeeded",
"amount": 0,
"net_amount": 0,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 0,
"connector": "checkout",
"client_secret": "pay_S5bugqtX2XtuZqlBdLsF_secret_5BY6ptKlDOiquFFFjdbp",
"created": "2025-09-03T03:45:12.631Z",
"currency": "USD",
"customer_id": "checkout_test",
"customer": {
"id": "checkout_test",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": "hellow world",
"refunds": null,
"disputes": null,
"attempts": [
{
"attempt_id": "pay_S5bugqtX2XtuZqlBdLsF_1",
"status": "charged",
"amount": 0,
"order_tax_amount": null,
"currency": "USD",
"connector": "checkout",
"error_message": null,
"payment_method": "card",
"connector_transaction_id": "pay_6evhe3fwgdpejdi6awaewkgu5a",
"capture_method": "automatic",
"authentication_type": "three_ds",
"created_at": "2025-09-03T03:45:12.632Z",
"modified_at": "2025-09-03T03:45:31.964Z",
"cancellation_reason": null,
"mandate_id": null,
"error_code": null,
"payment_token": null,
"connector_metadata": {
"psync_flow": "Capture"
},
"payment_experience": null,
"payment_method_type": "credit",
"reference_id": "pay_S5bugqtX2XtuZqlBdLsF_1",
"unified_code": null,
"unified_message": null,
"client_source": null,
"client_version": 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": "0158",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "513721",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "CL-BRW2",
"payment_checks": null,
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": {
"address": {
"city": "Fasdf",
"country": "US",
"line1": "Fasdf",
"line2": "Fasdf",
"line3": null,
"zip": "560095",
"state": null,
"first_name": "Sakil",
"last_name": "Mostak",
"origin_zip": null
},
"phone": null,
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": "https://www.google.com/",
"authentication_type": "three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": false,
"connector_transaction_id": "pay_6evhe3fwgdpejdi6awaewkgu5a",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pay_S5bugqtX2XtuZqlBdLsF_1",
"payment_link": null,
"profile_id": "pro_iAJjPLq8Jy18zB0dMRCp",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_HuSsMZdOxGYMxylcPlDq",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-03T04:00:12.631Z",
"fingerprint": null,
"browser_info": {
"language": "en-US",
"time_zone": 330,
"ip_address": "192.168.1.1",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
"color_depth": 24,
"java_enabled": false,
"screen_width": 1920,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"screen_height": 1080,
"java_script_enabled": true
},
"payment_channel": null,
"payment_method_id": "pm_ekWhZLbwrTIglNg2q0TP",
"network_transaction_id": null,
"payment_method_status": "active",
"updated": "2025-09-03T03:46:05.901Z",
"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": "src_mijqhujphamejfnp6p3jm6tdae",
"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": "{\"id\":\"pay_6evhe3fwgdpejdi6awaewkgu5a\",\"requested_on\":\"2025-09-03T03:45:13.4839483Z\",\"source\":{\"id\":\"src_mijqhujphamejfnp6p3jm6tdae\",\"type\":\"card\",\"expiry_month\":12,\"expiry_year\":2030,\"scheme\":\"Mastercard\",\"scheme_local\":\"cartes_bancaires\",\"local_schemes\":[\"cartes_bancaires\"],\"last4\":\"0158\",\"fingerprint\":\"F6044B07C3770BC948DF7AE193C1FA809E1B4DB5C72EDF7C0B23888A4D09CF0F\",\"bin\":\"51372100\",\"card_type\":\"CREDIT\",\"card_category\":\"CONSUMER\",\"issuer\":\"BANQUE CHAABI DU MAROC\",\"issuer_country\":\"FR\",\"product_id\":\"BPD\",\"product_type\":\"Business Premium Debit\",\"avs_check\":\"S\",\"cvv_check\":\"Y\",\"payment_account_reference\":\"\"},\"expires_on\":\"2025-10-03T03:45:29.8397502Z\",\"amount\":0,\"currency\":\"USD\",\"payment_type\":\"Recurring\",\"reference\":\"pay_S5bugqtX2XtuZqlBdLsF_1\",\"status\":\"Card Verified\",\"approved\":true,\"3ds\":{\"downgraded\":false,\"enrolled\":\"Y\",\"authentication_response\":\"Y\",\"cryptogram\":\"AAABAVIREQAAAAAAAAAAAAAAAAA=\",\"xid\":\"f703a7cf-1b55-4ff6-8b9d-10df5ca67c60\",\"version\":\"2.2.0\",\"exemption\":\"none\",\"challenged\":true,\"exemption_applied\":\"none\",\"eci\":\"02\"},\"authentication\":{\"experience\":\"3ds\"},\"balances\":{\"total_authorized\":0,\"total_voided\":0,\"available_to_void\":0,\"total_captured\":0,\"available_to_capture\":0,\"total_refunded\":0,\"available_to_refund\":0},\"risk\":{\"flagged\":false},\"processing\":{\"acquirer_transaction_id\":\"365581360734470027417\",\"retrieval_reference_number\":\"400338603491\",\"merchant_category_code\":\"5815\",\"scheme_merchant_id\":\"788826\",\"scheme\":\"MASTERCARD\",\"aft\":false,\"pan_type_processed\":\"fpan\",\"cko_network_token_available\":false,\"provision_network_token\":false},\"eci\":\"02\",\"scheme_id\":\"643913801749841\",\"_links\":{\"self\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_6evhe3fwgdpejdi6awaewkgu5a\"},\"actions\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_6evhe3fwgdpejdi6awaewkgu5a/actions\"}}}",
"enable_partial_authorization": null
}
MIT
Request:
{
"amount": 100,
"currency": "USD",
"customer_id": "checkout_test",
"confirm": true,
"off_session": true,
"recurring_details": {
"type": "payment_method_id",
"data": "pm_ekWhZLbwrTIglNg2q0TP"
}
}
Response:
{
"payment_id": "pay_QrFXVcAUVFDEITHuXynS",
"merchant_id": "merchant_1756831157",
"status": "processing",
"amount": 100,
"net_amount": 100,
"shipping_cost": null,
"amount_capturable": 100,
"amount_received": null,
"connector": "checkout",
"client_secret": "pay_QrFXVcAUVFDEITHuXynS_secret_xu1bR6MrQMp1HSVHayGM",
"created": "2025-09-03T03:48:37.016Z",
"currency": "USD",
"customer_id": "checkout_test",
"customer": {
"id": "checkout_test",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": 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": "0158",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "513721",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "CL-BRW2",
"payment_checks": null,
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "checkout_test",
"created_at": 1756871316,
"expires": 1756874916,
"secret": "epk_c6f75b7d264e474ca2ace89e92ef8232"
},
"manual_retry_allowed": false,
"connector_transaction_id": "pay_qci5hlkqbcdedkyvju2i5o3pna",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pay_QrFXVcAUVFDEITHuXynS_1",
"payment_link": null,
"profile_id": "pro_iAJjPLq8Jy18zB0dMRCp",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_HuSsMZdOxGYMxylcPlDq",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-03T04:03:37.016Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": "pm_ekWhZLbwrTIglNg2q0TP",
"network_transaction_id": null,
"payment_method_status": "active",
"updated": "2025-09-03T03:48:38.147Z",
"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": "src_mijqhujphamejfnp6p3jm6tdae",
"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
}
PSync
{
"payment_id": "pay_QrFXVcAUVFDEITHuXynS",
"merchant_id": "merchant_1756831157",
"status": "succeeded",
"amount": 100,
"net_amount": 100,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 100,
"connector": "checkout",
"client_secret": "pay_QrFXVcAUVFDEITHuXynS_secret_xu1bR6MrQMp1HSVHayGM",
"created": "2025-09-03T03:48:37.016Z",
"currency": "USD",
"customer_id": "checkout_test",
"customer": {
"id": "checkout_test",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"attempts": [
{
"attempt_id": "pay_QrFXVcAUVFDEITHuXynS_1",
"status": "pending",
"amount": 100,
"order_tax_amount": null,
"currency": "USD",
"connector": "checkout",
"error_message": null,
"payment_method": "card",
"connector_transaction_id": "pay_qci5hlkqbcdedkyvju2i5o3pna",
"capture_method": null,
"authentication_type": "no_three_ds",
"created_at": "2025-09-03T03:48:37.016Z",
"modified_at": "2025-09-03T03:48:38.147Z",
"cancellation_reason": null,
"mandate_id": null,
"error_code": null,
"payment_token": null,
"connector_metadata": {
"psync_flow": "Capture"
},
"payment_experience": null,
"payment_method_type": "credit",
"reference_id": "pay_QrFXVcAUVFDEITHuXynS_1",
"unified_code": null,
"unified_message": null,
"client_source": null,
"client_version": 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": "0158",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "513721",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "CL-BRW2",
"payment_checks": null,
"authentication_data": null
},
"billing": {
"address": {
"city": "Fasdf",
"country": "US",
"line1": "Fasdf",
"line2": "Fasdf",
"line3": null,
"zip": "560095",
"state": null,
"first_name": "CL-BRW2",
"last_name": null,
"origin_zip": null
},
"phone": null,
"email": null
}
},
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": false,
"connector_transaction_id": "pay_qci5hlkqbcdedkyvju2i5o3pna",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pay_QrFXVcAUVFDEITHuXynS_1",
"payment_link": null,
"profile_id": "pro_iAJjPLq8Jy18zB0dMRCp",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_HuSsMZdOxGYMxylcPlDq",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-03T04:03:37.016Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": "pm_ekWhZLbwrTIglNg2q0TP",
"network_transaction_id": null,
"payment_method_status": "active",
"updated": "2025-09-03T03:49:31.615Z",
"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": "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": "{\"id\":\"pay_qci5hlkqbcdedkyvju2i5o3pna\",\"requested_on\":\"2025-09-03T03:48:37.7904045Z\",\"source\":{\"id\":\"src_mijqhujphamejfnp6p3jm6tdae\",\"type\":\"card\",\"expiry_month\":12,\"expiry_year\":2030,\"scheme\":\"Mastercard\",\"scheme_local\":\"cartes_bancaires\",\"local_schemes\":[\"cartes_bancaires\"],\"last4\":\"0158\",\"fingerprint\":\"F6044B07C3770BC948DF7AE193C1FA809E1B4DB5C72EDF7C0B23888A4D09CF0F\",\"bin\":\"51372100\",\"card_type\":\"CREDIT\",\"card_category\":\"CONSUMER\",\"issuer\":\"BANQUE CHAABI DU MAROC\",\"issuer_country\":\"FR\",\"product_id\":\"BPD\",\"product_type\":\"Business Premium Debit\",\"avs_check\":\"S\",\"payment_account_reference\":\"\"},\"expires_on\":\"2025-10-03T03:48:37.9856259Z\",\"amount\":100,\"currency\":\"USD\",\"payment_type\":\"Recurring\",\"reference\":\"pay_QrFXVcAUVFDEITHuXynS_1\",\"status\":\"Captured\",\"approved\":true,\"balances\":{\"total_authorized\":100,\"total_voided\":0,\"available_to_void\":0,\"total_captured\":100,\"available_to_capture\":0,\"total_refunded\":0,\"available_to_refund\":100},\"risk\":{\"flagged\":false,\"score\":0.0},\"processing\":{\"acquirer_transaction_id\":\"056872613587707842595\",\"retrieval_reference_number\":\"269337673321\",\"merchant_category_code\":\"5815\",\"scheme_merchant_id\":\"788826\",\"scheme\":\"MASTERCARD\",\"aft\":false,\"pan_type_processed\":\"fpan\",\"cko_network_token_available\":false,\"provision_network_token\":false},\"merchant_initiated\":true,\"scheme_id\":\"379510993733605\",\"_links\":{\"self\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_qci5hlkqbcdedkyvju2i5o3pna\"},\"actions\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_qci5hlkqbcdedkyvju2i5o3pna/actions\"},\"refund\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_qci5hlkqbcdedkyvju2i5o3pna/refunds\"}}}",
"enable_partial_authorization": null
}
Checklist
- [x] I formatted the code
cargo +nightly fmt --all - [x] I addressed lints thrown by
cargo clippy - [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
Changed Files
| File | Status |
|---|---|
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format |