【发布时间】:2015-05-10 03:19:07
【问题描述】:
所以我已经使用 php 设置了我的按钮来发送自定义变量:
$vars = array(
'cmd' => '_s-xclick',
'hosted_button_id' => 'xxxxxxxxx',
'custom' => $lastId,
);
header('Location: https://www.sandbox.paypal.com/cgi-bin/webscr?' . http_build_query($vars));
我在这里尝试做的是通过 Paypal 将 Last Inserted Row id 发送到我的 paypal IPN。然后根据支付状态使用id修改记录。
所以在 paypal IPN 中,我将根据 $lastid 查找表记录。 例如:
$sql = "SELECT x FROM table WHERE id = a";
a 是应该从 paypal 返回的自定义变量。
【问题讨论】:
-
你能详细说明你的问题吗?