【发布时间】:2021-05-20 05:20:51
【问题描述】:
我是否可以在返回 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
【问题讨论】: