首页 文章

为移动设置paypal

提问于
浏览
0

我用这段代码创建了paypal按钮

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">

          <!-- Order id. -->
          <input type="hidden" name="invoice" value="'+paypalData.orderId+'" />

          <!-- Specify a PayPal Shopping Cart Add to Cart button. -->
          <input type="hidden" name="cmd" value="_cart">
          <input type="hidden" name="upload" value="1">

          <!-- Identify your business so that you can collect the payments. -->
          <input type="hidden" name="business" value="'+paypalData.businessId+'">

          <!-- Specify currency. -->
          <input type="hidden" name="currency_code" value="'+paypalData.currency+'">

          <!-- The URL to which PayPal posts information about the payment, in the form of Instant Payment -->
          <input type="hidden" name="notify_url" value="notify">
          <!-- Return URL when cancel payment -->
          <input type="hidden" name="cancel_return" value="cancel">
          <!-- Return URL when payment is done -->
          <input type="hidden" name="return" value="return">


          <input type="hidden" name="amount_'+index+'" value="'+val["price_per_unit"]+'">
          <input type="hidden" name="quantity_'+index+'" value="'+val["count"]+'">
          <input type="hidden" name="item_name_'+index+'" value="'+val["name"]+'">



          <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="'+paypalData.submitAlt+'">
          <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
   </form>

但是我需要为jQuery mobile修改它 . 我知道我必须使用这个命令:

cmd = _express-checkout-mobile in url https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile

但我不知道如何使用它以及在哪里使用它 .

整个应用程序由phonegap转换 .

非常感谢您的时间和建议 .

1 回答

相关问题