Omnipay 与巴西网关 Cielo 的集成
Omnipay integration with brazilian gateway Cielo
我正在开发一个新包来帮助我通过 omnipay
使用著名的支付网关 Cielo
但我有几个问题,从另一个 omnipay 实现中我没有找到答案:
我可以使用 this Cielo's library 还是我需要自己构建所有内容?
Cielo 支持信用卡付款。问题是,如何识别卡支付网络?有没有正确的方法或者我可以创建自己的标志以供开发使用?
暂时就这些,谢谢!
问题一:
建议您直接与他们的 API 交互,而不是使用包装库。他们为感兴趣的人提供 REST API/web 服务 here (English docs)。
粗略看来,它似乎有点像 Stripe,因此 omnipay-stripe 可能是一个不错的起点。
与 Stripe 不同,Cielo 似乎支持 3D Secure Authentication (English docs) so this will require a bit more work although there are a number of Omnipay gateways that also implement 3D Secure such as omnipay-realex
问题二:
Omnipay Card object supports detecting a card brand 根据您在创建对象时提供的数字使用正则表达式。
您甚至可以 add your own brand definitions to the list,或者您可以扩展 Card.php 并实现您自己的默认列表。
我正在开发一个新包来帮助我通过 omnipay
使用著名的支付网关 Cielo但我有几个问题,从另一个 omnipay 实现中我没有找到答案:
我可以使用 this Cielo's library 还是我需要自己构建所有内容?
Cielo 支持信用卡付款。问题是,如何识别卡支付网络?有没有正确的方法或者我可以创建自己的标志以供开发使用?
暂时就这些,谢谢!
问题一:
建议您直接与他们的 API 交互,而不是使用包装库。他们为感兴趣的人提供 REST API/web 服务 here (English docs)。
粗略看来,它似乎有点像 Stripe,因此 omnipay-stripe 可能是一个不错的起点。
与 Stripe 不同,Cielo 似乎支持 3D Secure Authentication (English docs) so this will require a bit more work although there are a number of Omnipay gateways that also implement 3D Secure such as omnipay-realex
问题二:
Omnipay Card object supports detecting a card brand 根据您在创建对象时提供的数字使用正则表达式。
您甚至可以 add your own brand definitions to the list,或者您可以扩展 Card.php 并实现您自己的默认列表。