PDA

View Full Version : Add PayPal button (form) to xml page


asameabhair
03-29-2011, 02:47 AM
Hi,

I bought an xml/flash template which is cool cept I can't add the PayPal buttons to my gallery page. This is the a sample xml code:

<entry
entrytype="image"
entrylink="images/o16.jpg"
entrythumblink="thumbs/o16.jpg"
videopreviewimage=""
>
<![CDATA[
<h1>Crónú(dusk)- <b>$199</b> </h1><p>24x24 Oil on canvas - <a href="" target="_blank">Buy with Pay Pal</a></p>
]]>
</entry>

I've had to simply add a link to a separate html page where I CAN add the Pay Pal button. Is there some way to add the form btn into my xml gallery page.



Its a pain in the @ss having to create a HTML page just for the items I'm selling when I'm sure it can all happily exist in the same flash template.

Any ideas??? I'm not a developer so I'll need it broken down..a lot!!!
cheers
d

estudio56
03-30-2011, 03:49 AM
Of course not. As far as I know, PayPal only offers buttons in html format.

I would try this:

1. Login to the merchant account and access Buy Now Buttons (Merchant Services)
2. Configure your button and create it
3. Click on the Email tab and copy the url

Now in flash create a simpleButton and assign it a listener
On the simpleButton's handler, navigate to the URL copied on step 3.

That should launch a new browser page/tab, and display the PayPal login with the right title/amount.

Good luck, let me know if this solves your problem.

Seb.

2.