Paypal集成在响应式网站中

时间:2015-08-17 07:37:42

标签: php paypal

我使用以下代码进行付款整合

<form id = "paypal_checkout" action = "https://www.paypal.com/cgi-bin/webscr" method = "post">
    <input name = "cmd" value = "_cart" type = "hidden">
    <input name = "upload" value = "1" type = "hidden">
    <input name = "no_note" value = "0" type = "hidden">
    <input name = "bn" value = "PP-BuyNowBF" type = "hidden">
    <input name = "tax" value = "0" type = "hidden">
    <input name = "rm" value = "2" type = "hidden">

    <input name = "business" value = "xxxxxxxx" type = "hidden">
    <input name = "handling_cart" value = "0" type = "hidden">
    <input name = "currency_code" value = "GBP" type = "hidden">
    <input name = "lc" value = "GB" type = "hidden">
    <input name = "return" value = "http://mysite/myreturnpage" type = "hidden">
    <input name = "cbt" value = "Return to My Site" type = "hidden">
    <input name = "cancel_return" value = "http://mysite/mycancelpage" type = "hidden">
    <input name = "custom" value = "" type = "hidden">

    <div id = "item_1" class = "itemwrap">
        <input name = "item_name_1" value = "Gold Tickets" type = "hidden">
        <input name = "quantity_1" value = "4" type = "hidden">
        <input name = "amount_1" value = "30" type = "hidden">
        <input name = "shipping_1" value = "0" type = "hidden">
    </div>
    <div id = "item_2" class = "itemwrap">
        <input name = "item_name_2" value = "Silver Tickets" type = "hidden">
        <input name = "quantity_2" value = "2" type = "hidden">
        <input name = "amount_2" value = "20" type = "hidden">
        <input name = "shipping_2" value = "0" type = "hidden">
    </div>
    <div id = "item_3" class = "itemwrap">
        <input name = "item_name_3" value = "Bronze Tickets" type = "hidden">
        <input name = "quantity_3" value = "2" type = "hidden">
        <input name = "amount_3" value = "15" type = "hidden">
        <input name = "shipping_3" value = "0" type = "hidden">
    </div>

     <input id = "ppcheckoutbtn" value = "Checkout" class = "button" type = "submit">
</form>

此代码工作正常但我在paypal屏幕的响应式设计中存在问题

我的问题

  1. 如何为付款集成开发响应式PayPal屏幕

1 个答案:

答案 0 :(得分:2)

通常,PayPal标准付款按钮本质上是响应式的,但是移动设备不支持某些用例,有关详细信息,请参阅here(“不支持的用例”部分) ,在您的情况下,添加到购物车按钮将无法适应移动屏幕。

虽然Express Checkout作为一种API集成技术,将更具移动性,支持大多数支付用例,以适应移动体验。 请查看Demo Portal以获取一些有助于整合的见解