Jump to content

Paramos kodas puslapiui Paypal


Ignas
 Share

Recommended Posts

Paprastas ir nesunkiai įdiegiamas paramos kodas paypal sąskaitai

<?php
$paypal_url='https://www.sandbox.paypal.com/cgi-bin/webscr'; // Paypal API URL
$paypal_id='vardas@gmail.com'; // Jūsų paypal sąskaitos el. paštas
?>
<h4>Parama : €1</h4>
    <div class="btn">
    <form action="<?php echo $paypal_url; ?>" method="post" name="frmPayPal1">
    <input type="hidden" name="business" value="<?php echo $paypal_id; ?>">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="item_name" value="Donation Payment">
    <input type="hidden" name="item_number" value="1">
    <input type="hidden" name="credits" value="510">
    <input type="hidden" name="userid" value="1">
    <input type="hidden" name="amount" value="1">
    <input type="hidden" name="cpp_header_image" value="test.jpg"> // Add Header Image
    <input type="hidden" name="no_shipping" value="1">
    <input type="hidden" name="currency_code" value="EUR"> // Kokia valiuta gaunama parama (nust. EUR)
    <input type="hidden" name="handling" value="0">
    <input type="hidden" name="cancel_return" value="cancel.php"> // Pridėkite atšaukimo nuorodą, jeigų atšaukė paramą
    <input type="hidden" name="return" value="success.php"> // Pridėkite padėkos nuorodą, jeigu parama įvyko sklandžiai
    <input type="image" src="https://www.sandbox.paypal.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.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form> 
    </div>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...