简体   繁体   English

用信用卡进行贝宝IPN / PDT

[英]PayPal IPN/PDT with credit card

I am writing an IPN application for doing theater seat reservations. 我正在编写用于预订剧院座位的IPN应用程序。 I place a temporary hold on the seats before going off to PayPal. 我暂时不坐座椅,然后再去贝宝。 When the IPN handler is called and detects a successful payment, the seats are reserved permanently. 调用IPN处理程序并检测到付款成功后,将永久保留席位。

The "return" parameter for my PayPal brings the customer back to the reservations application. 我的PayPal的“ return”参数将客户带回预订应用程序。 Because the IPN handler may not have been called yet, the customer may or may not see his seats reserved (this is probably not the best application for IPN, but I am too cheap to spring for one of the non-free methods). 因为可能尚未调用IPN处理程序,所以客户可能会或可能不会看到保留的座位(这可能不是IPN的最佳应用程序,但是对于一种非免费方法来说,我实在太便宜了)。 So I am considering incorporating PDT. 因此,我正在考虑合并PDT。 The "return" parameter would then specify a URL that would first complete the reservation processing in case the IPN handler has not already been called. 然后,如果尚未调用IPN处理程序,则“ return”参数将指定一个将首先完成保留处理的URL。 Here are my questions: 这是我的问题:

My understanding is that if the customer does not have a PayPal account so that he instead uses his credit card to pay for the reservation, then PDT is inoperative (why this is unimaginable). 我的理解是,如果客户没有PayPal帐户,而是使用信用卡来支付预订费用,那么PDT将无法正常工作(这是无法想象的)。 What then does PayPal do so far as honoring the "return" URL? 那么,PayPal在遵守“返回” URL方面又做了什么呢? Does PayPal ignore it entirely or does it still return to that location but without passing the "tx' parameter? In the sandbox environment, of course, you always have a PayPal account and I am obviously unable to turn on PDT in my production environment production just to see what happens when one uses a credit card to make a payment, hence my post. However, I did specify in the sandbox that I wanted to use my (dummy) credit card to pay for the reservation and the "return" URL was invoked with the "tx" parameter. This was perplexing. So when PayPal says that PDT is not meant to be used with credit cards, will PDT work anyway as long as the customer is logged on to his PayPal account or is this just a peculiarity of the sandbox? PayPal会完全忽略它还是返回到该位置但没有传递“ tx”参数?在沙盒环境中,当然,您始终拥有一个PayPal帐户,而我显然无法在生产环境产品中打开PDT只是为了了解使用信用卡付款时会发生什么情况,因此查看了我的帖子。但是,我确实在沙盒中指定了我想使用(虚拟)信用卡来支付预订和“返回” URL是用“ tx”参数调用的,这很令人困惑。 因此,当PayPal表示PDT不适用于信用卡时,只要客户登录到他的PayPal帐户,PDT仍然可以正常工作吗?沙盒的特殊性?

I am in the opposite position here, I have PDT implemented, but because the auto return doesn't work for my users without Paypal accounts, I am looking into adding IPN to my site to supplement PDT. 我在相反的位置,已经实现了PDT,但是由于没有Paypal帐户的用户无法使用自动返回功能,因此我正在考虑将IPN添加到我的站点中以补充PDT。

As I said, auto return does not work for customers/users who do not log into a PayPal account to make a payment. 正如我所说,自动退货不适用于未登录PayPal帐户进行付款的客户/用户。 They can still make a payment if you have the "PayPal Account Optional" feature turned on in your Website Payment Preferences. 如果您在“网站付款首选项”中启用了“可选的PayPal帐户”功能,他们仍然可以付款。 They are given a link to your specified return page after their payment to return to your site, but are not automatically returned, so effectively, PDT doesn't work unless the user manually returns to your site (to the appropriate page) to initiate the PDT process. 付款后,他们会获得指向您指定退货页面的链接,以返回您的网站,但不会自动退回,因此,除非用户手动返回您的网站(进入适当的页面)以启动PDT,否则PDT无效。 PDT过程。 I have had problems with users not returning which prevents my registration process from completing, which is why I'm also going to be adding IPN. 我遇到了用户不返回的问题,这阻碍了我的注册过程的完成,这就是为什么我还要添加IPN。

PDT works with credit card payments as long as the user returns or is returned to your site after the payment to initiate PDT. 只要用户返回或在付款后返回您的网站以启动PDT,PDT便可以使用信用卡付款。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM