Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreNB Store - use with Affiliate tracking software IDevAffiliate?NB Store - use with Affiliate tracking software IDevAffiliate?
Previous
 
Next
New Post
12/11/2009 10:42 AM
 

Hi,

Here's my question - our customer has been happily using NB Store for many months.  She has recently purchased web-based software that promises to track "affiliate" purchases from her store (for calculating commissions for consultants who have that customer).  The software company is IDevAffiliate, http://www.idevdirect.com.  This company promises integration with many different kinds of shopping carts.

She has asked me to set up the integration between her NB Store cart (with PayPal, perhaps) and this separate affiliate software.

IDevAffiliate supposedly works with PayPal payment systems, and only requires that I add a "tracking pixel" to an asp.net .aspx page with the "Buy Now" PayPal button - here are the two lines they say I need to add to a standard.aspx page tp make their software work:

<input type="hidden" name="notify_url" value="http://www.settoateaaffiliates.com/paypal_ipn_buynow.php">
<input type="hidden" name="custom" value="<%=Request.ServerVariables("REMOTE_ADDR")%>">

My question - is there a way to add these lines to the NB Store application?  I'm not at all familiar with how NB Store is interfacing with PayPal, but while looking through the source code, I found this in the GatewayPayPal.vb page, below, from the sub "SetBankRemotePost" - looks as if you are setting the PayPal parameters there.  Can I integrate the IDevAffiliate hidden input parameters here?  Can I modify NB Store's "notify URL" parameter for use with the IDevAffililate software?  Can you recommend a better way?

Public Overrides Sub SetBankRemotePost(ByVal PortalID As Integer, ByVal OrderID As Integer, ByVal Lang As String, ByVal Request As System.Web.HttpRequest)

            Dim RPost As New RemotePost

            'test if Paypal button has been clicked
            If Not Request.form.Item("PAYPAL.x") Is Nothing Then
                Dim objSCtrl As New SettingsController
                Dim objSInfo As NB_Store_SettingsInfo
                objSInfo = objSCtrl.GetSetting(PortalID, "PayPal.gateway", "None")
                If Not objSInfo Is Nothing Then

                    Dim setParams As Hashtable = createSettingsTable(objSInfo.SettingValue)

                    Dim returnURL As String = setParams("ReturnURL")
                    Dim cancelURL As String = setParams("ReturnCancelURL")
                    Dim notifyURL As String = setParams("ReturnNotifyURL")

                    Dim payPalURL As String = setParams("paymentURL")

                    Dim PayPalID As String = setParams("PayPalID")
                    Dim PayPalCartName As String = setParams("CartName")
                    Dim PayPalButtonURL As String = setParams("ButtonImageURL")
                    Dim PayPalCurrency As String = setParams("Currency")
                    Dim PayPalMerchantLanguage As String = setParams("MerchantLanguage")

                    Dim objOCtrl As New OrderController
                    Dim oInfo As NB_Store_OrdersInfo = objOCtrl.GetOrder(OrderID)

                    If Not oInfo Is Nothing Then

                        returnURL = Replace(returnURL, "[ORDERID]", oInfo.OrderID.ToString)
                        cancelURL = Replace(cancelURL, "[ORDERID]", oInfo.OrderID.ToString)
                        notifyURL = Replace(notifyURL, "[ORDERID]", oInfo.OrderID.ToString)
                        PayPalCartName = Replace(PayPalCartName, "[CARTID]", CurrentCart.GetCurrentCart(PortalID).CartID)

                        payPalURL += "?business=" & HTTPPOSTEncode(PayPalID)
                        payPalURL += "&item_name=" & HTTPPOSTEncode(PayPalCartName)
                        payPalURL += "&item_number=" & HTTPPOSTEncode(oInfo.OrderID.ToString)
                        payPalURL += "&quantity=1"
                        payPalURL += "&custom=" & GetCurrentCulture()
                        payPalURL += "&amount=" & HTTPPOSTEncode(Replace(oInfo.CartTotal.ToString("0.00"), ",", "."))
                        payPalURL += "&shipping=" & HTTPPOSTEncode(Replace(oInfo.ShippingCost.ToString("0.00"), ",", "."))
                        payPalURL += "&tax=" & HTTPPOSTEncode(Replace(oInfo.AppliedTax.ToString("0.00"), ",", "."))
                        payPalURL += "&currency_code=" & HTTPPOSTEncode(PayPalCurrency)
                        payPalURL += "&bn=" & HTTPPOSTEncode("NB_Store")
                        payPalURL += "&return=" & HTTPPOSTEncode(returnURL)
                        payPalURL += "&cancel_return=" & HTTPPOSTEncode(cancelURL)
                        payPalURL += "&notify_url=" & HTTPPOSTEncode(notifyURL)
                        payPalURL += "&undefined_quantity=0&no_note=1&no_shipping=1"

Thank you so much for any help you can provide!

Lisa

 
New Post
12/11/2009 2:01 PM
 

for questions regarding 3rd party modules, please use the support options provided by the developer/vendor, in this case at nbstore.codeplex.com


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreNB Store - use with Affiliate tracking software IDevAffiliate?NB Store - use with Affiliate tracking software IDevAffiliate?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out