Process payment before return - Payment Module

Depuis Inconnu
Membre depuis déc. -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
Depuis Sweden
Membre depuis mai 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.

Depuis Inconnu
Membre depuis déc. -0001

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

-- JG

tim
Founder
Depuis Sweden
Membre depuis mai 2013
tim

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

Depuis Inconnu
Membre depuis déc. -0001

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

Ce fil de discussion a été fermé en raison d'une longue inactivité. Il n'est pas possible de publier dessus.
Ce site n'utilise aucun cookie ni aucune technologie de suivi tierce. Nous pensons pouvoir faire mieux que les autres et nous nous soucions vraiment de votre vie privée.