PayPal donate button redirect not to checkout but to paypal homepage

quantumzakat
Contributor
Contributor
As I mentioned above in the title. Would anybody give me an answer to correct this? Also, i can not donate/give my paypal balance from my personal account to this business account. What did I miss? My donate button is here: https://quantumzakat.id/campaigns/sudahkah-kita-terkena-wajib-zakat/ Thanks before.
Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Ciaran
Moderator
Moderator

Hey, the issue here is that the button on your side has no variables being passed over to us, can you try using code like this instead:

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

    <!-- Identify your business so that you can collect the payments. -->
    <input type="hidden" name="business"
        value="donations@kcparkfriends.org">

    <!-- Specify a Donate button. -->
    <input type="hidden" name="cmd" value="_donations">

    <!-- Specify details about the contribution -->
    <input type="hidden" name="item_name" value="Friends of the Park">
    <input type="hidden" name="item_number" value="Fall Cleanup Campaign">
    <input type="hidden" name="currency_code" value="USD">

    <!-- Display the payment button. -->
    <input type="image" name="submit"
    src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_donate_92x26.png"
    alt="Donate">
    <img alt="" width="1" height="1"
    src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >

</form>

See here for a full guide: 

https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/html_example_do...

View solution in original post

Login to Me Too
3 REPLIES 3

MTS_Nacho
Moderator
Moderator

 

Edited

Login to Me Too
Solved

MTS_Ciaran
Moderator
Moderator

Hey, the issue here is that the button on your side has no variables being passed over to us, can you try using code like this instead:

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

    <!-- Identify your business so that you can collect the payments. -->
    <input type="hidden" name="business"
        value="donations@kcparkfriends.org">

    <!-- Specify a Donate button. -->
    <input type="hidden" name="cmd" value="_donations">

    <!-- Specify details about the contribution -->
    <input type="hidden" name="item_name" value="Friends of the Park">
    <input type="hidden" name="item_number" value="Fall Cleanup Campaign">
    <input type="hidden" name="currency_code" value="USD">

    <!-- Display the payment button. -->
    <input type="image" name="submit"
    src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_donate_92x26.png"
    alt="Donate">
    <img alt="" width="1" height="1"
    src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >

</form>

See here for a full guide: 

https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/html_example_do...

Login to Me Too

quantumzakat
Contributor
Contributor

Thanks. It works.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.