Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 贝宝不给身份证_Php_Paypal - Fatal编程技术网

Php 贝宝不给身份证

Php 贝宝不给身份证,php,paypal,Php,Paypal,我有以下问题 我将Paypal集成到我的网站。现在我想测试PayPal设置。我在沙箱环境中测试它。因此,支付工作非常好,支付后,该网站重定向到我的success.php网站。 我有个问题。 通常它应该显示类似于mywebsite.de/success.php?tx=83437E384950D&st=Completed&amt=10.00&cc=USD&cm=&item_number=1的内容 但它只显示 mywebsite.de/success.php 我的代码如下所示 paypalURL =

我有以下问题

我将Paypal集成到我的网站。现在我想测试PayPal设置。我在沙箱环境中测试它。因此,支付工作非常好,支付后,该网站重定向到我的success.php网站。 我有个问题。 通常它应该显示类似于
mywebsite.de/success.php?tx=83437E384950D&st=Completed&amt=10.00&cc=USD&cm=&item_number=1的内容

但它只显示

mywebsite.de/success.php
我的代码如下所示

paypalURL = 'https://www.sandbox.paypal.com/cgi-bin/webscr'; //Test PayPal API URL
$paypalID = 'mywebsite@site.de'; //Business Email
                    <center><form action="<?php echo $paypalURL; ?>" method="post">
    <!-- Identify your business so that you can collect the payments. -->
    <input type="hidden" name="business" value="<?php echo $paypalID; ?>">

    <!-- Specify a Buy Now button. -->
    <input type="hidden" name="cmd" value="_xclick">

    <!-- Specify details about the item that buyers will purchase. -->
    <input type="hidden" name="item_name" value="1 Monat Premium Mitgliedschaft">
    <input type="hidden" name="item_number" value="1">
    <input type="hidden" name="amount" value="49.99">
    <input type="hidden" name="currency_code" value="EUR">

      <!-- Specify URLs -->
    <input type='hidden' name='cancel_return' value='http://mywebsite.de/index.php'>
    <input type='hidden' name='return' id='return' value='http://mywebsite.de/success.php/'>

    <!-- Display the payment button. -->
    <input type="image" name="submit" border="0"
    src="https://www.paypalobjects.com/de_DE/DE/i/btn/btn_buynowCC_LG.gif" alt="PayPal - The safer, easier way to pay online">
    <img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
                    </form></center>
paypalURL='1〕https://www.sandbox.paypal.com/cgi-bin/webscr'; //测试PayPalAPI URL
$paypalID=mywebsite@site.de'; //商务电子邮件

传递值为2的rm变量,请参阅以下内容:

<input type="hidden" name="rm" value="2">

一旦您通过rm=2,那么在买家重定向到您的网站后,您将看到以下变量: