支付网关可能存在的问题 [英] Payment gateway possible issues

查看:498
本文介绍了支付网关可能存在的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序(PayPal和DataTrans的)实现2支付网关。在这两个网关支付发生在门户网站即用户被重定向到他支付,然后重定向回我们的网站支付网关的网站。
我已经确定的一些情形出现在整个付款流程的一些问题。例如。

I have implemented 2 payment gateways in my app (paypal and datatrans). In both gateways payment happens on gateway site i.e. user is redirected to payment gateway site where he pays and then redirected back to our site. I have identified some scenarios where there is some issue in entire payment flow. E.g.


  • 丢失后付款的互联网连接,所以为了不放在钱却得到了来自用户的账户中扣除

  • 贝宝发送的响应,但应用了异常,因此用户没有得到确认

  • 双付款到期击中刷新按钮,当交易正在进行中

我想知道什么是标准异常应支付网关的集成处理。
贝宝的任何例子会帮我很多,我用asp.net的MVC 3的感谢。

I would like to know what are standard exceptions should be handled in payment gateway integration. Any example with paypal would help me lot, I use asp.net mvc 3. thanks.

推荐答案

要避免他们,你需要为每一笔订单创建一个唯一的ID后,从您的网站贝宝或其他站点的用户的举动,必须是只读的,如果用户返回到您的网站后失败或该ID其他原因,并要求重新排序相同的车,你必须创建一个新的车,和一个新的订单ID。

Double payment.

To avoid them you need to create a unique ID for every order, after the user move from your site to the paypal or other site, this ID must be read-only, and if the user return to your site after fail or other reason, and ask to re-order the same cart, you must create a new cart, and a new order ID.

对于每一个订单ID,贝宝等网站只允许一个支付(或一门不及格)。

For every order id, paypal and other sites allow only one payment (or one fail).

贝宝有3种方式与您取得联系。

Paypal have 3 ways that contact with your.


  1. IPN

  2. PDT

  3. 电子邮件。

上的人是你从用户的付款后返回获取信息,另一种方法是,贝宝与您沟通,并向您发送支付信息,并最终你会得到电子邮件。

The one is that you get information from the return of the user after the payment, the other method is that paypal communicate with you and send you the payment informations, and final you get email.

在所有失败极少数情况下,用户会告诉你过了些日子,他没有得到他的命令。

In the rare case that all fails, user will inform you after some days that he did not get his order.

实用他们从来没有失败所有的人。其实他们从来没有失败的任何人。

Practical they never fail all of them. Actually they never fail any of them.

好吧有时候你无法避免的错误,所以监视你的支付和记录任何可能出现的错误进行修复。经过7年的08104732,我依然监测他们的问题,欺诈,问题,新认为等,仍然让一些小调整时有发生。

Well some times you can not avoid bugs, so monitor your payments and log any possible errors to fix it. After 7 years of payments with paypal I still monitor them for problems, fraud, issues, new thinks etc, and still make some small adjustments time to time.

这篇关于支付网关可能存在的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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