【发布时间】:2023-03-03 06:37:20
【问题描述】:
我正在开发一个通过贝宝销售产品的移动网站。当我单击贝宝按钮时,它会以桌面模式重定向到贝宝网站。我想将其更改为移动模式...
我使用下面的代码
<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>
这里显示桌面版本。我想更改为移动版本.. 我用 Android 和 Iphone 设备检查了这个。在移动设备中也显示桌面版本。我用谷歌搜索了一下,有些网站说它会根据设备自动更改,但对我不起作用..
请就此提出纠正
提前谢谢....
【问题讨论】:
-
张贴您店铺的网址以通过移动设备查看...
-
Shadyyx 我在移动设备上发布了网址,它只显示桌面版本而不是移动版本的网站。我已经在上面提到了这一点
标签: php html paypal mobile-website payment-gateway