Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Converting custom PayPal button to web link? (https://www.warriorforum.com/programming/1107571-converting-custom-paypal-button-web-link.html)

J50 4th September 2015 09:18 AM

Converting custom PayPal button to web link?
 
I have a custom PayPal form, not a hosted button and would like to convert this to a web link...

Here's the code I have.

HTML Code:

<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="pay@domain.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="a3" value="1000.00">
<input type="hidden" name="item_name" value="Consulting Services">.
<input type="hidden" name="p3" value="3">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
</form>

This is designed to bill clients every quarter automatically. Anyway can I convert this into a link so when I have closed a new client I can just pass them a link?

Thanks.

wordpress+expert 4th September 2015 09:53 AM

Re: Converting custom PayPal button to web link?
 
Quote:

This is designed to bill clients every quarter automatically. Anyway can I convert this into a link so when I have closed a new client I can just pass them a link?

No, but you can create a page with code:


Code:

<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post" id="my_form" style="display:none;">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="pay@domain.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="a3" value="1000.00">
<input type="hidden" name="item_name" value="Consulting Services">.
<input type="hidden" name="p3" value="3">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
</form>
<script>
        window.onload = function () {
                document.getElementById('my_form').submit();
  };
</script>



All times are GMT -6. The time now is 12:35 PM.