Description
The SDK needs to handle a new invoke_ddc next action type returned by the backend during payment confirmation. Device Data Collection (DDC) is required by certain connectors to perform device fingerprinting before redirecting the user for authentication (e.g., 3DS).
Requirements
- When
next_action.type is invoke_ddc, the SDK should:
- Read
ddc_data (iframe_url, timeout_ms) from the payment confirmation response
- Inject a hidden iframe pointing to the DDC URL
- Listen for a
postMessage from the iframe containing the next redirect action
- Redirect the user to the URL received, respecting
redirect_mode
- Fail gracefully on timeout or missing data with proper cleanup
Acceptance Criteria
Description
The SDK needs to handle a new
invoke_ddcnext action type returned by the backend during payment confirmation. Device Data Collection (DDC) is required by certain connectors to perform device fingerprinting before redirecting the user for authentication (e.g., 3DS).Requirements
next_action.typeisinvoke_ddc, the SDK should:ddc_data(iframe_url,timeout_ms) from the payment confirmation responsepostMessagefrom the iframe containing the next redirect actionredirect_modeAcceptance Criteria
invoke_ddcnext action type is handled inintentCallredirect_mode(requiredvsif_required)iframe_url, timeout, and malformed messages