Repository navigation
feat(payments): support the Wix Payment Element in mountCheckout - #386
Open
OleksandrSamsonov wants to merge 3 commits into
Open
OleksandrSamsonov wants to merge 3 commits into
OleksandrSamsonov wants to merge 3 commits into
Conversation
Add a WixEmbeddedCheckout member to EmbeddedCheckout. mountCheckout loads the element script from the payments config, mounts the element with a Pay button the SDK owns, calls confirmPayment() inside the click, then completes the checkout and calls onComplete, as it does for PayPal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its mount() is async, so a failed mount now rejects mountCheckout and cleans up instead of leaving a Pay button. Also scope payment_declined docs to PayPal and note that Base44 Payments checkouts are completed too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OleksandrSamsonov
marked this pull request as ready for review
November 20, 2026 15:52
The checkout never sets it, so the element is created with intentId only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
mountCheckout()can now render an embedded Base44 Payments checkout with the Wix Payment Element.WixEmbeddedCheckout { provider: "wix"; client_id; order_id }, added to theEmbeddedCheckoutunion and exported. No new methods or options.mountCheckout()loads the element script from the payments config (wix.script_url, hosttpa.wixapps.netonly), mounts the element, and adds a Pay button (classbase44-checkout-pay).confirmPayment()synchronously.succeeded→completeCheckout(checkout_id)→onComplete.canceled(a decline included) →onCancel. A rejection →onError. The button stays mounted for a retry, ignores double clicks, and stays off after a payment, same as PayPal.<html lang>ornavigator.language.setDisabled, andcompleteCheckout.preloadCheckout()stays"paypal" | "stripe".Tests
setDisabled, mount failure cleanup, script host check.embedded.provider === "wix"narrows.npm test,npm run lint,npm run buildpass.🤖 Generated with Claude Code