How to access 3rd party transaction information in Paypal

后端 未结 1 623
-上瘾入骨i
-上瘾入骨i 2021-01-07 08:11

I\'m trying to figure out how to access transaction information from a third party user (to include in a dashboard) from Paypal.

Ideally I need to be able to pull in

1条回答
  •  借酒劲吻你
    2021-01-07 08:47

    After struggling with this for sometime I found a simple, but crude implementation here - List of PayPal transactions.

    The original code didn't work - here's a corrected version

        urldecode($temp["L_TIMESTAMP".$i]),
        "timezone"          =>    urldecode($temp["L_TIMEZONE".$i]),
        "type"              =>    urldecode($temp["L_TYPE".$i]),
        "email"             =>    urldecode($temp["L_EMAIL".$i]),
        "name"              =>    urldecode($temp["L_NAME".$i]),
        "transaction_id"    =>   urldecode($temp["L_TRANSACTIONID".$i]),
        "status"            =>    urldecode($temp["L_STATUS".$i]),
        "amt"               =>    urldecode($temp["L_AMT".$i]),
        "currency_code"     =>    urldecode($temp["L_CURRENCYCODE".$i]),
        "fee_amount"        =>    urldecode($temp["L_FEEAMT".$i]),
        "net_amount"        =>    urldecode($temp["L_NETAMT".$i]));
    }
    
    var_dump($returned_array);
    

    This is obviously not production code, but it's good enough to work backwards from.

    0 讨论(0)
提交回复
热议问题