I'm using express checkout here but I can't get Paypal transaction_id (the one shows up in the receipt) from the following codes:
$httpParsedResponseAr = $paypal->PPHttpPost('DoExpressCheckoutPayment', $padata, $PayPalApiUsername, $PayPalApiPassword, $PayPalApiSignature, $PayPalMode);
//Check if everything went ok..
if("SUCCESS" == strtoupper($httpParsedResponseAr["ACK"]) || "SUCCESSWITHWARNING" == strtoupper($httpParsedResponseAr["ACK"])) {
if(isset($httpParsedResponseAr["L_TRANSACTIONID0"])){
$pay->transaction_id = $httpParsedResponseAr["L_TRANSACTIONID0"];
}
$httpParsedResponseAr["L_TRANSACTIONID0"]) this should be the problem. I've been looking up Paypal's API for hours and tried for 5 different things but still can't get it work.
Any ideas?