YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

dialog donate button in c Options
Ryan
#1 Posted : Wednesday, August 25, 2004 8:37:33 PM
Rank: Starting Member

Groups: Registered

Joined: 8/25/2004
Posts: 3
Location: ,
I saw the post about adding a donate button to a dialog in a VB program. Here is my attempt at translation but it doesn't work properly. Could you tell me what I'm doing wrong? Thanks. CString url; url = "https://www.paypal.com/cgi-bin/webscr"; url = url + "?cmd=\"_xclick\""; url = url + "&business=\"mycompany\""; url = url + "&item_name=\"myproduct\""; url = url + "&no_note=\"1\""; url = url + "¤cy_code=\"USD\""; url = url + "&tax=\"0\""; url = url + "&lc=\"US\""; ShellExecute( this->m_hWnd, "open", url, 0L, 0L, SW_NORMAL );
Sponsor  
 
Ryan
#2 Posted : Friday, August 27, 2004 8:23:33 PM
Rank: Starting Member

Groups: Registered

Joined: 8/25/2004
Posts: 3
Location: ,
First off, thanks for the help!

In my code the cy_code line is preceded with an '&' like all the other lines. I'm not sure why it's showing up the other way here. Is that what it should be? In your correction the same funny character showed up.

When I click the normal donate button (on a web page) it takes me to my page where a person could specify the amount they want to donate. I expect the dialog button should do the same thing. When I click the button on my dialog box (this code) I get the message "you must login before accessing this page".

Another difference is the URL that shows in IE. With the web based button I'm on the right page and its:
https://www.paypal.com/cgi-bin/webscr

With the dialog button it shows as:
https://www.paypal.com/c...;&lc="US"

mycompany is the email address I signed up with and the myproduct is the products name.

Thanks!
Ryan
Ryan
#3 Posted : Friday, August 27, 2004 8:27:55 PM
Rank: Starting Member

Groups: Registered

Joined: 8/25/2004
Posts: 3
Location: ,
OK, there's something funny about the way this editor is interpreting that string. I have an ampersand followed by currency_code and it shows up that way in the URL when paypal is asking me to login. When I login I'm not taken to the donation page. When I use the html based donate button I don't have to login.

Thanks again.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.222 seconds.