Skip to content

Create PAYPAL_STATUS_MAP to cover all PayPal status - #496

Open
magush27 wants to merge 1 commit into
cboard-org:masterfrom
magush27:fix/subscription-not-managed-statuses
Open

magush27 wants to merge 1 commit into
cboard-org:masterfrom
magush27:fix/subscription-not-managed-statuses

Conversation

@magush27

Copy link
Copy Markdown
Collaborator

Normalize all PayPal subscription statuses to internal vocabulary in getSubscriber. Replaces the previous ad-hoc if chain with a PAYPAL_STATUS_MAP lookup that covers the full PayPal status set:

APPROVAL_PENDING and APPROVED → proccesing
ACTIVE → active
SUSPENDED → suspended
CANCELLED → canceled, EXPIRED → expired

Unknown statuses fall back to lowercase rather than being stored as raw uppercase strings.

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.

1 participant