Rename Website Payments Pro gateway slug from paypal to paypalwpp#3579
Draft
Rename Website Payments Pro gateway slug from paypal to paypalwpp#3579
Conversation
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.
(Written by Flint/Claude Code)
All Submissions:
Changes proposed in this Pull Request:
Renames the deprecated Website Payments Pro (WPP) gateway slug from
paypaltopaypalwpp, freeing up thepaypalslug for the new PayPal REST API add-on plugin (pmpro-paypal).The old WPP gateway has held the
paypalslug since the early days of PMPro, but it uses the deprecated NVP/SOAP API and is already listed as a deprecated gateway. Renaming it topaypalwppallows the new modern PayPal integration (Orders V2 + Subscriptions API v1) to claim the cleanpaypalslug as an add-on gateway.Files changed (8):
classes/gateways/class.pmprogateway_paypal.php→class.pmprogateway_paypalwpp.phpPMProGateway_paypal→PMProGateway_paypalwpp. All self-references, gateway slug checks, and CSS classes updated.includes/deprecated.php'paypal'→'paypalwpp'inpmpro_get_deprecated_gateways()includes/functions.php$gateway == 'paypal'→$gateway == 'paypalwpp'in gateway ready checkservices/ipnhandler.phppmpro_doing_webhook('paypal')→'paypalwpp';$morder->gateway == "paypal"→"paypalwpp"includes/updates/upgrade_3_2.php'paypal'→'paypalwpp'in upgrade checkincludes/updates/upgrade_1_4_2.php$gateway == "paypal"→"paypalwpp"in SSL default checkclasses/class-pmpro-site-health.php'paypal' =>→'paypalwpp' =>in gateway constants mapclasses/class-pmpro-wisdom-integration.php'paypal' =>→'paypalwpp' =>in gateway settings detectionNOT changed:
PAYPAL_BN_CODEconstant (static partner attribution ID, not a gateway slug). Hook names likepmpro_paypal_handle_http_post_responseandpmpro_paypal_level_descriptionare left as-is since they are public API.Note: This PR does not include a database upgrade routine to migrate existing WPP users from the
paypalslug topaypalwpp. That should be handled in a separate upgrade routine when this ships. Sites currently using WPP will need theirpmpro_gatewayoption updated frompaypaltopaypalwpp.How to test the changes in this Pull Request:
admin-ajax.php?action=ipnhandler.== 'paypal'or== "paypal"references that should have been renamed (excludingpaypalexpress,paypalstandard, and thePAYPAL_BN_CODEconstant).php -lon all changed files.Other information:
Changelog entry