如何将 Authorize.Net ARB 和 AIM 集成在一起

发布于 2024-09-14 16:04:43 字数 368 浏览 7 评论 0原文

我想使用 Rails 将 Authorized.Net ARB 和 AIM 集成在一起。

实际上,我希望用户今天注册时即时付款,并且我希望订阅今天开始。为此,我想通过 AIM API 收取他们的第一笔付款。如果 AIM 交易成功,那么只有我会创建 ARB。我为我的 ARB 编写代码工作完美,但是当我为 AIM 编写代码时,它给出错误此交易已被拒绝但是当我创建一个ARB 使用同一张卡,效果非常好。我真的不知道该怎么做。

另外我想知道当处理未来的预定付款时订阅被拒绝。Authorize.Net 取消了该订阅或在第二天重试?如果第二天再次尝试,它会尝试多少次?我可以使用 SILENT POST 检查或编写代码,在 5 次后订阅应被取消。

I want to Integrate Authorized.Net ARB and AIM together using rails.

Actually, I want Instant payment when user signs up today and I want the subscription to start today. for this i want to charge their first payment via the AIM API. and if AIM tranaction get succeed then only i will create ARB.I write code for both my ARB works perfect but when i write code for the AIM it gives error This transaction has been declined but when i create an ARB with same card it works perfectly.I really don't know how to go for this.

Also I want to know when subscription is declined when processing a future scheduled payment is Authorize.Net cancelled that Subscription or try again on next day?if it try next day again how many times it will try? Can I check or write a code using SILENT POST that after 5 times it's subscription should get cancelled.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世界如花海般美丽 2024-09-21 16:04:43

创建订阅时,ARB 不会对信用卡进行验证(除了验证该卡是否具有有效的卡号格式、格式正确的到期日期等,并且在安排第一次付款之前不会到期)。因此,您必须首先使用 AIM 通过运行交易或执行 AUTH_ONLY 来验证卡,然后如果成功则与 ARB 建立订阅。基本上,一旦您收到 AIM 的拒绝,您的脚本应该中止并通知用户错误,并让他们使用新的信用卡重试。

如果订阅付款被拒绝,订阅将被暂停。如果您在下一次计划付款到期之前更新订阅,则错过的付款将自动再次尝试,如果成功,订阅将再次激活。

目前无法通过任何 API 来检查订阅的状态。目前只能通过控制面板来完成。这是他们的待办事项列表,因此将来可能会发生变化。

更新 2011-12-01

ARB API 现在提供 ARBGetSubscriptionStatusRequest 调用以获取订阅的状态。

ARB performs no validation of a credit card when a subscription is created (other then validating the card has a valid card number format, properly formatted expiration date, etc and won't expire before the first payment is scheduled for). Therefore you have to use AIM to validate the card first, either by running a transaction or performing an AUTH_ONLY, and then if it is successful establish the subscription with ARB. Basically once you get that decline from AIM your script should abort and notify the user of the error and have them try again with a new credit card.

If a subscription payment is declined the subscription will be suspended. If you update the subscription before the next scheduled payment is due the missed payment will automatically be attempted again and if successful the subscription will be active again.

There is no way through any current API to check the status of a subscription. It currently can only be done through the control panel. It is on their to do list so this may change in the future.

UPDATE 2011-12-01

The ARB API now offers the ARBGetSubscriptionStatusRequest call to get a subscription's status.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文