Resume subscription - Paypal payment bug
Problem with Resume Access Subscription - The admin has activated the
Manual Paypal Payment in the back-end.
The user is sent to Paypal but the payment fails because several items of the command line are not properly url-encoded.
Problem lies in the file includes/gateways/paypal.php around line 199.
// Params needing url encoding
$url_encode = array ('notify_url', 'return', 'item_name'); <<< Error is on this line
foreach ($paypal_args as $key => $value) :
$paypal_link .= '&' . $key . '=' . (array_key_exists($key,$url_encode)?urlencode($val ue):$value);
endforeach;
header('Location: '.$paypal_link);
exit;
The url_encode search array that's compatible with the function array_key_exists should be set as follows:
$url_encode = array ('notify_url'=>1, 'return'=>1, 'item_name'=>1);
Please forward to your dev. team. Thanks.