Using your own check out button

Is there a way to use your own check out button on .../pro-site/?
And what would be the variables for the following parameters?

<input type="hidden" name="a3" value="10.00"> = Amount (in €)
<input type="hidden" name="p3" value="1"> = number (of month, years)
<input type="hidden" name="t3" value="M"> = M = months, Y = years

Thanks!

  • DavidM

    Hi Thorsten,

    There's not an interface option for that at this point and editing the core plugin code isn't something we can really support, but we're happy to provide some pointers.

    If you're comfortable with coding, yourself, you could have a look at the included gateway files in \pro-sites\pro-sites-files\gateways\ as they hold the button code as well.

    You'll see on line 1307 of gateway-paypal-express-pro.php, the output of the button for that gateway, to which you can make any adjustments, though it's my understanding that PayPal has requirements regarding the button.

    Hope this helps!

    -David

  • Tee

    Thanks David,

    unfortunatly I don't understand the code good enough. The main purpose is not that I want to use my own button but that I have to make changes as I can't use paypal express in Germany at the moment. If I don't find a way to transfer the data from the selected field in the check out prices of pro sites, then I have a serious problem.

    So I'm not asking for recoding but to let me know what are the variables that could feed the following (official) paypal button?

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick-subscriptions">
    <input type="hidden" name="business" value="mypaypal@email.com">
    <input type="hidden" name="lc" value="de_DE">
    <input type="hidden" name="item_name" value="Abo Button">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="no_shipping" value="2">
    <input type="hidden" name="rm" value="1">
    <input type="hidden" name="return" value="http://www.my-website.com/return">
    <input type="hidden" name="cancel_return" value="http://www.my-website.com/cancel">
    <input type="hidden" name="src" value="1"> <input type="hidden" name="a3" value="10.00">
    <input type="hidden" name="p3" value="1">
    <input type="hidden" name="t3" value="M">
    <input type="hidden" name="currency_code" value="EUR">
    <input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted"> <input type="image" src="https://www.sandbox.paypal.com/de_DE/DE/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="Jetzt einfach, schnell und sicher online bezahlen – mit PayPal.">
    <img alt="" border="0" src="https://www.sandbox.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </form>

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.