Go back to your PayPal account. Find the e-mail link for your button. PayPal clearly states to provide this link to allow you to send this link by e-mail. You can use this link in your scripts. Just use the launch URL command to open the PayPal link in your browser.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Can anyone be more clear on this as I am a newbie. I have a simular form to bring up in paypal but I am unclear how to do it. It is mentioned use launch URl command. Do i insert my entire form html code into one launchurl command?
Actually after reading this a few more times this person is calling upo a predefined button. I need to create the button on the fly. I have a form where you can pick up to 22 different items and any combination of items changes the subtotal, shipping cost and total to be passed to the cart.
You can easily change business, item_name, amount, tax and currency_code as needed. Create your URL by script and then use the launch URL command.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Thank you for your response. I have figured out how use a preconfigured PayPal button. The issue is that I have a form and people can select any combination of 22 different items. Combining items changes the total as well as the shipping there is a standard shipping fee for each item. But when you add items the shipping for each additional is reduced. So a predefined button would not work for me. I would need hundreds of them to calculate any possible combination of items.
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
I appreciate your efforts, but pointing me back to an answer a second time that I already don't understand doesn't help much. I see what your getting at and I understand what i need to do. But how to do it, i do not understand. Building a url and launching it with launch url sounds good, but I am still at a loss even where to start. Without a coding example to refference I am still not able to figure it out.
Thanks anyway, I'll keep trying. Eventually i'll figure it out.
Jed
put "http://www.domain.com/" into myMain
put "bla=foo&blub=bar" into myVar
put myMain & myVar into myUrl
launch url myUrl
Make sure to read the docs, both LiveCode's and PayPal's.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
That does makes sence now. Is there a limitation on how long the url can be? Say someone bought 15 items. In php I had a nice list of all 15 items in the cart. Is this possible using this method or should I just use "your Order" or something like that as the item decription. Then the price, tax, total.
The length of the URL depends on the server configuration, usually it is 1024 bytes, sometimes it is 256 bytes, sometimes there is no limit. I don't think that PayPal has a limit. If there is one, you will probably see an error message.
You can also use PHP to make a dynamic form, which lists only one item and the total sum to pay.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The length of the URL depends on the server configuration, usually it is 1024 bytes, sometimes it is 256 bytes, sometimes there is no limit. I don't think that PayPal has a limit. If there is one, you will probably see an error message.
You can also use PHP to make a dynamic form, which lists only one item and the total sum to pay.
Best,
Mark
Thanks Mark,
The length of the string in paypal is 256 bytes. I have it working perfectly now