Magento 多个 Authorize.net 网关
我见过这个关于货币类型的问题,但我要问的是如何在同一商店为不同的信用卡类型配置第二个 Authorize.net 帐户。因此,我们希望一些信用卡使用第一个主 Authorize.net 网关,而其他信用卡使用辅助 Authorize.net 帐户,以便付款可以路由到两个不同的银行帐户。这是为了和解的目的,也是一种约束;无法修改。
我认为我需要做的就是弄清楚订单提交后(但在通过 API 发送到 Authorize.net 之前)它是什么卡类型,以了解要传递给 API 的凭据,但是我不确定在哪里添加此代码,或者添加它的最佳方式。
任何见解或建议将不胜感激。
I've seen this question asked with regard to currency type, but what I am asking is how to configure a second Authorize.net account on the same store for a different credit card type. So, we want some credit cards to use the first main Authorize.net gateway, but the others to use the secondary Authorize.net account so that the payments can be routed into two different bank accounts. This is for purposes of reconciliation and is a constraint; can't be modified.
I'm figuring that all I need to do is figure out once the order has been submitted (but before it has been sent via API to Authorize.net) which card type it is, to know which credentials to pass to the API, but I'm unsure as to where to add this code, or the best way in which to add it.
Any insight or advice would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认情况下,无法完成此操作,因此您需要使用一些自定义代码。具体来说,重写 Authnet 支付类
Mage_Paygate_Model_Authorizenet
:在该函数中,在第 277 行,执行以下代码来设置 Authnet 帐户:
相反,您需要按照以下方式进行操作:
要完成此操作,您还需要在后端创建新选项以加密形式保存凭据。希望有帮助!
谢谢,
乔
By default, there is no way to accomplish this, so you'll need to use some custom code. Specifically, override the Authnet payment class
Mage_Paygate_Model_Authorizenet
:In that function, on line 277 for me, the following code is executed to set the Authnet account:
Instead, you want something along these lines:
To accomplish this, you'll also want to create new options in the backend to hold the credentials in an encrypted form. Hope that helps!
Thanks,
Joe