Skip to content

t523c: Block PayPal gateway at checkout when merchant status is invalid #729

Description

@superdav42

Summary

When payments_receivable or email_confirmed is false, the PayPal REST gateway should be removed from active gateways at checkout so buyers don't see a broken payment option.

Follow the existing pattern used for the currency check.

File

inc/gateways/class-paypal-rest-gateway.php

Acceptance Criteria

  • PayPal gateway hidden from checkout when payments_receivable=false
  • PayPal gateway hidden from checkout when email_confirmed=false

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

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