0

I'm developing a new package to help me use the famous payment gateway Cielo through omnipay

But I have a few questions, from seeing another omnipay implementations I didn't found the answer for:

  • Can I use this Cielo's library or I need to build everything by my own?

  • Cielo has credit card payments. The question is, how do I recognize the card payment network? Is there a correct way or I can create my own flags for development use?

That's all for now, thank you!

Rômulo M. Farias
  • 1,483
  • 1
  • 15
  • 29

1 Answers1

1

Question 1:

It is recommended that you interface with their API directly instead of using a wrapper library. They have a REST API/web service here (English docs for those interested).

From a brief look it seems a bit like Stripe so omnipay-stripe might be a good place to start.

Unlike Stripe, Cielo seems to support 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

Question 2:

Omnipay Card object supports detecting a card brand using regex based on the number you provide when creating the object.

You can even add your own brand definitions to the list, alternatively you could extend Card.php and implement your own default list.

cfreear
  • 1,855
  • 2
  • 19
  • 25