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

New Post: Third party API call on Order placement

$
0
0
This is the checkout code...
                Case "4" ' AUTO run return for bank

                    objGateway.AutoResponse(PortalId, Request)

                    If Not InternalUpdateInterface.Instance() Is Nothing Then
                        InternalUpdateInterface.Instance.AutoResponse(PortalId, Request)
                    End If

                    If Not EventInterface.Instance() Is Nothing Then
                        EventInterface.Instance.AutoResponse(PortalId, Request)
                    End If

                    'support for merchant integrated CC input.
                        If Not Session("BankHtmlRedirect") Is Nothing Then
                            If Session("BankHtmlRedirect") <> "" Then
                                Response.Redirect(EditUrl("RemotePost"))
                            End If
                        End If

                Case "5" ' completed return
                        If CurrentCart.IsCartEmpty(PortalId) Then
                            If Request.QueryString("chq") Is Nothing Then
                                objGateway.AutoResponse(PortalId, Request) ' put auto response here, for payment providers that return notify on same url as return.
                            End If
                            DisplayEmptyCart()
                        Else
                            If Not InternalUpdateInterface.Instance() Is Nothing Then
                                InternalUpdateInterface.Instance.ReturnToStore(PortalId, CurrentCart.GetCurrentCart(PortalId), GetCurrentCulture, Request)
                            End If

                            If Not (Request.QueryString("chq") Is Nothing) Then
                                CompletedChqPayment()
                            Else
                                CompletedBankPayment()
                            End If
                        End If
            End Select

these are the interfaces you need to look at......

InternalUpdateInterface
EventInterface

Depends what your gateway is doing, returning to auto notify or returning directly after payment, of course you could also change your gateway provider code to deal with the http post you need.

Dave.

Viewing all articles
Browse latest Browse all 4081

Trending Articles



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