Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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 ForumsStoreStoreModify the Query String passed to Paypal from DNNModify the Query String passed to Paypal from DNN
Previous
 
Next
New Post
11/1/2006 7:43 AM
 

Ms Dancechic,  I am struggling with the same issues with passing information to paypal.  I only get the Item# to show up.  Did you find a way to show how to pass a productName and or description?

 

Thanks

 

Tom

 
New Post
11/2/2006 12:06 AM
 

Tom,

First of all just want to say that DNN passes aggregate and summarized information of the cart to paypal so if you want to pass individual items that is a lot of work, I have not dont that but the file that you should be pulling into your paypalpayment.ascx.cs would be Iteminfo.cs now the string that gives you the product info would be ItemInfo.ProductTitle so if you can manage to pull that thru then you will see the item description also. The thing is that I cant figure out which class needs to be declared and initialized for this file.

I managed to pull storeinfo by declaring the following lines just above the payment string

StoreInfo
storeInfo = CheckoutControl.StoreData;
StoreController storeController = new StoreController();
storeInfo = storeController.GetStoreInfo(PortalId);


But i still have to figure out what needs to be done for Iteminfo.

If anyone else can throw some light on this it would make more sense.

 
New Post
11/6/2006 1:16 AM
 
OK!!!!
I finally managed to get this together!!! Time to get a Beer after this post! :)

Here are the magic lines; you can only use these lines asuming that you have already installed C# compiler and managed to upgrade the source code from 2003 to 2005. Please read all previous posts to get to this point.

What i did basically was declared ItemInfo and cartItems and made an empty string by the name product detail once this is done i basically went thru the whole array of product details and now i can display all the necessary properties of Iteminfo. The things that I need most importantly is modelname and quantity if you want the rest play around with the following properties.

ItemID
Manufacturer
ModelName
ModelNumber
ProductID
ProductTitle
Quantity
UnitCost

Open file paypalpayment.ascx.cs and then look for the line where the paypal URL is being created.
Right above it add the following lines.

ItemInfo
ItemInfo = new ItemInfo();
ArrayList cartItems = CurrentCart.GetItems(PortalId);
String productdetail = string.Empty;

foreach (DotNetNuke.Modules.Store.Cart.ItemInfo itemInfo in cartItems)
{
productdetail += itemInfo.ModelName +
"-" + itemInfo.Quantity + ";";
}

After this replace this line

payPalURL +=
"&item_name=" + HTTPPOSTEncode(_settings.CartName);

with

payPalURL += "&item_name=" + HTTPPOSTEncode(productdetail);

compile and then you can use the DLLs

Cheers,
Dancechic.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreModify the Query String passed to Paypal from DNNModify the Query String passed to Paypal from DNN


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