简体   繁体   English

$_REQUEST 无法获取查询参数

[英]$_REQUEST can not get query parameter

Payment is successful but it is still displaying error, the Transaction with this ID is not found.支付成功但仍显示错误,未找到此ID的交易。 I'm performing the transaction form https://pay.digiwallet.nl/test-transaction This is the PHP code我正在执行交易表格https://pay.digiwallet.nl/test-transaction这是 PHP 代码

    <?php
    //IDEAL CHECK
    if(isset($_REQUEST['trxid'])) {     // this is not getting the value form my payement system.

    $trx = $_REQUEST['trxid']; 

    $bbdata = array(
        'rtlo' => '144891',
        'once' => 1,
        'trxid' => $trx,
        'once' => 1
    );

    // send a request to example.com (referer = jonasjohn.de)
    $iresult = PostRequest(
        "http://www.xyz/ideal/check",
        "http://www.xyz//",
        $bbdata
    );

I just want TRXID done.我只想完成 TRXID。 Which is not accessed successfully from another page of payment pay.digiwallet.nl payment system.无法从支付 pay.digiwallet.nl 支付系统的另一个页面成功访问。

Animation of problem问题动画

You should not trust $_REQUEST to get variables as described in the doc你不应该相信$_REQUEST来获取文档中描述的变量

The variables in $_REQUEST are provided to the script via the GET, POST, and COOKIE input mechanisms and therefore could be modified by the remote user and cannot be trusted. $_REQUEST 中的变量通过 GET、POST 和 COOKIE 输入机制提供给脚本,因此可以由远程用户修改并且不可信。 The presence and order of variables listed in this array is defined according to the PHP variables_order configuration directive.此数组中列出的变量的存在和顺序是根据 PHP variables_order配置指令定义的。

Otherwise, I would suggest you check out variable orders set in the php.ini file.否则,我建议您检查php.ini文件中设置的变量订单。

I would recommend to get a variable from the url using $_GET['trxid'] .我建议使用$_GET['trxid']从 url 获取变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM