paypal按钮客户领域php变量

时间:2016-04-24 09:03:43

标签: php paypal-ipn paypal-buttons

我已在我的网站上实施了paypal按钮,以便购买高级会员资格。所以要知道(在IPN听众中)谁支付我将costumer变量发送到paypal ...无论如何代码(在服务器端)看起来像:



<?php 
session_start();
$email = $_SESSION['email']; // example@t-online.de
echo $email;
?>
<!DOCTYPE html> 
<html> 
<head>
  <title>Registrierung</title>	
</head> 
<body>
 



<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="FGAB5Z3G63VSL">
<input type="hidden" name="custom" value="<?=$email;?>">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
</form



</body>
</html>
&#13;
&#13;
&#13;

在ipn方面,我收到&#34;&lt;&#39;?= $ email;?&gt;作为costumer变量(在&lt;之后没有&#39; ....而不是example@t-online.de

0 个答案:

没有答案