Skip to content

[VNEXT-78878] Mercado Pago - add payment authorization call and add the preference id#1361

Merged
wcole1-godaddy merged 6 commits into
godaddy:mainfrom
falbarnaz-godaddy:vnext-78878
Apr 29, 2026
Merged

[VNEXT-78878] Mercado Pago - add payment authorization call and add the preference id#1361
wcole1-godaddy merged 6 commits into
godaddy:mainfrom
falbarnaz-godaddy:vnext-78878

Conversation

@falbarnaz-godaddy
Copy link
Copy Markdown
Contributor

@falbarnaz-godaddy falbarnaz-godaddy commented Apr 28, 2026

Summary

This PR adds payment authorization integration to the MercadoPago checkout button component, implementing preference ID generation for brick initialization.

What's changing
New getPreferenceId() function: Async helper that calls the authorization workflow to retrieve the MercadoPago preference ID

Calls authorizeCheckout.mutateAsync() with MercadoPago payment type and provider
Returns transactionRefNum as the preference ID for brick configuration
Preference ID integration: Passes the generated preference ID to the brick initialization

Preference ID is fetched during brick setup in renderBrick()
Included in the brick's initialization config for proper MercadoPago payment processing

Changeset

  • Changeset added (docs)

Test Plan

@falbarnaz-godaddy falbarnaz-godaddy requested a review from a team as a code owner April 28, 2026 21:12
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 28, 2026

🦋 Changeset detected

Latest commit: 3760f09

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@godaddy/react Patch
nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Collaborator

@pbennett1-godaddy pbennett1-godaddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@wcole1-godaddy wcole1-godaddy merged commit b7be456 into godaddy:main Apr 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants