Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paypal "pay now" button not working 1

Status
Not open for further replies.

cdiross

Technical User
Oct 23, 2006
290
US
I just changed from an html only site into a new flash site. I've tried all of the the different code options here in this forum but nothing is working when I add the action script. Can somebody please tell me how to make my button work? I need the script to make the button go to the payment page for my website business.

Than you

My button isn't clickable, it is recognized but not clickable. I get an error (below) before I can "preview" in Flash.

Here is my actionscript

on (release) {
//create the LoadVars that will hold our paypal information
var paypal = new LoadVars();

//specify the business, amount of the item, shipping, etc.
paypal.cmd="_xclick";
paypal.upload="1";
paypal.business="My Email HERE";
paypal.currency_code="CAD";
paypal.amount="";
paypal.handling = "";
paypal.item_name="Par-K Game";
paypal.input_type="hidden";
paypal.input_button="encrypted";
paypal.input_name="encrypted";
paypal.input_value="-----BEGIN PKCS7-----My Encrypted XYZ HERE-----END PKCS7-----";
//send information to PayPal
paypal.send("}


Here is my error:
**Error** Symbol=Mailing Address2, layer=Layer 1, frame=1:Line 18: ')' or ',' expected
paypal.send("Total ActionScript Errors: 6 Reported Errors: 6
 
Hi Kenneth, thank you.

What do you mean by "it's not just any random text"? I got the code from paypal's developer site and I'm not getting any support on it, so if it's specified text, what should I be doing?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top