Summary
PayPal reviewed our PPCP integration and provided specific feedback requiring changes before partnership approval. This task covers the 5 code changes needed in this repo.
Changes Required
-
Disconnect disclaimer — Update confirm dialog to use PayPal's required wording: "Disconnecting your PayPal account will prevent you from offering PayPal services and products on your website. Do you wish to continue?"
-
Onboarding failure UI — Display PayPal's required error messages when payments_receivable or email_confirmed is false after OAuth onboarding.
-
Block checkout for invalid merchant status — Remove paypal-rest from active gateways when merchant can't receive payments.
-
Add payee.merchant_id to orders — Include payee.merchant_id in purchase_units when using OAuth mode.
-
Log PayPal-Debug-Id headers — Capture and log the PayPal-Debug-Id response header from API calls for review submission.
Files Affected
inc/gateways/class-paypal-rest-gateway.php
inc/gateways/class-paypal-oauth-handler.php
Acceptance Criteria
aidevops.sh v3.5.541 plugin for OpenCode v1.3.12 with claude-opus-4-6 spent 22m and 617 tokens on this as a headless worker.
Summary
PayPal reviewed our PPCP integration and provided specific feedback requiring changes before partnership approval. This task covers the 5 code changes needed in this repo.
Changes Required
Disconnect disclaimer — Update confirm dialog to use PayPal's required wording: "Disconnecting your PayPal account will prevent you from offering PayPal services and products on your website. Do you wish to continue?"
Onboarding failure UI — Display PayPal's required error messages when
payments_receivableoremail_confirmedis false after OAuth onboarding.Block checkout for invalid merchant status — Remove paypal-rest from active gateways when merchant can't receive payments.
Add payee.merchant_id to orders — Include
payee.merchant_idinpurchase_unitswhen using OAuth mode.Log PayPal-Debug-Id headers — Capture and log the
PayPal-Debug-Idresponse header from API calls for review submission.Files Affected
inc/gateways/class-paypal-rest-gateway.phpinc/gateways/class-paypal-oauth-handler.phpAcceptance Criteria
aidevops.sh v3.5.541 plugin for OpenCode v1.3.12 with claude-opus-4-6 spent 22m and 617 tokens on this as a headless worker.