简体   繁体   English

贝宝定期付款-如何防止重复?

[英]Paypal Recurring Payments - How to prevent duplicates?

So I've been using paypal recurring payments for about a year now, and for the most part it works well (with IPN verification after payment goes through, etc...) 因此,我已经使用贝宝(Paypal)定期付款大约一年了,并且在大多数情况下都可以正常使用(付款完成后可以进行IPN验证,等等)。

One issue I have run into is sometimes my customers will set up multiple payment profiles, which I definitely don't want them to do. 我遇到的一个问题是,有时我的客户会设置多个付款资料,我绝对不希望他们这样做。 Then I have to go in + refund payments and cancel additional profiles. 然后,我必须输入+退款并取消其他个人资料。

I was curious if anyone had any suggestions to prevent users from doing this, or WHERE I should prevent this from occurring. 我很好奇是否有人建议阻止用户执行此操作,或者我应该阻止这种情况的发生。

After the IPN notification hits my server, users can't purchase again, but sometimes this can take 30 seconds, or an hour. IPN通知到达我的服务器后,用户无法再次购买,但有时可能需要30秒钟或一个小时。 So then my user goes back in thinking it didn't go through and purchases again. 因此,我的用户回想起它没有通过并再次购买。

My process is pretty much this: 我的过程几乎是这样的:

Page 1 (user selects options)
  Paypal API: SetExpressCheckout 
Page 2 (user goes to paypal, logs in, accepts agreement) 
Page 3 (I create the agreement)
  Paypal API: GetExpressCheckoutDetails
  Paypal API: CreateRecurringPaymentsProfile

I would think somewhere on Page 3 I should do a check, but I'm not 100% sure HOW I should go about it. 我认为应该在第3页上的某处进行检查,但是我不确定100%应该如何去做。 Simply make an association w/PayerID they they tried to purchase something here then prevent it ongoing? 只需建立一个带有PayerID的关联,他们就尝试在这里购买商品,然后阻止其继续进行?

What do people recommend? 人们推荐什么?

Thanks! 谢谢!

After creating the first recurring payment profile, in the response you will get a profile id and a profile status which should be 'ActiveProfile'. 创建第一个定期付款配置文件后,在响应中,您将获得一个配置文件ID和一个配置文件状态,该状态应为“ ActiveProfile”。 I would recommend that you save it, and do a check before he selects any subscription(or product) again on Page 1. 我建议您保存它,并在他再次选择第1页上的任何订阅(或产品)之前进行检查。

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

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