PDA

View Full Version : Convert Paypal button to XML



Pysiek
28 May 2011, 05:20 PM
Hello Guys
I bought a website template which is in XML. I have a simple internet store on it.
Yesterday I have created a PayPal "Buy Now" button. But what I have found is that the button uses "form" command which is NOT supported by XML code.
I asked PayPal if they can give me a website address where my customer will be able to pay.
I told them that I will create my own flash button that will point my customer to that website. Unfortunately they can't help me.
Is there a way to convert their code to XML?
Here is the "buy now" code:
<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="W72NWEQ7XVM3G">
<table>
<tr><td><input type="hidden" name="on0" value="Color">Color</td></tr><tr><td><select name="os0">
<option value="Red">Red $29.99</option>
<option value="Blue">Blue $29.99</option>
</select> </td></tr>
<tr><td><input type="hidden" name="on1" value="Size">Size</td></tr><tr><td><select name="os1">
<option value="6X8">6X8 </option>
<option value="7X10">7X10 </option>
<option value="8X11">8X11 </option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>


Thank You

Pysiek
30 May 2011, 11:37 AM
Anyone? I really need to get this working.