php - Paypal Checkout in mobile website -
i developing 1 mobile website selling products through paypal. when click paypal button redirects paypal site in desktop mode. want change mobile mode...
i use following code
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="paypal"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="merchant@website.com"> <input type="hidden" name="lc" value="us"> <input type="hidden" name="item_name" value="product1"> <input type="hidden" name="amount" value="1.00"> <input type="hidden" name="currency_code" value="usd"> <input type="hidden" name="return" value="www.website.com/mobile/paypalreturn.php"/> <input type="hidden" name="cancel_return" value="www.website.com/mobile/" /> <input type="hidden" name="currency_code" value="usd" /> <input type="hidden" name="shopping_url" value="www.website.com/mobile/index.php"> <input type="hidden" name="notify_url" value="www.website.com/mobile/paypalnotify.php"> <script>document.paypal.submit();</script> </form> here show desktop version . want change mobile version.. checked android , iphone devices. in mobile device shows desktop version. googled it, site said automatically change according devices not working me..
please suggest on rectify
thanks in advance....
do not know alternative there command _xclick, express checkout can use instead of
<input type="hidden" name="cmd" value="_express-checkout" /> this
<input type="hidden" name="cmd" value="_express-checkout-mobile" /> so url looks https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile&token=.... see more express checkout mobile here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_id=developer/e_howto_api_wpeconmobiledevices .
try find similar solution xclick cmd parameter.
Comments
Post a Comment