Skip to content

t523b: Show onboarding failure messages when merchant status is invalid #728

Description

@superdav42

Summary

After OAuth onboarding, if payments_receivable or email_confirmed is false, display PayPal's required error messages in the settings UI.

payments_receivable=false:
"Attention: You currently cannot receive payments due to restriction on your PayPal account. Please reach out to PayPal Customer Support or connect to https://www.paypal.com for more information."

email_confirmed=false:
"Attention: Please confirm your email address on https://www.paypal.com/businessprofile/settings in order to receive payments! You currently cannot receive payments."

File

inc/gateways/class-paypal-rest-gateway.phprender_oauth_connection() method

Acceptance Criteria

  • Error banner shown when payments_receivable is false with PayPal's exact text
  • Error banner shown when email_confirmed is false with PayPal's exact text

Part of #725


aidevops.sh v3.5.555 plugin for OpenCode v1.3.12 with claude-opus-4-6 spent 14h 19m and 13,232 tokens on this as a headless worker.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions