Paypal Button
In an flash template / website I want to include one button which when clicked opened the www.paypal.com site to make payment ( to my paypal account) and after making payment the user will come back to this flash template / website to download one pdf file. Is it possible? If yes then what will be the most possible way to do this? I have no idea how to make payment in www.paypal.com . Any help will be highly appreciated.RegardstrnghoshIS IT NOT POSSIBLE? IF POSSIBLE PLEASE GIVE ME SOME TUTORIAL LINKS SO THAT I CAN FIGURE IT BY MYSELF.trnghoshGIVE ME SOME REPLY WHETHER IT CAN BE DONE OR NOT.Please tell me whether it is possible in flash or not, if the answer is no then I will not waste any time of you. I am really amazed how people said about Shopping Cart in Flash where payment has been made through paypal.Please give some answer.trnghosh
ActionScript.org Forums > Flash General Questions > Flash 8 General Questions
Posted on: 01-13-2009, 05:01 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Paypal Button Code Works Fine For One Button But Not Another
Hey there, I have a paypal btn with this code on it:
on(release){
mylv = new LoadVars();
mylv.cmd = '_s-xclick';
mylv.encrypted = '-----BEGIN PKCS7-----MIIH0QYJKoZIhvcNAQcEoIIHwjCCB74CAQExggEwMIIBLAIBAD CBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYD VQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW 5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2 ==-----END PKCS7-----';
mylv.send('https://www.paypal.com/cgi-bin/webscr', 'POST');
}
(i took a few characters out of the encrypted string--just in case and to shorten the post)
This button works fine.
Now, I need a second button for a different item.
So, I went on to paypal last night and generated a "buy now button" several different times. Copied and pasted the encrypted string where the old one is. When I have the site live and click on the new button it takes me to a paypal pages that says "We were unable to decrypt the certificate id."
Any one have this issue before? And does anyone have any idea of how to correct it?
Thank you in advanced,
hutch
Paypal Button?
whats the best and free-est way to make a pay pal button in flash and yes i know free-est is not a word
Paypal Button
I've got a paypal html code
Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="andrew@isokodesign.com">
<input type="hidden" name="item_name" value="Multimedia Services">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but6.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
and this' the actionscript I worked out...the problem is that it won't work...please help.
Code:
function sendPayPal()
{
userData = new LoadVars();
userData.cmd = "_xclick";
userData.business = "me@mybusiness.co.uk";
userData.currency_code = "GBP";
userData.item_name = "Teddy Bear";
userData.amount = "12.99"
userData.send("https://www.paypal.com/uk/cgi-bin/webscr", "", "post");
}
PayPal Button
I am trying to create a button to accept PayPal payments on my website. Here is the code I'm using to send POST data to PayPal...
Code:
on( release ){
this.cmd = "_xclick";
this.business = "me@domain.com";
this.item_name = "Items";
this.item_number = cartId;
this.amount = .01;
this.return = "http://www.agabyss.com/flash/index.php?id="+cartId;
this.cancel_return = "http://www.domain.com/flash/index.php";
this.no_note = "1";
this.no_shipping = "2";
this.currency_code = "USD";
this.getURL( "https://www.paypal.com/cgi-bin/webscr", "_blank", "POST" );
}
The problem is that I can't get the return variable to work because return is predefined. Is there anyway to turn that off or write it a different way? There's no other variable name that PayPal will take, as far as i know.
Thanks!
Paypal Button
Hi guys,
I'm trying to add a paypal button to a website I'm creating, they've given me a code in html, my question is how do I actionscript this html code so that when the button is clicked on the website it does the same as the html code? Here's the code: Code:
<form name="_xclick" action="https://www.paypal.com/uk/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="me@mybusiness.co.uk">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="item_name" value="Teddy Bear">
<input type="hidden" name="amount" value="12.99">
<input type="image" src="http://www.paypal.com/en_GB/i/btn/x-click-but01.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
Help please. Thank you!
Web Assist - Paypal Buy It Now Button...
I am trying to work out how to incorporate the web assist paypal button...feature into a site I am working on...I have followed the quick time tutorials and tested the button...it works fine. So i can now set it up, so visitors can buy items in my store. BUT...The problems start with flash & me not understanding how to update the movies, so two people 'cant' buy the same item...The items I want to sell are unique...not multiples...SO How do I get flash to update, once paypal has taken payment and display 'sold' instead of buy it now???
Can anybody shed any light on this one?
PayPal Button In Flash
does anyone know how to put the html script of a paypal button into actionscript for Flash MX 2004?
The html script for the button looks like
Code:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="email@youremail.com">
<input type="hidden" name="item_name" value="Your Item">
<input type="hidden" name="amount" value="135.00">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
</form>
Paypal Button In Flash
I'm just wondering how I could make a paypal button (via the paypal site) and then attach that HTML code to a shockwave button allowing me to effectively make a flash version of the paypal button. Any help would be great. Thanks.
Paypal Button Question?
I wanna get a paypal donate button into my flash website. I figure I could just get the picture of the button and have an inivisble button over it that goes to the website, or it'd be nice if i cud just use the actual button. However the HTML code they give me to use, how can I adapt that so that the actionscript will work?
Paypal Donate Button
Anyone have any idea how to incorporate a paypal donate button into paypal besides using dynamic textfield cuz it doesn't work
Adding A Paypal Button
total noob needs help :0)
im am trying to add a paypal donate button that links to an account
can anyone provide me step by step instructions on this
Paypal Button?ahhhhh
is there any way to make a pypal button without using one of those generators, they export as swf and then what you know, how is that useful to me in a fla? also a quickie, what is the AS for defining subject and content of an email with the mailto: script
[mx04] Paypal Button Help...
ok, so i have this code for a a paypal button and it all works fine however it doesnt add the shipping cost in paypal, can anyone help?? thanks
stop();
BuyNowButton.onRelease = function(){
myData = new LoadVars();
myData["add"] ="1";
myData.cmd ="_cart";
myData.business = "laurensteil@gmail.com"; //
myData.item_name ="Bandana";
myData.item_number ="1";
myData.amount = "30";
myData.shipping = "2.99";
myData.no_note ="1";
myData.quantity = "1";
myData.currency_code ="USD";
myData.lc ="US";
allMyData = myData.toString();
getURL("https://www.paypal.com/cgi-bin/webscr?" + allMyData ,"_blank");
}
Add To Basket PayPal Button - PLEASE HELP
Thanks to the generosity of fellow Flash users, I was able to make use of this script for my 'Add to basket' Paypal button. The button works beautifully however I do not know how to include a 'Flat postage rate' - a one-off charge irrespective of the number of items a customers purchases. I'll be selling many different items on my web site and this button will be next to each item. Please could someone let me know what I need to add to the script below and if needs be, take away. Flash MX used. Many thanks.
on (release) {
var formData = new LoadVars();
formData["add"] = "1";
formData.cmd = "_cart";
formData.business = "my email address";
formData.item_name = "Glass Lariat";
formData.item_number = "GL_01";
formData.amount = "40.00";
formData.page_style = "PayPal";
formData.no_shipping = "2";
formData["return"] = "my web address/html/payment_status_01.html";
formData.cancel_return = "http://www.my web address/html/payment_status_02.html";
formData.cn = "Message from customer...";
formData.currency_code = "GBP";
formData.lc = "GB"
formData.bn = "PP-ShopCartBF"
formData.send("https://www.paypal.com/cgi-bin/webscr", "_blank", "GET");
}
Flash Paypal Buy It Now Button
I have been trying to find a way to make a Flash PayPal Buy It Now button. Looking through the web in general and this board, I have seen examples, but they don't match the code PayPal provided. (For example, my code does not have an e-mail address and it works fine.) Can someone please tell me how to turn the following code into a PayPal Buy It Now button?
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2648691">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
PayPal Add To Cart Button
Ok I know how to make Add To Cart paypal info know what the code is for for the movieclip and have done it and it works perfectly, but what I'm looking to do if possible is make the item add to the PayPal Cart without opening the PayPal Cart website, so the person doesnt have to go to the cart right when they add one item instead they can click and keep adding items without the cart opening until they click on the View Cart button which would open the Paypal Cart, this I've already done just need help figuring how not to open the PayPal Cart when adding an item to the cart so it just adds without opening the page, here is the code I got on my movieclip/button
on(release) {
getURL("https://www.paypal.com/cart/add=1&business=MYEMAILADDRESS&item_name=MYITEMNAME &amount=10.00&shipping=0.00&shipping2=0.00&handlin g=0.00&return=http://www.paypal.com&cancel_return=http://www.paypal.com", _paypal);
}
Paypal Donate Button
I have a friend who would like me to attach a Paypal Donate button to his swf. How is this done? I have attached the code from Paypal.
Thank you so very much
Attach Code
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHiAYJKoZIhvcNAQcEoIIHeTCCB3UCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBnveToXVRMyUy/5toYVDZxjTLhj7r+SWmlVisKSUvxiWfAd28bTQdeOAadGBmhzHjSNXIUnVDfOKlzlVgByfdmUImJ/eJW0Jl1lCa2oO8P21ZuqyNRl/29ID6wqtxZGsqZ1Vh6QaLqoSq+sxAjGyHWRF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-----END PKCS7-----
">
</form>
FLash Button And PayPal
Hallo everybody,
I have created a flash site in Flash 8 where I wil sell some t-shirts.
Now I have created a "Shopping Cart" within PayPal.
PayPal gave me the HTML code that I can use for my "Buy" buttons and "Check Out" button.
Because the buttons of my site are made with Flash which is the ActionScript command that I have to use to include the belowed code?
This code is referred to a Tee called "crazy printer" which cost €30 +€4 for shipping fees
thank you so much for your precious help
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/it_IT/i/btn/x-click-but22.gif" border="0" name="submit" alt="Effettua i tuoi pagamenti con PayPal. un sistema rapido, gratuito e sicuro.">
<img alt="" border="0" src="https://www.paypal.com/it_IT/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="info@studiosimultaneo.com">
<input type="hidden" name="item_name" value="crazy printer">
<input type="hidden" name="amount" value="30.00">
<input type="hidden" name="shipping" value="4.00">
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="buyer_credit_shipping_method" value="">
<input type="hidden" name="buyer_credit_user_address_change" value="">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="lc" value="IT">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form>
How To Make A Paypal Button?
Hi,
I'd like to make a simple "buy now" paypal button in Actionscript 3.0. I had a code for Actionscript 2.0 so I know it used to be able to be done. I'm presuming it still can be. Can anyone tell me how?
Many thanks,
Mikey
Paypal Button Integration
I have a question about what actionscript I need to use to integrate paypal buttons into my flash site. Or if you have any tutorials. Any help would be appreciated! Thanks!
Flash Paypal Button
I have a simple button linking to paypal from an html form and I want to place this button into Flash. I found an example that was posted a while back but it didn't seem to work. Basically the button goes to a url but it also has to send some other info as well with the POST method including an encrypted value. Here is what I have tried. Also note that I have deleted some of the Encryption value for this posting for security reasons.
on (release) {
var pp_lv=new LoadVars();
pp_lv.cmd="_s-xclick";
pp_lv.encrypted="-----BEGIN PKCS7-----MIIG/QYJKoZIhvGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheX BhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCSPDaF/KjciWI5MpzIoc/cvgSLU1DQRiQ=-----END PKCS7-----";
pp_lv.send("https://www.paypal.com/cgi-bin/webscr","_blank","POST");
}
Paypal Button Item Name?
ok heres the code i've been using for my paypal buttons on my flash sites.
not the only thing is i put my item Name in the "item_number=" and for some reason i need to put underscores or someting, it wont work it i put spaces in between the words of the item name, and it i put the code in for a non-breaking space it makes the word before that code the only word you see in the paypal cart page in the desciption.
So ive been doing this This_New_DVD (thats what the item name looks like in the paypal cart description section.
anyone know a solution?
am i even doing this right?
on (release) {
getURL("https://www.paypal.com/cart/add=1&business=MyPayPalEmailAddress&ItemQuickname= Shopping+Cart+Button&item_number=ITEM_NAME&amount= 19.95&page_style=MyPayPalStyle&shipping=4.00&shipp ing2=0.00&handling=0.00&return=http://www.paypal.com&cancel_return=http://www.paypa", _paypal);
}
Button W/ Add To Cart PayPal Help
Ok I know how to make Add To Cart paypal info know what the code is for for the movieclip and have done it and it works perfectly, but what I'm looking to do if possible is make the item add to the PayPal Cart without opening the PayPal Cart website, so the person doesnt have to go to the cart right when they add one item instead they can click and keep adding items without the cart opening until they click on the View Cart button which would open the Paypal Cart, this I've already done just need help figuring how not to open the PayPal Cart when adding an item to the cart so it just adds without opening the page, here is the code I got on my movieclip/button
Code:
on(release) {
getURL("https://www.paypal.com/cart/add=1&business=MYEMAILADDRESS&item_name=MYITEMNAME&amount=10.00&shipping=0.00&shipping2=0.00&handling=0.00&return=http://www.paypal.com&cancel_return=http://www.paypal.com", _paypal);
}
Thanks
Flash Paypal Button?
Hi, I've tried paypals developer forum but they don't seem to checkin quite often. My dilemma is my paypal pay now button. It worked fine for months on my html site, but since I converted to flash, it doesn't work now. Heres the two scripts I"ve tried
Code:
First Try
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
getURL("https://www.paypal.com/cgi-bin/websc...harset=UTF%2d8", "_blank");
}
------------------------------------------------------------------------
Second one
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
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@address.com";
paypal.currency_code="CAD";
paypal.amount="";
paypal.handling = "";
paypal.item_name="";
paypal.input_type="hidden";
paypal.input_button="encrypted";
paypal.input_name="encrypted";
paypal.input_value="-----BEGIN PKCS7-----My paypal URL-----END PKCS7-----";
//send information to PayPal
paypal.send("https://www.paypal.com/cgi-bin/webscr","POST";
}
Simple Paypal Button
Hi im trying to create a simple paypal button that fires of a page with the item selected. The coding works fine BUT i want the total to be in British pounds and not US dollar. Anyone know how i can modify the code to make it be in pounds?
heres my coding:
Code:
on(release) {
getURL("https://www.paypal.co.uk/cart/add=1&business=me@myemail.co.uk&item_name=Secret_Graden_Necklace&amount=32.00&shipping=0.00&shipping2=0.00&handling=0.00&return=http://www.paypal.com&cancel_return=http://www.paypal.co.uk", _paypal);
}
Paypal Button - Artofacks1?
Hello all and particularly Artofacks1,
Artofacks1 i see on your new site you have gotten the paypal "Buy Now" buttons to work in your flash site. I have an HTML site with some paypal buttons, but now I am working on the flash version of the site. I really have no idea how to make that work.
Is there some place to insert the HTML? Or some other sneaky way?
Can you help a brother out?
Paypal From Flash Button
Thought you guys might need a quick paypal trick. Eh, it's probably been done before but could help out some new commers.
1. Create a button, if you don't know how to do this then I'm sorry I can't help you.
2. Create a LoadVars instance like so
ActionScript Code:
on(release){
var paypal = new LoadVars();
3. Get your paypal generated form and the copy the names and values of each of the input field like so.
ActionScript Code:
paypal["cmd"]="_xclick";
paypal["business"]= "my@email.com";
paypal["item_name"] = "Name of the item";
paypal["no_shipping"] = "1";
paypal["currency_code"] = "USD";
paypal["lc"] = "US";
4. Finally, use send to send it all to paypal.
ActionScript Code:
paypal.send("https://www.paypal.com/cgi-bin/webscr", "0", "post");
}
Not too difficult, LOL, I came up with it so it's simple. Hope it helps out any one out there.
PayPal Button Based On Variables
Hey all!
I'm doing a site for a company that sells dog clothes (weird but fun!), and basically how it works is that the user goes through, picks a base item (like a sweatshirt or a hat), a color, and a design to stick on it.
When all is said and done, the three variables are combined into a master variable that will read like HatRed122, where Hat is the base item, Red is the color, and 122 is the number of the design the user chose. The price will be stored similarly in a separate variable, tabulated based on what the user chooses (like hat =$5, + $2 for red, +$6 for design 122, or whatever, for a final value of $13).
I'd like a button that will send both of these variables correctly over to PayPal, like some Flash components I've seen. The thing is that these components don't seem to support pulling the item names and prices from variables, and making well over 1000 buttons doesn't sound very appealing!
Anyone know how to do this?
Thanks!
Easiest Way To Link Paypal Button
my site is all made with flash mx and paypal gives you html code to link to youre paypal account what is the easiest way i can do this with flash site
Flash Paypal Button Shenanigans
Hey all,
I want to have a paypal donate button within my flash site and i sorta guessed how to get it working somewhat correctly; Here is the code i put on my button:
on(release){
mylv = new LoadVars();
mylv.cmd = '_s-xclick';
mylv.encrypted = 'The paypal encryption garbage';
mylv.send('https://www.paypal.com/cgi-bin/webscr', '_blank', 'POST');
}
So now, when I publish the file and click on the button in the swf; if Firefox is my default browser it does what its supposed to; but if IE is my default it just opens up a blank browser window and nothing loads; anyone have an idea why? As far as i can tell i don't have any security measures set in IE that would block the page from loading. Thank you in advance.
---Scotopia
Please Complete Newb Needs Paypal Button
Can someone please help me im trying to make a buy now button in flash with paypal but I cant figure it out to save me life to top it off I suck at action scripting I would greatly appreciate any help but here is the link paypal gave me.
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="BBall2music@yahoo.com">
<input type="hidden" name="item_name" value="Web Design Special">
<input type="hidden" name="amount" value="595.00">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form>
please someone help me
Paypal Calculate Shipping Button
hi, i have a little problem whit my buy now button, when i buy 2 items or more, with the same name dont sum the shipping amount.
I think in a simple solution of this problem, anybody can help me?
sum=qt*3;
link1="https://www.paypal.com/cart/add=1&business=sales@mydomain.com&amount=17.95.&";
link2="item_name=myItem&on0=Size&os0=8 Inches&return=http://www.mydomain.com/cont/index_flash.html";
currentLink = _root[link1 + _root.sum + link2];
and the button is:
on(release){
sum=qt*3;
getURL(currentLink, "_blank");
}
DOWNLOAD LINK: http://perutotal.net/test.fla
PayPal Donation Button In Flash?
I'd like to add a button in Flash to link to a PayPal Donation function. How do I use the HTML code provided by PayPal (meant to be applied to a .GIF or. JPG) to a standard Button instance in Flash?
Thanks.
Attach Code
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="myemail@mywebsite.com">
<input type="hidden" name="item_name" value="My Website">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Paypal Button Code Works For One Btn But Not Another...
Hey there, I have a paypal btn with this code on it:
on(release){
mylv = new LoadVars();
mylv.cmd = '_s-xclick';
mylv.encrypted = '-----BEGIN PKCS7-----MIIH0QYJKoZIhvcNAQcEoIIHwjCCB74CAQExggEwMIIBLAIBAD CBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYD VQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW 5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2 ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQ AwDQYJKoZIhvcNAQEBBQAEgYCLlA+ZkqaQNnEC7T1/M1TId+18zpepRQDot9gcG6BWaVRl1DA3nN2JbbNsAT6VV3ZLYD LEQnvtfbXk5KE4o+QC48qMPEI5jmffVnahU2Ku+vdPFukgg3on Cotcm8C7BCpOKM1OiDNmu/BW1O82i9zqApFVSfg1BE/tOd6kvKs+ZTELMAkGBSsOAwIaBQAwggFNBgkqhkiG9w0BBwEwF AYIKoZIhvcNAwcECJuuZUG5EP9tgIIBKPy6JBE2NQTgm1KTuwr dXM35o47UgdgrTY5dYKdIQrTjNfkmxZe8XMNPDizXuWZUVGLvj u1Hl+NAZXe82o/XfNSpgCmPvW3WEy1QzV/u3IyIS2tc49SauS/0KNjA570vbn9I3znsJtuY5fqbwRZ9VdXDagRtcooNHkaIC1NZM p4MSWQpvCQ53nczPQL5dLR6w6Fg6L3QvXCduZLGL+6mSqgjar/zJMvRcgYJJ0lEnft3QfEe115VPzL7HdKKGft9IBrFekxGrlF0N HjeTycYY6f3zN7Oacu3WEj56JcFo5T1/0u0QGD/6UIoW2rMvYCsMhLbH+2j/M4d0BOFzQkjJ/kJC7sLRX5ifl+VowqXR+U1rsKCw0zqJqKNK1tvBrNq/TWct99n+5ZDoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvc NAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEw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qXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGv ruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELM AkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDA SBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2Nlc nRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARY NcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIh vcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDY xMjEyMjExMDIwWjAjBgkqhkiG9w0BCQQxFgQUlurUOQk0eWD7K 7Cxc2RrGfzWcJAwDQYJKoZIhvcNAQEBBQAEgYCScRlIWSOLPEE UW6DCkwqKX54ps96bbvT9o/aIUL9HfM1JztLytj4EnHCG9CGPuIP5uVLexUp/vRTAb8AjcMg4/K8OAihtHfpZKnYPRY9N06rVZk1pNN0Q+E2GEMB34v6f2a7Ngno yiNjF3UX+gu2bRetgVdknM2je6==-----END PKCS7-----';
mylv.send('https://www.paypal.com/cgi-bin/webscr', 'POST');
}
(i took a few characters out of the encrypted string--just in case)
This button works fine.
Now, I need a second button for a different item.
So, I went on to paypal last night and generated a "buy now button" several different times. Copied and pasted the encrypted string where the old one is. When I have the site live and click on the new button it takes me to a paypal pages that says "We were unable to decrypt the certificate id."
Any one have this issue before? And does anyone have any idea of how to correct it?
Thank you in advanced,
hutch
[AS2.0] PayPal Link Via A Flash Button
Hello,
I am trying to make a button in Flash (that uses ActionScript 2.0) that will load the PayPal web site using the code provided by paypal. I choped up the PayPal button to get the follow that I thought was correct:
Code:
var cmd:String = "_s-xclick";
var encrypted:String = "great-big-long-string-of-numbers";
on (release) {
getURL("https://www.paypal.com/cgi-bin/webscr", "_parent", "POST");
}
Am I heading in the right direction?
Or if anyone knows a simpler way, please let me know as ActionScript makes my poor head hurt.
Adding Options To A Paypal Button
I am trying to get a flash based button to work with PayPal. I have managed to get flash file to send to PayPal - its very similar to any standard javascript button (for a single item to PayPal) however, there are some other fields in Paypal on0 - os0 that can be used to add other parameters to the button such as color, or size, or whatever - this is generally done as an option menu like this -
<SELECT name=os0>
<OPTION value="none selected" selected> Please Select Color</OPTION>
<OPTION value="Red">Red</OPTION>
<OPTION value="Black">Black</OPTION>
<OPTION value="Green">Green</OPTION>
</SELECT>
Also a field for the amount of items would be: <input size="2" value="1" name="quantity"> (you can see in the code I already have, the quantity set to 1, but would prefer the user to be able to specify the quantity required through an input area on the page.
Mostly all the buttons I have found for Flash deal with the "Buy it Now" feature, which in itself is good , but very, very limited. Is there a way to add an option drop menu to the flash file and an input field so a user can choose a color (using os0) and a size using (on0) with the input field (set the paypal.quantity="";) so then the input number is used other than 1.
This is the code I have on the button on the first frame - this code does work - I have tested it a lot - but I do'nt know how to add the other features.
CODEon (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="_cart";
paypal.upload="1";
paypal.business="4848";
/// Item Information
paypal.item_name="Clevis Hook"
paypal.item_number="CLEV_01";
paypal.amount="4.50";
paypal.quantity="1";
paypal.taxable="1";
paypal.undefined_quantity="1"; /// this is for my cart use
//// Shipping Information
paypal.calc_method="C";
paypal.lot_size="1";
paypal.weight_lbs="0";
paypal.weight_oz="6";
paypal.length="";
paypal.width="";
paypal.height="";
paypal.package="T";
paypal.insure="0";
paypal.on0="Color";
paypal.supp_handling_fee="";
paypal.origin_code="92307";
//// Carrier Special Services
paypal.addl_handling_ups="1";
paypal.pod_ups="1";
paypal.sig_ups="1";
//send our information to PayPal, including all the optional variables we have collected from customer
paypal.send("http://www.thisgoestomypaypalcart.com/cart/","cartwindow","POST");
}
//this is purely for the animation, nothing more
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(11);
}
PAYPAL DONATION BUTTON(or BUY BUTTON)
Ok i found this piece of code on some site:
//create variables using the info from the paypal button generator
var link:String = "https://www.paypal.com/cgi-bin/webscr";
var cmd:String = "_s-xclick";
var encrypted:String = "-----BEGIN PKCS7----- [code that paypal provide.....]"
//create a LoadVars to use
var paypal:LoadVars = new LoadVars();
//sends the info the way paypal likes
function submit() {
paypal.cmd = cmd;
paypal.encrypted = encrypted;
paypal.send(link, "_blank", "POST");
}
//btn is the instance name of the 'buy now' button on the stage
buy.onPress = submit;
SO far i got 6 errors when i check the code(best i could do)
What do i miss to make my donation button?
thanks for you help folks
How Do I Make This A Paypal Button In Action Script?
How do I make this Paypal button in action script for my flash mx button?
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="July311993@aol.com">
<input type="hidden" name="item_name" value="book">
<input type="hidden" name="amount" value="$12.95">
<input type="image" src="https://www.paypal.com/images/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
</form>
Flash Button That Brings Paypal Screen
I am making an flash advertisement that brings up this page.
Ive added an "8" infront of each input so you can see the html code.
Can someone tell me how to make my button bring up the paypal page
form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <8input type="hidden" name="cmd" value="_xclick"> <8input type="hidden" name="business" value="management@t.com"> <8input type="hidden" name="item_name" value=""> <8input type="hidden" name="item_number" value="$20.00 + $2.50 for S&H"> <8input type="hidden" name="amount" value="22.50"> <8input type="hidden" name="no_note" value="1"> <8input type="hidden" name="currency_code" value="USD"> <8input type="image" src="x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" width="68" height="23"> <8/form>
Simple Paypal Button And Cart Solution
I spent alot of time searching for a paypal / flash button solution and finally it came, check it out:
http://www.paypaldev.org/topic.asp?TOPIC_ID=3726#top
http://www.neahlay.com
Integrating HTML (Paypal) Into A Flash Button
Hi,
I'm interested in integrating a Paypal donation button into my flash site. Any idea on how to do that exactly? I know the basics of creating buttons.. but... well, look at what Paypal gave me to put into my html page:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----((((pk7s information removed for security purposes))))-----END PKCS7-----
">
</form>
I obviously removed the 21 lines of pk7s.
Thanks for your help!
Flash Button To Paypal Cart Problem
Hi,
I have been having much dificulty trying to get paypal's add to basket sript adapted to work from my flash button, this is what i have so far:
on (release) {
var formData = new LoadVars();
formData["add"] = "1";
formData.cmd = "_cart";
formData.business = "info@mowglihaircutters.com";
formData.item_name = "Mowgli Gift Voucher";
formData.item_number = "Mowgli Gift Voucher";
formData.amount = "25.00";
formData.page_style = "PayPal";
formData.no_shipping = "2";
formData["return"] = "http://www.mowglihaircutters.com/html/payment_status_01.html";
formData.cancel_return = "http://www.mowglihaircutters.com/html/payment_status_02.html";
formData.cn = "Message from customer...";
formData.currency_code = "GBP";
formData.lc = "GB"
formData.bn = "PP-ShopCartBF"
formData.send("https://www.paypal.com/cgi-bin/webscr", "_blank", "POST");
}
Initially the problem i thought was the reserved functions, like "add"
but even with a tweak there, still no joy. Basically this script takes you to
the paypal main login page, rather than to the actual shopping cart page as it does when you run the html script offered by paypal.
Has anyone encountered this problem before / can help me!
Much appreciated, many thanks, Mowgli_rui
Flash Button To PAYPAL Shopping Cart...
Hi all....
I'm trying to figure out the coding to get to my shopping cart from a flash button....
I think I almost got it!!!! What I have is this:
on (release) {
cmd = "_cart";
business = "homerwebsite@mac.com";
item_name = "CoinOne DVD";
amount = "29.95";
shippping = "6.00";
page_style = "HALproductions";
no_shipping = "2";
return_str = "http://www.homerliwag.com/shop.htm";
cancel_return = "http://www.homerliwag.com/cancel-order.htm";
no_note = "1";
currency_code = "USD";
bn = "PP-ShopCartBF";
getURL("https://www.paypal.com/cgi-bin/webscr", "_blank", "POST");
}
I get NO errors, but it takes me to a PayPal page (https://www.paypal.com/cgi-bin/webs...PP%2DShopCartBF)
the page says" We have detected a problem with this shopping cart. If problem persists, please contact the merchant"
Anyone see anything missing or why that page comes up and not the correct actual shopping cart???
PLEASE, ANY HELP IS APPRECIATED!!!! :-)
THANKS
-Allison
Paypal Button Bulk Order Problems
i want to make this button code have an order of ten of my items at once (bulk order)
the "add script has the numer of items, but when i enter say, 10, paypal only adds 1 item still...
any suggestions on how to change the number of items to more than one added to the cart at once?
on (release) {
var formData = new LoadVars();
formData["add"] = "1";
formData.cmd = "_cart";
formData.business = "email@email.com";
formData.item_name = "Product Name";
formData.amount = "13.00";
formData.page_style = "Paypal Page Style";
formData.shipping = "5.00";
formData["return"] = "http://www.website.com";
formData.currency_code = "USD";
formData.lc = "US"
formData.bn = "PP-ShopCartBF"
formData.shopping_url = "http://www.website.com/shopping.html";
formData.send("https://www.paypal.com/cgi-bin/webscr", "_self", "GET");
}
Paypal Button Item Quantity Problem
i want to make this button code have an order of ten of my items at once (bulk order)
the "add script has the numer of items, but when i enter say, 10, paypal only adds 1 item still...
any suggestions on how to change the number of items to more than one added to the cart at once?
on (release) {
var formData = new LoadVars();
formData["add"] = "1";
formData.cmd = "_cart";
formData.business = "email@email.com";
formData.item_name = "Product Name";
formData.amount = "13.00";
formData.page_style = "Paypal Page Style";
formData.shipping = "5.00";
formData["return"] = "http://www.website.com";
formData.currency_code = "USD";
formData.lc = "US"
formData.bn = "PP-ShopCartBF"
formData.shopping_url = "http://www.website.com/shopping.html";
formData.send("https://www.paypal.com/cgi-bin/webscr", "_self", "GET");
}
Paypal HTML Cart Button To Action Script
Hi all, id greatly appreciate some help here, ive been searching the web for a while and contacted paypal over this but no joy. Im not the best at programming, and feel like im climbing a vertical hill at the moment. I need to add an "Add to cart" and "View cart" button to my Flash site. Its pretty basic im sure for someone in the know but im stumped. Below is the code for the add to cart button
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="tripolitrx@XYZcom">
<input type="hidden" name="item_name" value="Isle of Lewis">
<input type="hidden" name="item_number" value="A102">
<input type="hidden" name="amount" value="45.00">
<input type="hidden" name="return" value="http://www.classicchessandgames/thankyou/html">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form>
And here is the code for the view cart button
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="tripolitrx@XYZ.com">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/view_cart.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="display" value="1">
</form>
Ive been fiddling around with it for a while but cant seem to get anywhere with it. Also would i have to put any HTML in my publised HTML page?
I Hope someone can help, the site is mostly done bar these buttons for the checkout, any help is greatly appreciated
Trip
|