Skip to content

Commit

Permalink
Added fix for plus sign email
Browse files Browse the repository at this point in the history
Reference: paypal#82
  • Loading branch information
mokalovesoulmate authored Jul 23, 2017
1 parent 391c677 commit ca8f974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/PaypalIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function verifyIPN()
$keyval = explode('=', $keyval);
if (count($keyval) == 2) {
// Since we do not want the plus in the datetime string to be encoded to a space, we manually encode it.
if ($keyval[0] === 'payment_date') {
if ($keyval[0] === 'payment_date' || $keyval[0] === 'business' || $keyval[0] === 'payer_email' || $keyval[0] === 'receiver_email') {
if (substr_count($keyval[1], '+') === 1) {
$keyval[1] = str_replace('+', '%2B', $keyval[1]);
}
Expand Down

0 comments on commit ca8f974

Please sign in to comment.