Solved

ASP.Net and PayPal Custom Var.  How do i retrieve the custom variable from my lpn listener page

Posted on 2014-07-18
3
250 Views
Last Modified: 2016-03-24
How do i retrieve the Custom values that are sent from  Pay Pal to my ipn listener page?  All of my could is ASP.NET in C#

Thanks.
0
Comment
Question by:bmanmike39
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Andrew Angell
Comment Utility
All of the parameters that are sent to your IPN script are sent as POST data just like a form POST.  

The only custom value(s) you can send to PayPal in payment requests are within the CUSTOM parameter.  Just want to make sure you understand you can't just create your own custom parameters.  There's only 1, and it's literally called CUSTOM.  It can hold up to 256 characters of text.  

You can pass whatever value you want in the CUSTOM parameter within payment buttons, API requests, etc.  Then that same value will come back in the IPN data as POST field with the same name:  CUSTOM.  

I'm not familiar with C#, but again, you would handle it just like any other basic form processing you might do.
0
 

Author Comment

by:bmanmike39
Comment Utility
Thanks, but that's what I'm saying, how do you receive the posted back info.  and put it in a variable?
0
 
LVL 11

Accepted Solution

by:
Andrew Angell earned 500 total points
Comment Utility
I'm not a .NET developer, but a quick Google search seems to reveal the following...

customVar = Request.Form["custom"];

Open in new window

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now