Process payment before return - Payment Module

Fra Ukendt
Member since dec. -0001

Hi all,

I'm working in an Authorize.net payment module and I have a question about the transfer() method.

According to the documentation I have to return an array with the URL and method to make LiteCart sending the request to the Authorizet.net, but the provider already provides an interesting SDK I already worked with, then I'd like to send the request by myself and not by LiteCart.

In others words, inside the transfer() method I'd like to process the payment myself (sending the request) and send the results to the check()method.

Should I return a GET method with a fake URL in that array?

Thanks, JG

tim
Founder
Fra Sweden
Member since maj 2013
tim

If you send the request just perform your request within transfer() and don't return anything. The return data is only necessary if you want to send the user to a third party payment window.

Fra Ukendt
Member since dec. -0001

Hm thanks Tim, good call. That worked like expected. Thanks!

-- JG

tim
Founder
Fra Sweden
Member since maj 2013
tim

:) Have you ever stumbled upon a platform with a simplier way of constructing a payment module?

Fra Ukendt
Member since dec. -0001

Yep, it's very easy. Just transfer() and verify() method and everything is working. Good job ;-)

This thread has been closed due to long inactivity. Posting to it is not possible.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.