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.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.