Skip to content

feat(venmo): payee-email routing for practitioner payments#16

Merged
Jesssullivan merged 1 commit intomainfrom
feat/paypal-payee-email
Apr 8, 2026
Merged

feat(venmo): payee-email routing for practitioner payments#16
Jesssullivan merged 1 commit intomainfrom
feat/paypal-payee-email

Conversation

@Jesssullivan
Copy link
Copy Markdown
Owner

Summary

  • Add payeeEmail to VenmoAdapterConfig
  • When set, includes payee.email_address in PayPal order purchase_units
  • Payments route directly to practitioner's PayPal account
  • Platform uses its own API credentials, practitioner only provides email

Why

Eliminates the need for practitioners to navigate developer.paypal.com.
Per PayPal's "Pay another account" docs.

Trade-offs

  • Refunds must be done by practitioner from their PayPal dashboard
  • Payee email must be a valid PayPal account (silent failure otherwise)

Test plan

  • 536 existing tests pass
  • E2E test with sandbox payee

When payeeEmail is set in VenmoAdapterConfig, the PayPal order
creation includes payee.email_address in purchase_units. This
routes payments directly to the practitioner's PayPal account
without requiring their API credentials.

Ref: PayPal "Pay another account" docs
@Jesssullivan Jesssullivan merged commit b64ac5e into main Apr 8, 2026
3 checks passed
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