Add an experimental Payment Elements embedded checkout display mode - #3
Draft
acirtautas wants to merge 1 commit into
Draft
Add an experimental Payment Elements embedded checkout display mode#3acirtautas wants to merge 1 commit into
acirtautas wants to merge 1 commit into
Conversation
A third gateway display_mode renders EveryPay's embedded checkout (card, bank and wallet form) on a page of the shop instead of redirecting. The capture handler sends mobile_payment: true and stores the returned mobile_access_token with the SDK options in the payment request response data; the response provider renders the new template through PaymentElementsViewFactory and falls back to the hosted page redirect whenever the token or any confirm() field is missing. The SDK is undocumented for custom integrations - the contract was extracted from EveryPay's own WooCommerce 2.x plugin and the SDK bundle, and is recorded in docs/everypay-api.md. The mode ships marked experimental and exempt from the stability contract until EveryPay confirms the SDK.
acirtautas
force-pushed
the
payment-elements
branch
from
August 3, 2026 23:03
1ebbd20 to
b5b0e21
Compare
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.
Summary
Adds a third gateway
display_modethat renders EveryPay's embedded checkout (card, bank and wallet form) on a page of the shop instead of redirecting to the hosted payment page.mobile_payment: trueand stores the returnedmobile_access_tokentogether with the SDK options in the payment request response data.EveryPayHttpResponseProviderrenders the newtemplates/shop/payment_elements.html.twigthrough the newPaymentElementsViewFactory.confirm()field is missing from the API response.Experimental status
The Payment Elements JS SDK is undocumented for custom integrations. The contract used here was reverse-engineered from EveryPay's own WooCommerce 2.x plugin and the SDK bundle, and is recorded in
docs/everypay-api.md. The mode ships marked experimental and exempt from the stability contract until EveryPay confirms the SDK for custom integrations — this PR stays a draft until that confirmation arrives.Testing
vendor/bin/phpunit— 103 tests green (unit + functional, including new coverage for the capture handler, response provider, view factory and admin form)vendor/bin/behat --strict— 15 scenarios green (new embedded-checkout scenario included)vendor/bin/phpstan analyse(level 9) andvendor/bin/ecs check— clean