Paypal Website Payments Pro - Recurring Payment Profile - 负面测试 - 如何触发

标签 paypal paypal-ipn paypal-sandbox

我尝试使用 Website Payments Pro 模式从 CiviCRM 建立定期付款。 正面测试完美无缺,我看到了创建的付款资料,我收到了 IPN 通知,非常完美。

我在配置文件中启用了负面测试,我尝试了两种方法来触发负面案例 - 当初始付款失败时:

PayPal recurring payments negative testing (https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions/ - 金额为 106.10 $)

IPN 错误代码:https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNTesting/ - 31.22

在这两种情况下,付款都已成功完成。

我联系了 paypal 支持,他们的最佳答案是:

"你可以用接近到期日来测试。通常到期日快到时,PayPal会通知买家更换信用卡。但如果买家忽略通知,就会导致交易失败。"

即使有效,我也不能接受,我可能需要等待 1 个月才能看到结果。 Paypal 不允许为定期付款配置文件设置已经过期的卡。

您是否找到了测试阴性结果的有效方法?也许使用 IPN 模拟器?但是我怎么能确定 Send Paypal Recurring Payments commands with IPN Simulator包含 PayPal 目前用于我的帐户类型的正确消息?

最佳答案

这是如何进行的:忘掉沙箱吧,它还不够成熟。使用production/live paypal账户,将recurring fee降低到0.5$,从Civicrm启动recurring payment,等待首付款,你有成功的案例,然后让你的银行将POS limit设置为0$,然后下一次定期付款将失败。这是测试负面案例的一种完全可靠的方法。不要忘记先设置您的 IPN ( https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/ )。你有什么更好的方法吗?

关于Paypal Website Payments Pro - Recurring Payment Profile - 负面测试 - 如何触发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24956268/

相关文章:

c# - Paypal 快速结账 : Notes not being returned

Paypal 自适应支付完成,尽管用户没有账户

ruby-on-rails - Paypal IPN 发送电子邮件

grails - Paypal Sandbox 通知仅在用户单击返回按钮后发生

angular - 如何从 HTML 值更新 Angular 中 .ts 文件中的值?

php - 带有价格下拉表的 Paypal 多个项目?

php - 即时支付通知 (IPN) 模拟器剂量工作

node.js - Paypal [错误 : ACK Failure: Security header is not valid]

Paypal 休息 API 不工作

Paypal 多币种并行支付