Skip to content

Remove redundant authorize call in subscription renewal handler (1575) #3543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

hmouhtar
Copy link
Collaborator

@hmouhtar hmouhtar commented Jul 21, 2025

The vaulted subscription renewal handler was attempting to authorize orders when the intent was set to "AUTHORIZE". This resulted in ORDER_ALREADY_AUTHORIZED errors because PayPal orders created with tokens as a payment source are authorized automatically, with the authorization returned in the order creation response.

This PR removes the redundant authorize call while maintaining the AuthorizedPaymentsProcessor::CAPTURED_META_KEY meta update call, which is necessary for the manual renewal action to be displayed.

This change will only affect vaulted subscription renewals. Since these renewals always use tokens as the payment source, no explicit authorization call is required.

@hmouhtar hmouhtar marked this pull request as ready for review July 21, 2025 21:23
Copy link
Collaborator

@Narek13 Narek13 left a comment

Choose a reason for hiding this comment

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

LGTM

@InpsydeNiklas InpsydeNiklas merged commit 4f64b4f into trunk Aug 4, 2025
11 checks passed
@InpsydeNiklas InpsydeNiklas deleted the PCP-1575-fix-already-authorized branch August 4, 2025 17:25
@InpsydeNiklas InpsydeNiklas added this to the 3.1.0 milestone Aug 4, 2025
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.

3 participants