php - paypal do not return txn_id in mobile site -


i have using paypal in desktop website , worked. below code:

<?php ...... echo '<form name="form1" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"><div> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="charset" value="utf-8"> <input type="hidden" name="cancel_return" value="'.$host.'/my-order-history"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="'.$host.'/payment-done?nid='.$node->nid.'&order='.date("ymdhis",$time).'"> <input type="hidden" name="rm" value="2"> <input type="hidden" name="currency_code" value="hkd"> <input type="hidden" name="handling_cart" value="0.00"> <input type="hidden" name="invoice" value="'.date("ymdhis",$time).'"> <input type="hidden" name="tax_cart" value="0.00"> <input type="hidden" name="business" value="'.$paypal.'"> <input type="hidden" name="upload" value="1"> <input type="hidden" name="amount" value="'.$total_amount.'"> <input type="hidden" name="item_name" value="'.$company_name."-".date("ymdhis",$time).'"> <input id="go_pay" type="submit" name="next"  value="confirm" /> </form>'; ...... ?> 

and in payment-done page, can txn_id $_post["txn_id"]. when use above code in mobile website, can pay paypal can't txn_id in payment-done page. can change code work in mobile site?

thank you.

paypal says txn_id value is:

the merchant's original transaction identification number payment buyer, against case registered.

so seems imply if not getting txn_id value transaction, you're not supplying 1 paypal use. means you're loosing data placement in display flow transitioning between desktop , mobile display of website.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -