Skip to content

feat: Add fiat payment confirmation flow with headless ramp integration placeholder#28152

Draft
OGPoyraz wants to merge 1 commit intomainfrom
ogp/CONF-1065
Draft

feat: Add fiat payment confirmation flow with headless ramp integration placeholder#28152
OGPoyraz wants to merge 1 commit intomainfrom
ogp/CONF-1065

Conversation

@OGPoyraz
Copy link
Copy Markdown
Member

Description

Add fiat payment confirmation flow with headless ramp integration placeholder

Summary

  • When a user confirms a transaction with fiat payment selected and no order yet, the confirm button now triggers the ramp purchase flow instead of submitting the transaction directly (startHeadlessBuy call is placeholder — will be uncommented once the Ramps team delivers the headless API)
  • After ramp purchase completes and orderCode lands in state, useTransactionPayAutoFiatSubmission auto-submits the transaction so the FiatStrategy in TransactionPayController can poll the order and relay funds
  • Auto-submission is deduplicated per orderCode and retries on failure
  • getStrategy in controller init now routes transactions with a selected fiat payment method to FiatStrategy instead of the default Relay
  • Non-fiat confirmation flow is completely unchanged
  • Depends on feat: Implement FiatStrategy submit flow with order polling and relay execution core#8347@metamask/transaction-pay-controller dep bump required before merge

Changelog

CHANGELOG entry:

Related issues

Fixes:

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@metamaskbot metamaskbot added the team-confirmations Push issues to confirmations team label Mar 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

⏭️ Smart E2E selection skipped - draft PR

All E2E tests pre-selected.

View GitHub Actions results

@github-actions
Copy link
Copy Markdown
Contributor

E2E Fixture Validation — Schema is up to date
17 value mismatches detected (expected — fixture represents an existing user).
View details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-M team-confirmations Push issues to confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants