【问题标题】:Setting paypal for mobile设置移动支付宝
【发布时间】:2014-08-07 11:04:47
【问题描述】:

我已经使用此代码创建了 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进行转换。

非常感谢您的宝贵时间和任何建议。

【问题讨论】:

    标签: jquery-mobile cordova paypal


    【解决方案1】:

    您当前的集成使用PayPal StandardExpress CheckoutAPI products 的一部分。您需要使用 API 重新构建结帐以利用 Express Checkout。

    【讨论】:

      猜你喜欢
      • 2016-06-04
      • 2013-05-27
      • 2011-07-19
      • 2013-09-23
      • 1970-01-01
      • 2016-03-03
      • 1970-01-01
      • 2010-11-04
      • 2014-04-26
      相关资源
      最近更新 更多