Looking at the paymentmethodssessionconfirm function in…
- User
Looking at the payment_methods_session_confirm function in crates/router/src/core/payment_methods.rs around lines 2577-2582, I need to implement single-use tokenization.
Looking at the pattern in the code:
- Line 2556-2576 handles MultiUse tokenization by creating a zero-auth payment
- Line 2577-2582 has a todo! for SingleUse tokenization
- The request has a payment_method_data and payment_method_session.psp_tokenization
Looking at the examples from the issue description, I need to:
- When tokenization_type is SingleUse
- Call the connector specified in connector_id to generate a token
- Save the token to the payment method's connector_mandate_details
- Return the token in the response
Let me research how other parts of the codebase make connector calls for tokenization.
Assistant
I'll help you implement single-use tokenization in the
payment_methods_session_confirmfunction. Let me first examine the relevant code to understand the current implementation and then research how connector calls are made elsewhere in the codebase.Assistant
Let me search for the specific function and surrounding code to understand the context better:
Assistant
(no content)
Assistant
Let me search for the specific lines around 2577-2582 mentioned in the request:
Assistant
Let me search for "SingleUse" in the codebase to understand the context better:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →
claude-haiku-4-5-20251001Compare side by side →