I've made the change to this file to remove the currency symbols in pricing related PayPal parameters. Now I need to deploy that change.
The file I changed specifically is \admin\Sales\PayPalSubscription.aspx.cs.
The PayPalSubscription.ascx denotes this as a CodeBehind not CodeFile:
<%@ Page language="vb" AutoEventWireup="false" Explicit="True" Inherits="Incite.Modules.MetalQuick.PayPalSubscription" CodeBehind="PayPalSubscription.aspx.cs" %>
Thanks in advance!
Yes, I was referring to a core DNN module that no longer works with PayPal. Specifically the problem is the code currently uses these variables to pass as the subscription amounts, and they include currency symbols, which no longer is allowed per paypal. As such, I had to add the .Replace("$", String.Empty) to remove the currency symbol (well actually I guess I should just remove the enFormat formatting in case I have non-US signups...but anyway...
Dim strService As String = String.Format(enFormat.NumberFormat, "{0:#####0.00}", objRole.ServiceFee).Replace("$", String.Empty) Dim strTrial As String = String.Format(enFormat.NumberFormat, "{0:#####0.00}", objRole.TrialFee).Replace("$", String.Empty)
And the amount in the URL is being set to the strService string, which includes the currency symbol
strPayPalURL += "&a1=" & HTTPPOSTEncode(strTrial) strPayPalURL += "&a3=" & HTTPPOSTEncode(strService)
But I found that I did change the DNN core file to wire up to my own copy of the file that is in my custom module. Which I do have the ability to rebuild and deploy to our DNN 6.1.3 site:
<%@ Page language="vb" AutoEventWireup="false" Explicit="True" Inherits="MyCompany.Modules.MyModule.PayPalSubscription" CodeBehind="PayPalSubscription.aspx.vb" %>
Which I did, and am all set now. This was a very old custom module that I haven't worked on in years, so I had to find my way around again :)
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.