首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >设置移动端paypal

设置移动端paypal
EN

Stack Overflow用户
提问于 2014-08-07 19:04:48
回答 1查看 213关注 0票数 0

我已经用这个代码创建了paypal按钮

代码语言:javascript
复制
   <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手机修改它。我知道我必须使用这个命令:

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

但是我不知道如何使用它,也不知道把它放在哪里。

整个应用程序由phonegap转换。

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

EN

回答 1

Stack Overflow用户

发布于 2014-08-07 19:49:21

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25180903

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档