Integrations: Return vs Notification

75 views
Skip to first unread message

Michael Noack

unread,
May 13, 2013, 9:06:44 AM5/13/13
to activem...@googlegroups.com
I'm looking at contributing the NAB Transact Direct Post Integration for Active Merchant (not to be confused with the NAB Transact XML Gateway which has already been contributed to Active Merchant)


Integrations aren't the most up-to-date and well documented of things and it seems in most Integrations people are using Notification's

But there's a Return class used by some as well and they seem similar.

What is the difference? Is one to represent the users browser being "returned" to your site with some params, and notification representing the gateway "notifying" your server directly? From experience most/all gateways seem to return the user to a URL and some also send a message direct to your server.

Some gateways (e.g. 2checkout) don't seem to be doing it this way, e.g. 2checkout has a notification class but that is a integration where the user is redirected back.



Thank You


Nathaniel Talbott

unread,
May 13, 2013, 10:47:49 AM5/13/13
to activem...@googlegroups.com
So your distinction is correct: a Return represents the customer's browser having been "returned" to your site, and a Notification represents a callback "notification" from the gateway directly to your app.

There are two reasons ActiveMerchant support both:

1) Some gateways only do one OR the other, not both. So we need to support both modes of communication.

2) Even when both are supported, the Return provides more immediacy but is less reliable. Notifications are potentially delayed, but delivery is (or at least should be) guaranteed.

So if a gateway supports both, it's generally advisable to implement both.

--
Nathaniel





--
You received this message because you are subscribed to the Google Groups "Active Merchant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to activemerchan...@googlegroups.com.
To post to this group, send email to activem...@googlegroups.com.
Visit this group at http://groups.google.com/group/activemerchant?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Michael Noack

unread,
Jul 16, 2013, 6:29:47 PM7/16/13
to activem...@googlegroups.com
We haven't had the time, but if anyone wants to contribute a NAB Transact Direct Post gateway to ActiveMerchant we've done a lot of the base work in our own system.
The relevant tests/classes are at https://gist.github.com/mnoack/5bc984e99b10b37d37a3
Reply all
Reply to author
Forward
0 new messages