PayFlow PayPal 定期付款 EXPDATE 验证 [英] PayFlow PayPal recurring Payment EXPDATE Validation

查看:31
本文介绍了PayFlow PayPal 定期付款 EXPDATE 验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我一直在尝试验证用户信用卡的 CC 编号、CVV 编号、EXPDATE,以便在 PayFlow 中进行定期计费.主要目标是让用户只有在信用卡有效的情况下才能访问订阅产品.

Hi I have been trying to validate CC no., CVV no., EXPDATE of the users credit card for recurring billing in PayFlow. The main objective is to let the user have access to subscription products only if the credit card is valid.

我被建议在创建个人资料之前检查卡,您可以运行信用卡验证($0 授权)

I have been advised to check the card prior to creating the profile you could run a credit card verification ($0 authorization)

所以我做到了,我得到了 [RESPMSG] =>已验证

So I did it and I got [RESPMSG] => Verified

这是我的请求和响应消息:

Here's my request and response messages:

Request


Array
(
    [TRXTYPE] => A
    [TENDER] => C
    [PARTNER] => PayPal
    [USER] => XXXXX
    [PWD] => XXXXX
    [AMT] => 0
    [ACCT] => 5105105105105100
    [EXPDATE] => 1218
    [INVNUM] => PONUM1
    [VERBOSITY] => HIGH
    [BILLTOZIP] => 95031
)

Response


Array
(
    [RESULT] => 0
    [PNREF] => A11A8C1A41C0
    [RESPMSG] => Verified
    [AUTHCODE] => 992PNI
    [AVSADDR] => X
    [AVSZIP] => X
    [HOSTCODE] => A
    [PROCAVS] => U
    [TRANSTIME] => 2015-11-22 23:30:52
    [AMT] => 0.00
    [ACCT] => 5100
    [EXPDATE] => 1218
    [CARDTYPE] => 1
    [IAVS] => X
    [PREFPSMSG] => No Rules Triggered
    [POSTFPSMSG] => No Rules Triggered
)

现在我的问题是我没有提供 CVV2 以及 EXPDATE 得到验证的任何未来日期.你能解释一下这里的工作原理吗?另外我如何验证 CC、CVV 和 EXPDATE ?

Now my question is I haven't provided CVV2 and also Any future date as EXPDATE gets verified. Can you please explain how things are working here? Also how can I verify CC, CVV and EXPDATE ?

推荐答案

这只是在没有任何初始付款的情况下创建配置文件.因此,它根本不会验证卡.当然,对个人资料的第一次付款尝试会失败.

This is simply creating the profile without any initial payment. As such, it's not going to validate the card at all. Of course, the first payment attempted on the profile would fail.

如果您想在创建个人资料之前检查卡,您可以运行信用卡验证($0 授权).

If you want to check the card prior to creating the profile you could run a credit card verification ($0 authorization).

因此,请先运行卡验证,然后只有在验证成功后,您才会跟进调用以创建配置文件.

So run the card verification first, and then only if that is successful you would follow up with a call to create the profile.

请记住,如果您在沙盒中工作,则任何信用卡过期和安全代码都将被接受,只要它没有过期.这是在沙箱中完成的,以使测试变得快速而简单.

Keep in mind that if you're working in the sandbox any credit card expiration and security code will be accepted as long as it's not expired. This is done in the sandbox to make testing quick and easy.

如果您想在 API 响应中强制出现错误以便测试这些情况,请查看 PayFlow 测试文档.

If you would like to force errors in the API response so you can test those cases, take a look at the PayFlow documentation on testing.

这篇关于PayFlow PayPal 定期付款 EXPDATE 验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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