我能否在返回URL中获取PayPal的POST变量?我想根据用户的交易是否已完成/待定/失败,在返回URL页面上显示响应消息。我正在使用PayPal沙盒账户进行测试。
这是我的代码:
<input type="hidden" name="item_name" value="Credit Purchase">
<input type="hidden" name="business" value="<?php echo paypal_business_id;?>">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="currency_code" id="currency_code" value="GBP">
<input type="hidden" name="custom" id="custom" value="<?php echo $user."@@@".$num_purchase;?>">
<input type="hidden" name="return" value="<?php echo base_url(); ?>buy/success">
<input type="hidden" name="cancel_return" value="<?php echo base_url(); ?>">
<input type="hidden" name="notify_url" value="<?php echo base_url(); ?>buy/notify