Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: EventInterface - Catching orders that are paid for.

$
0
0

I have created an implementation of the EventInterface to add some processing to the end of completed orders.

From reading the source of CheckOut.ascx.vb it seems like I need to handle both the AutoResponse and theCompletedOrder events to have the best chance of knowing about all successfully paid orders. The logic as far as I can tell is is:

  • Notifications such as PayPal's IPN will trigger case 4 which fires the AutoResponseevent only. This may not happen for technical reasons or may fire after the user has already returned to the site.
  • If the user follows the link from the payment provider back to the site they will trigger case 5 which fires theCompletedOrder event. This may not happen if the user gets lost for any reason.

Is this correct? My plan is to create my own OrderPaid method to do the processing and make sure that it is called only once but can be called by either event. If both of these events fail I understand there's not much that can be done.

Unfortunately the AutoResponse event does not provide the order ID so the only way I can see to use it is to figure out which payment provider was used and use it's specific logic to try and decode it from the request.

Is there a better way to determine the order being processed by AutoResponse, regardless of which payment provider was used?

Thanks


Viewing all articles
Browse latest Browse all 4081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>