从migs付款中捕获错误消息

马尔基迈克

我为网站创建的MIGS付款工具出现问题。当用户在migs服务器上遇到错误(付款未成功运行)时,如何知道它是否遇到此类错误?

这些是我使用的参数(将我的链接替换为示例链接):

"vpc_Amount" => ($amount*100),
                 "vpc_Command" => 'pay',
                 "vpc_Locale" => 'en',// order id
                 "vpc_MerchTxnRef" => $session_id,
                 "vpc_Merchant" => $merchantId,
                 "vpc_OrderInfo" => "Test order",
                 "vpc_ReturnURL" => "http://mywebsite.com/returnUrL",
             "vpc_Version" => '1'

我怎么知道它是否失败,因为付款成功或付款失败都会发生,因此它会返回相同的returnURL。我可以设置另一个链接,如果交易失败,它将链接到那里?

马尔基迈克

如VPC手册中所述-“使用在vpc_ReturnURL字段中指定的Internet浏览器重定向将事务响应返回到您的网站。DR将始终具有安全的哈希值供在线商店检查数据完整性。”

基本上,它$GET在其中抛出一个名为vpc_TxnResponseCode变量:

The merchant application receipting function needs to be able to calculate the secure hash signature in the Transaction Response to determine if the signature received is valid for the receipt data. It has to handle:
• Incorrect secure hash signatures
• Successful transactions
• If vpc_TxnResponseCode code is equal to '0' then the transaction was completed successfully and you can display a receipt to the cardholder.
• Declined transactions
• If vpc_TxnResponseCode is equal to '1', '2', '3', '4', or '5' the transaction has been declined and this needs to be conveyed back to the cardholder.
• Error Conditions –
• If vpc_TxnResponseCode equals '7' or '8' an error has occurred
• Other values may also indicate an error has occurred
• Further details for error conditions can be gathered by examining the vpc_Message field so a decision can be made as to the next step.
All four of these conditions are responses that can be returned from the Virtual Payment Client.

我希望这对其他也在使用MIGS开发应用程序的人有所帮助。我很幸运,一个朋友告诉我我正在寻找有关MIGS答复的答案,因此能够给我这个资源。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Paypal错误消息“买方无法付款。” 尝试多次捕获时

来自分类Dev

Rails:捕获JavaScript中的错误消息

来自分类Dev

需要帮助在PowerShell中捕获错误消息

来自分类Dev

如何在LotusScript中捕获错误消息

来自分类Dev

捕获QML错误消息

来自分类Dev

捕获FTP错误消息

来自分类Dev

捕获QML错误消息

来自分类Dev

如何从psutil中捕获错误代码或错误消息

来自分类Dev

在步骤功能中捕获错误时向sqs发送消息

来自分类Dev

尝试捕获块中的C#错误显示消息

来自分类Dev

如何捕获终端中显示的量角器错误消息

来自分类Dev

在 Angular 的 rxjs 订阅方法中捕获错误消息文本

来自分类Dev

尽管付款成功转移,贝宝仍显示错误消息

来自分类Dev

将消息,警告和错误捕获到R中的Web API中

来自分类Dev

如何捕获命令抛出的错误消息?

来自分类Dev

致命错误:消息未捕获的异常“ PDOException”

来自分类Dev

尝试捕获以显示输入错误消息

来自分类Dev

致命错误:消息未捕获的异常“ PDOException”

来自分类Dev

尝试/捕获不显示异常错误消息

来自分类Dev

消息通知错误捕获 admin-on-rest

来自分类Dev

tcl中的捕获错误

来自分类Dev

如何在Inno Setup中捕获bat文件的错误消息以删除文件?

来自分类Dev

在 python cx_Oracle DatabaseError DPI-1004 中捕获:无法获取错误消息

来自分类Dev

捕获shopify付款响应

来自分类Dev

Bluemix中的错误消息

来自分类Dev

如何捕获所有错误并显示错误消息

来自分类Dev

使用Flutter,如何在单独的登录页面小部件中显示AuthService类中捕获的Firebase Auth错误消息?

来自分类Dev

在特定文本之后捕获字符中的消息

来自分类Dev

如何在python中捕获异常消息?

Related 相关文章

热门标签

归档