Paypal return url is giving blank array -
<form id="dvrr" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <table border="0" cellpadding="5" cellspacing="5" align="center" width="100%"> <tr> <td></td> <td><input type="hidden" name="business" value="ceo@world-airport-city-transfer.com"> <!-- specify buy button. --> <input type="hidden" name="cmd" value="_xclick"> <!-- specify details item buyers purchase. --> <input type="hidden" name="item_name" value="cab booking"> <input type="hidden" name="item_number" value="<?php echo $orderid; ?>"> <input type="hidden" name="amount" value="<?php echo number_format((float)$data['price'], 2, '.', ''); ?>"> <input type="hidden" name="currency_code" value="usd"> <!-- specify urls --> <input type="hidden" name="cancel_return" value="http://www.wer.com/payment-cancel/"> <input type="hidden" name="return" value="http://www.wer.com/payment-processing/"> <input type="hidden" name="notify_url" value="http://www.wer.com/notify-payment/"> <!-- display payment button. --> <input type="image" name="submit" border="0" src="https://www.paypalobjects.com/en_us/i/btn/btn_buynow_lg.gif" alt="paypal - safer, easier way pay online"> <img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_us/i/scr/pixel.gif" ></td> </tr> </table>
this paypal form i'm using payment, on thank page add code response , update on our system transaction complete or not.
we place code on weburl.com/payment-processing/ our return url
$data=$_post;
if($_post['payment_status']!=''){ $item_name=$_post['item_name']; $item_number=$_post['item_number']; $txn_id=$_post['txn_id']; $payer_email=$_post['payer_email']; $payment_gross=$_post['payment_gross']; $payment_status=$_post['payment_status']; $insert = mysql_query("insert cr_payments(item_name,item_number,txn_id,payer_email,payment_gross,payment_status) values('".$item_name."','".$item_number."','".$txn_id."','".$payer_email."','".$payment_gross."','".$payment_status."')") or die(mysql_error()); global $wpdb; $is_added = $wpdb->query("update cr_booking set fld_booking_status = '$payment_status' fld_booking_id = '$item_number'");
but data when run code on sandbox mode .. on live mode getting blank array
paypal website payments standard, including paypal button use, not carry return url.
you have store data in shopping cart before jumping paypal payment page.
another paypal product can use, different 1 using, express checkout. requires program api calls between server , paypal, actual charge done calling doexoresscheckout on server, can decide display according result of api call.
Comments
Post a Comment