You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix PayPal subscription buttons with a saved Card only layout - #3783
Switching a PayPal payment action from one-time to recurring hides the layout setting but keeps its saved value. If the layout was Card only, the frontend skipped subscription buttons and the form could show “No payment methods available.”
Allow recurring actions to discover PayPal buttons regardless of the saved layout. The regression test exercises the initializer with a recurring action and a saved Card only layout.
The PayPal bootstrap tests pass locally. Live PayPal sandbox rendering is unverified.
We reviewed changes in 85479d8...f1a737e on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
The reason will be displayed to describe this comment to others. Learn more.
Found `async` function without any `await` expressions
A function that does not contain any await expressions should not be async (except for some edge cases in TypeScript which are discussed below). Asynchronous functions in JavaScript behave differently than other functions in two important ways:
The reason will be displayed to describe this comment to others. Learn more.
Unexpected empty async method 'render'
Having empty functions hurts readability, and is considered a code-smell. There's almost always a way to avoid using them. If you must use one, consider adding a comment to inform the reader of its purpose.
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
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.
Switching a PayPal payment action from one-time to recurring hides the layout setting but keeps its saved value. If the layout was Card only, the frontend skipped subscription buttons and the form could show “No payment methods available.”
Allow recurring actions to discover PayPal buttons regardless of the saved layout. The regression test exercises the initializer with a recurring action and a saved Card only layout.
The PayPal bootstrap tests pass locally. Live PayPal sandbox rendering is unverified.
Related report from Garret:
#3725 (comment)