问题标签 [mastercard]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1040 浏览

asp.net-mvc - 支付网关返回错误 HTTP 状态 - 400

我正在尝试将我的 MVC 项目重定向到支付 migs 支付网关。这是我的代码生成的 URL。(出于安全原因,我用“值”这个词更改了值)

https://migs.mastercard.com.au/vpcpay?vpc_AccessCode=value&vpc_Amount=100&vpc_Command=pay&vpc_Locale=en&vpc_Merchant=TESTvalue&vpc_MerchTxnRef=value160426&vpc_OrderInfo=value&vpc_ReturnURL=http%3a%2f%2fgoogle.com&vpc_Version=1&vpc_SecureHash=6d84a03c6c41f06e945f618657b4a93a

我想知道这个生成的 URL 是否有错误。提前致谢!

0 投票
1 回答
7152 浏览

regex - 应该使用什么模式来验证 2 BIN 万事达卡号码

“2”系列 BIN 万事达卡号码将于 2016 年 10 月开始。应该使用什么正则表达式模式来验证它们。今天,我们对以 5 开头的万事达卡使用以下模式:

0 投票
1 回答
1277 浏览

nfc - 使用 Token 创建 NFC 标签支付

Visa和 Mastercard 正在研究卡标记化,我想知道是否可以将此标记存储在 NFC 标签上(如钥匙扣)来执行非接触式支付?

您认为将令牌放在 NFC 标签上就足够了,还是必须进行包装?

它会像签证戒指一样工作。

0 投票
1 回答
82 浏览

oauth - 导致 OAuth 1.0 正文哈希错误的国际字符

当 XML Web 服务请求的 POST 正文包含国际字符时,出现正文哈希不匹配。

根据我的阅读,听起来必须在计算 OAuth 正文哈希之前对 POST 正文中的国际字符进行编码。“CAF%c3%89”的 CAFÉ 的 UTF-8 似乎不适用于 MasterCard Match Web 服务。我在使用我们正在使用的工具(iWay 服务管理器)重新解释“CAFÉ”时遇到问题 回到“咖啡厅”。在我弄清楚如何在 OAuth 步骤之前插入编码器之前,我希望与处理过这个问题的人确认一下。

在具有国际字符的 POST 正文上使用的正确编码是什么(或者我的问题可能是其他问题)?

0 投票
1 回答
4598 浏览

paypal - 使用 PHP 在网站中集成万事达卡支付

我有一个网站,我成功地实现了 Paypal 支付集成现在我想实现万事达卡支付集成,但我不知道我应该从哪里开始以及我使用了哪个 API 等等。

我浏览了他们的网站,但我没有正确理解,比如我应该从哪里开始以及接受付款的要求是什么

0 投票
1 回答
73 浏览

c# - 商家的万事达卡欺诈评分未添加 sdk

我想调用 Fraud Scoring for Merchants api。所以我使用 nuget intall MasterCard-FraudScoring。我项目的框架 4.5。vs2013 。当我使用万事达卡时,错误是找不到类型或命名空间名称“万事达卡”(它是否缺少使用指令或程序集引用?)我将框架从 2.0 更改为 4.5。并更改文件目录的引用。它仍然不起作用。您可以看到对象浏览器存在该方法。请帮助我,谢谢。

0 投票
1 回答
6725 浏览

emv - VerifoneEMV:第二次生成交流电?

我正在使用 emv Module 6.2 处理 MasterCard Acquisition 项目。我可以成功生成 1st AC 并从中正确检索标签,但在传输给发行人之前,我被要求在我的 ICC 数据中包含 2nd AC 的结果。

如何生成第二个 AC 并将其包含在我的字段 55 中?

0 投票
1 回答
170 浏览

payment-gateway - 防止篡改 JavaScript 值

我正在为网站实施万事达卡支付网关。在官方指南中,JavaScript 用于传递要收取的金额,以及钱流向哪个商家。

看起来用户可能会更改任何值并让网关向我们返回成功消息。

即使是成功消息似乎也没有太多需要重新验证的细节。

除了以某种方式将 JavaScript 转换为服务器端代码之外,我想不出一种方法来防止这种情况发生。

官方指南: https ://ap-gateway.mastercard.com/api/documentation/integrationGuidelines/hostedCheckout/integrationModelHostedCheckout.html

0 投票
2 回答
3860 浏览

payment - EMV:第二次生成 AC 结果导致 6985 SW_Error 访问条件不满足

我正在做一些 EMV 测试,希望有人能对我所看到的有所了解。我正在运行适用于我们解决方案的万事达卡 M-TIP 测试,我看到了一些意想不到的结果。使用 M-TIP 50 测试卡运行 M-TIP 50 测试(1、2、3)时,我在第二个 GENERATE_AC 命令上遇到错误。我们的解决方案在技术上定义为具有在线功能的离线,但我们目前正在完全离线的环境中进行测试。

我花了很多时间阅读 EMV 书籍并搜索 Google,但我仍然不明白为什么它会返回 6985。此时我能想到的最好的猜测是它与 CDA (其中在这个过程中也应该发生?)

我已经包含了第一个和第二个 GEN_AC 请求和响应,以显示正在发生的事情。如果有人可以提供有关正在发生的事情或出了什么问题的见解,我将不胜感激。

在此处输入图像描述

0 投票
2 回答
8517 浏览

javascript - MasterCard Payment Gateway API Single Page App

I am using the Mastercard Payment Gateway API for Hosted Session: Mastercard Payment Gateway API Documentation

The integration works as expected on the first load but this has been written into a single page app. When the user goes back a page via the breadcrumbs (using javascript hash to load 'pages'). When the user then returns to the payment 'page' the Mastercard payment api should then be triggered a second time, this does not happen.

The documentation doesn't say if PaymentSession.configure({}) can be sent more than once but I am assuming that is my issue.

I have tried to 'reset' the PaymentSession and reload the session.js javascript but so far have not been able to get this particular case working. I was wondering if there is a way to 'reset' the configure() or if there was another way to approach this?

I would rather not copy and paste my code in as it's a payment integration although it's pretty much line for line the same as the example on the documentation. I would also say that the issue is unrelated my personal code and more towards how Mastercard's Payment API works and the fact that my website is a single page rather than only loading session.js when needed.