删除(或预填充)PayPal Express Checkout的地址详细信息 [英] Removing (or prefilling) the address details for PayPal Express Checkout

查看:224
本文介绍了删除(或预填充)PayPal Express Checkout的地址详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PayPal作为我建立的自定义购物车的付款方式。我已经设置了一个购物车,结帐完成。它询问用户的地址。一旦他们完成了所有的领域,他们打了Pay with PayPal。这还没有发送到PayPal。首先,它处理他们输入的数据,然后重定向到PayPal支付。

I am looking at using PayPal as a payment option for my custom shopping cart I have built. I already have a cart set up, and a checkout 'complete'. It asks the user for their address. Once they have completed all the fields, they hit 'Pay with PayPal'. This does not send them to PayPal yet. First it processes the data they entered, THEN redirects them off to PayPal to pay.

这都是使用PayPal Express Checkout。

This is all using PayPal Express Checkout.

所需的流程是这样的。


  1. 用户将项目添加到购物车。所有这一切发生,已经由我的服务器处理,没有调用PayPal。我想让用户在我的网站上管理购物车,而不是PayPal。

  2. 完成后,用户点击结帐。然后将它们带到我的服务器上的另一个页面(例如 http://mywebsite.com/store/checkout/ ),他们确认他们的购物车并输入他们的送货地址和其他详细信息。

  3. 完成后,他们点击Pay with PayPal按钮并发送到另一个我的服务器上的页面(例如, http://mywebsite.com/store/checkout/pay/ )我的Web应用程序处理订单和信息,并将其添加到数据库。现在,这里是我想要付款宝贝的地方。

  4. 在处理前一页(第三步)期间,我希望我的Web应用程序使用SetExpressCheckout API联系paypal并重定向用户到PayPal付款页面。

  5. 用户输入信用卡或PayPal详细信息,并支付 https://paypal.com

  6. 然后,用户被发送回我的网站,被告知已收到付款(如果有)或任何其他警报他们需要注意。订单状态相应更新,订单已发货。

  1. The user adds items to the cart. All this happens and is already handled by my server, with no calls to PayPal. I want the user to manage the cart on MY WEBSITE, not PayPal.
  2. Once finished, the user hits 'checkout'. This then takes them to another page on my server (for example http://mywebsite.com/store/checkout/) where they confirm their shopping cart and enter their shipping address and other details.
  3. Once they finish that, they click a 'Pay with PayPal' button and are sent to another page on MY server (for example, http://mywebsite.com/store/checkout/pay/) where my web application processes the order and information and adds it to the database. Now, HERE is where I want the paypal magic to happen.
  4. During the processing of the previous page (step three), I want my web application to contact paypal using the SetExpressCheckout API and redirect the user to the PayPal payment page.
  5. The user enters their credit card or PayPal details and pays on https://paypal.com.
  6. The user is then sent back to my website to be told that payment has been received (if it has) or any other alerts that they need to be aware of. The order status is updated accordingly and the order is shipped off.

我确信这是可能的。是吗?我正在使用Python和Django。

I am quite sure this is all possible. Is it? I am using Python and Django.

我唯一的问题是我不希望用户输入他们的运费/付款地址TWICE(一次在我的网站上,一次在paypal支付网站)。我不希望用户在PayPal支付网站上输入其付款地址。没有必要,因为我已经拥有了。可以从PayPal网站中删除地址栏,还是从我的网站预先填写数据?

My only problem is that I do not want the users to have to enter their shipping/payment address TWICE (once on my website, once on the paypal payment website). I do not want the user to have to enter their shipping/payment address at the PayPal payment website. There is no need for this as I already have it. Is it possible to remove the address fields from the PayPal website, or just pre-fill them with data from my website?

推荐答案

是的,Paypal API中有一个选项来覆盖地址输入。参见这里:

Yes, there is an option in the Paypal API to override the address input. See here:

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECCustomizing#id0864F070OHS__id0864H804030

为了方便复制这里的相关信息:

Relevant info copied here for convenience:

To override the shipping address:

Set the ADDROVERRIDE parameter to 1 in the call to SetExpressCheckout.
Set the following shipping address parameters in the call to SetExpressCheckout to the address values you want to use for the new address.

SHIPTONAME
SHIPTOSTREET
SHIPTOCITY
SHIPTOSTATE (Optional)
SHIPTOCOUNTRYCODE
SHIPTOZIP
SHIPTOSTREET2 (Optional)

这篇关于删除(或预填充)PayPal Express Checkout的地址详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆