I need to understand exactly how the PaymentsAuthorizeData structure gets populated with…
- User
I need to understand exactly how the PaymentsAuthorizeData structure gets populated with merchant_reference_id in v2 flows. Based on the code analysis so far, I see that:
- The v2 PaymentsCreateIntentRequest includes merchant_reference_id field (line 178)
- The PaymentsAuthorizeData structure already has merchant_order_reference_id field (line 77 in router_request_types.rs)
- The field is documented as: "Merchant's identifier for the payment/invoice. This will be sent to the connector if the connector provides support to accept multiple reference ids."
The issue seems to be that in v2, the merchant_reference_id from the v2 request is not being copied to the merchant_order_reference_id field in PaymentsAuthorizeData.
Let me examine how this mapping should happen - specifically, where the v2 request data is converted to the internal PaymentsAuthorizeData structure.
Assistant
I'll help you understand how the
merchant_reference_idfrom the v2 PaymentsCreateIntentRequest gets mapped to themerchant_order_reference_idin thePaymentsAuthorizeDatastructure. Let me search for the relevant code to trace this flow.Assistant
Let me search more broadly for payment-related files, especially those containing the structures we're interested in.
Assistant
Now let me search for the router_request_types.rs file that contains the PaymentsAuthorizeData structure mentioned in your question.
Assistant
Let me read the router_request_types.rs file to understand the PaymentsAuthorizeData structure.
Assistant
Now let me look at the API models to understand the v2 PaymentsCreateIntentRequest structure with merchant_reference_id.
Assistant
Let me search for payment request structures in the API models more broadly:
Assistant
Let me look for the main payment request structure definitions:
Assistant
(no content)
Assistant
Let me look at the main payments module structure:
Assistant
Let me search for "merchant_reference_id" in the entire codebase to understand how it's being used:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.