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

New Post: Trying to use Authorize.net with dnn 7.2.2

$
0
0
First, I'd like to apologize for how poorly worded my original post was. After two days of trying to figure out how to get the Auth.Net payment gateway working, I had enough and went out for drinks. So note to self, don't drink and post.

Secondly, I'd like to extend a thanks to the NB_Store team and Oliver Hine for contributing some great modules to the DNN community. I've also used Hine's Flickr module which is really cool, BTW.

After getting some sleep, I started day 3 and believe I have it working with 7.2.2 using friendly URLs

I modified GatewayAuthorizeNet.vb "SetBankRemotePost" to pass in the additional buyer information to streamline the purchase process and negate the need for the buyer to re-enter their billing info using the SIM method:
                    RPost.Add("x_first_name", objAdressInfo.AddressName)
                    RPost.Add("x_last_name", objAdressInfo.AddressName2)
                    If objAdressInfo.Address1.Length > 0 Then
                        RPost.Add("x_address", objAdressInfo.Address2 & ", " & objAdressInfo.Address1)
                    Else
                        RPost.Add("x_address", objAdressInfo.Address2)
                    End If

                    RPost.Add("x_city", objAdressInfo.City)
                    RPost.Add("x_email", oInfo.Email)
                    RPost.Add("x_phone", objAdressInfo.Phone1)
                    RPost.Add("x_state", objAdressInfo.RegionCode)
                    RPost.Add("x_zip", objAdressInfo.PostalCode)
                    RPost.Add("x_country", "USA")

Following the directions, I created a blank skin and added a page named "Transaction" under my Store/Checkout path. I added a new module for NB_StoreCheckout to the content pane.

From within Authorize.net, I set the account to test mode and configured my gateway as

<root>
<GatewayURL>https://secure.authorize.net/gateway/transact.dll>
<ButtonImageURL>/portals/0/images/authorize_net.jpg</ButtonImageURL>
<TransactionKey>removed</TransactionKey>
<LoginId>removed</LoginId>
<ReturnURL>
http://veganheights.com/theSTORE/Checkout/Transaction/stg/4/>
</root>

I restyled the paymentOK.msg to be a little more professional and the return link is inserted as:
http://veganheights.com/theSTORE/checkout/stg/5/ordID/[ORDERID]/x_response_code/[x_response_code]

Apparently, you must leave off the "/Default.aspx" for the controls and communications to work properly.

I appreciate the work involved with creating these tools after having to make some modifications to the module code to get them to suit my needs. So thank you once again to the NB_Store team for making this available and providing the source code so people like myself can modify the code as needed to fit particular needs. Awesome work.

Viewing all articles
Browse latest Browse all 4081

Latest Images

Trending Articles



Latest Images

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