Skip to content

Checks PayPal's returned business email against RECEIVER_EMAIL#33

Open
hugoatease wants to merge 1 commit into
dcramer:masterfrom
hugoatease:business_check
Open

Checks PayPal's returned business email against RECEIVER_EMAIL#33
hugoatease wants to merge 1 commit into
dcramer:masterfrom
hugoatease:business_check

Conversation

@hugoatease

Copy link
Copy Markdown

PayPal allows users to have more than one email address attached to their account.

If such an email address is specified as RECEIVER_EMAIL, transaction's verification goes wrong because PayPal returns the primary account's email as receiver_email, but gives the right business address.

This small patch allows to check RECEIVER_EMAIL against returned receiver_email and business email if different.

@spookylukey

Copy link
Copy Markdown
Collaborator

Any chance of adding a test for this?

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.

2 participants