Php 贝宝支付需要交易详情

Php 贝宝支付需要交易详情,php,paypal,Php,Paypal,我使用了paypal支付表单提交,但作为回应,我们没有获得支付状态和交易详细信息,我们只获得了付款人的状态 我的代码如下: <input type="hidden" name="cmd" value="_xclick-subscriptions"> <input type="hidden" name="currency_code" value="AUD" > <input type="hidden" name="rm" value="2" > <in

我使用了paypal支付表单提交,但作为回应,我们没有获得支付状态和交易详细信息,我们只获得了付款人的状态

我的代码如下:

<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="currency_code" value="AUD" >

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

<input type="hidden" value="" name="custom" id="custom" />

<input type="hidden" name="invoice" value="" >

<input type="hidden" name="item_name" value="">

<input type="hidden" name="a3" value="" >

<input type="hidden" name="p3" value="" >

<input type="hidden" name="t3" value="" >

<input type="hidden" name="src" value="1" >

<input type="hidden" name="sra" value="1" >             
<input type="hidden" name="return" value="xx">

<input type="hidden" name="cancel_return" value="xx">

<input type="hidden" name="no_shipping" value="1" > 


让我知道获取交易详细信息的任何解决方案。

要获取paypal交易详细信息,请执行以下步骤:

  • 通过paypal帐户获取交易详细信息时,自动返回应该处于“开启”状态

      a: Login to your paypal account .
      b: Then go to your profile -> myselling tool ->website preference 
      c: Click on the auto return button make it "ON".
      d: And give the return url link on this page .(In my case my app return url is success.php)
    
  • 2.成功完成付款后,提供$u请求数组,其中包含产品id、PayPal交易id、PayPal收到的金额值、PayPal收到的货币类型和PayPal产品状态。 并将此代码写入您的success.php页面

    if (!empty($_REQUEST)) {
        $product_no = $_REQUEST['item_number']; // Product ID
        $product_transaction = $_REQUEST['tx']; // Paypal transaction ID
        $product_price = $_REQUEST['amt']; // Paypal received amount value
        $product_currency = $_REQUEST['cc']; // Paypal received currency type
        $product_status = $_REQUEST['st']; // Paypal product status 
     }
    

    我希望这会清除错误。

    您的代码在哪里。您的代码为空。请按照以下文章进行操作是的,没错,但我现在需要交易id作为响应我没有交易id和付款状态作为响应您应该清楚您的问题。而不是粘贴html。你应该粘贴你已经尝试过的东西。我们只能帮助你。我需要付款状态的回应,但没有得到。