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 ForumsStoreStorePayPal IPN BugPayPal IPN Bug
Previous
 
Next
New Post
3/9/2010 2:03 PM
 

Hi,

after hours of investigation I finally found out why PayPal IPN notifications didn't work for me.

It turned out that they way the post string for the IPN verification is being built incorrectly by the PayPalIPNParameters class.

The problem occurs when there are special characters (like German umlauts) present in the PayPal form parameters.

I could fix the problem by changing the constructor for the PayPalIPNParameters class to:

 

 

public PayPalIPNParameters(byte[] param, NameValueCollection requestForm) : base(requestForm)string strRequest = System.Text.Encoding.ASCII.GetString(param);"&cmd=_notify-validate";

The constructor must then be called as follows:

 

PayPalIPNParameters ipn = new PayPalIPNParameters(Request.BinaryRead(Request.ContentLength), Request.Form);

With this modification I finally got PayPal IPN to work successfully!

 

Best regards,

Matthias

{

 

strRequest +=

_postString = strRequest;

}

 
New Post
3/9/2010 2:52 PM
 

 Sorry, the post got mashed up for some reason. Fixed version follows:

Hi,

after hours of investigation I finally found out why PayPal IPN notifications didn't work for me.

It turned out that they way the post string for the IPN verification is being built incorrectly by the PayPalIPNParameters class.

The problem occurs when there are special characters (like German umlauts) present in the PayPal form parameters.

I could fix the problem by changing the constructor for the PayPalIPNParameters class to:

 

public PayPalIPNParameters(byte[] param, NameValueCollection requestForm) : base(requestForm)

{

    string strRequest = System.Text.Encoding.ASCII.GetString(param);

    strRequest += "&cmd=_notify-validate";

    _postString = strRequest;
}


The constructor must then be called as follows:
 

PayPalIPNParameters ipn = new PayPalIPNParameters(Request.BinaryRead(Request.ContentLength), Request.Form);

With this modification I finally got PayPal IPN to work successfully!

 

Best regards,

Matthias

 

 

 
New Post
3/15/2010 1:32 PM
 

Did anyone of the developers read this?

 
New Post
3/24/2010 10:20 PM
 

This is a serious bug! It prevents PayPal IPN notification when certain characters are contained in the user's name or address!

Should I post it elsewhere?

 
New Post
3/26/2010 6:28 AM
 

Hello Matthias

Is the bug only for "Store"?

Because I gets an error, then I am making a role subscription (and I use danish char).

Which file are you taliking about, so I can change the IPN code?

I have also post a question about paypal error, can you check it: 

http://www.dotnetnuke.com/Community/F...

Thanks, Peter

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStorePayPal IPN BugPayPal IPN Bug


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