nicuf

PayPal-Form Donation

Jul 8th, 2021 (edited)
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 6.70 KB | None | 0 0
  1. English: https://neculaifantanaru.com/en/how-can-i-make-in-css-html-a-donation-form-using-paypal-buttons.html
  2.  
  3. ----------HTML--------
  4.  
  5. <!-- Donation Form START -->
  6.         <div class="paypal-form" >
  7.             <div class="paypal-header">
  8.                 <h4 class="header-text">Donate via Paypal</h4>
  9.                 <img src="https://neculaifantanaru.com/paypal.png" alt="Alternate Text" />
  10.             </div>
  11.             <!-- Identify your business so that you can collect the payments. -->
  12.             <div class="paypal-body">
  13.                 <div class="col">
  14.                     <div class="body-text">
  15.                         <h4>RECURRENT DONATION</h4>
  16.                         <p>Donate monthly to support <br>the NeculaiFantanaru.com project</p>
  17.                     </div>
  18.                     <div class="paypal-content">
  19.                         <!-- PayPal DONATION BUTTON WITH COMBO BOX. -->
  20.  
  21.                         <form action="https://www.paypal.com/donate?hosted_button_id=XHH27KSZ3KQSC" method="post" class="den_webinar">
  22.  
  23.                             <!-- Identify your business so that you can collect the payments. -->
  24.                             <input type="hidden" name="business" value="[email protected]">
  25.  
  26.                             <!-- Specify a Donate button. -->
  27.                             <input type="hidden" name="cmd" value="_donations">
  28.  
  29.                             <!-- Specify details about the contribution -->
  30.                             <input type="hidden" name="item_name" value="Donation">
  31.                             <input type="hidden" name="item_number" value="Donation">
  32.                             <select name="amount"><option value="3.00">&euro;3.00</option><option value="5.00">&euro;5.00</option><option value="10.00">&euro;10.00</option><option value="25.00">&euro;25.00</option><option value="50.00">&euro;50.00</option></select>
  33.                             <input type="hidden" name="currency_code" value="EUR">
  34.  
  35.                             <!-- Display the payment button. -->
  36.                             <input class="paypal-img" type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
  37.                         </form>
  38.  
  39.  
  40.  
  41.  
  42.                     </div>
  43.                 </div>
  44.                 <div class="col">
  45.                     <div class="body-text">
  46.                         <h4>SINGLE DONATION</h4>
  47.                         <p>Donate the desired amount to support <br>the NeculaiFantanaru.com project</p>
  48.                     </div>
  49.                     <div class="paypal-content">
  50.                         <form action="https://www.paypal.com/donate" method="post" target="_top">
  51.                             <input type="hidden" name="hosted_button_id" value="77FLYC2Z7JBUL" />
  52.                             <input class="paypal-img" type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
  53.                             <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
  54.                         </form>
  55.                     </div>
  56.                 </div>
  57.  
  58.             </div>
  59.  
  60.         </div>
  61.         <div class="paypal-contact">
  62.             <h4>Donate by Bank Transfer</h4>
  63.             <p>
  64.                 <span>Account Ron: </span>
  65.                 RO34INGB0000999900448439</p>
  66.             <div class="text-muted">
  67.                 Open account at ING Bank
  68.             </div>
  69.         </div>
  70.        
  71. <!-- Donation Form Finnish -->
  72.  
  73.  
  74. ----------CSS--------
  75.  
  76. .paypal-form {
  77.     border: 2px solid #FFC734;
  78. }
  79. .paypal-form hr {
  80.     margin:0;
  81. }
  82. .paypal-form h4{
  83.     font-size:16px;
  84. }
  85.     .paypal-form .paypal-header {
  86.         display: flex;
  87.         align-items: center;
  88.         padding: 10px 20px;
  89.     }
  90.         .paypal-form .paypal-header .header-text {
  91.             margin-right: 15px;
  92.             color: #DF662F;
  93.             margin-top: 0;
  94.             margin-bottom: 0;
  95.             font-size:15px;
  96.         }
  97.     .paypal-form .paypal-header img{
  98.         width:100px;
  99.         height:30px;
  100.     }
  101.  
  102.     .paypal-form .paypal-body {
  103.         display: grid;
  104.         grid-template-columns: 1fr 1fr;
  105.         padding: 0;
  106.         border-top: 1px solid #efe9e9;
  107.     }
  108.         .paypal-form .paypal-body .col {
  109.             padding: 15px 15px;
  110.             padding-bottom:20px;
  111.         }
  112.             .paypal-form .paypal-body .col:first-child {
  113.                 border-right: 1px solid #efe9e9;
  114.             }
  115.  
  116.         .paypal-form .paypal-body h4 {
  117.             margin: 0;
  118.             background-color: #333333;
  119.             color: white;
  120.             display: inline-block;
  121.             padding: 3px 10px;
  122.             text-transform:uppercase;
  123.             font-size:14px;
  124.         }
  125.     .paypal-form .paypal-body p{
  126.         font-size:15px;
  127.         line-height:1.5;
  128.         margin-top:4px;
  129.     }
  130.     .paypal-form .paypal-content{
  131.         display:flex;
  132.         flex-direction:column;
  133.        
  134.     }
  135.     .paypal-form .paypal-content form {
  136.         display: flex;
  137.         flex-direction: column;
  138.     }
  139.         .paypal-form .paypal-content select {
  140.             height: 35px;
  141.             margin-bottom: 10px;
  142.             padding-left: 5px;
  143.             border: 1px solid #bdb5b5;
  144.         }
  145.         .paypal-form .paypal-content .paypal-img {
  146.             align-self: flex-start;
  147.             border:none !important;
  148.         }
  149.  
  150.         @media(max-width:768px){
  151.             .paypal-form .paypal-body {
  152.                 grid-template-columns: 1fr;                
  153.             }
  154.                 .paypal-form .paypal-body .col:first-child {
  155.                     border-bottom: 1px solid #efe9e9;
  156.                 }
  157.         }
  158.  
  159.  
  160.  
  161. .paypal-contact {
  162.     padding: 15px 20px;
  163.     padding-bottom:25px;
  164.     border: 2px solid #FFC734;
  165.     margin-top: 25px;
  166.     margin-bottom: 20px;
  167. }
  168. .paypal-contact * {
  169.     margin:0;
  170.     font-size:15px;
  171. }
  172.  
  173.    
  174.         .paypal-contact h4 {
  175.             color: #DF662F;
  176.             margin-bottom:15px;
  177.         }
  178.         .paypal-contact p {
  179.             margin-bottom: 8px;
  180.             font-weight:bold;
  181.         }
  182.         .paypal-contact p span {
  183.             color: dimgrey;
  184.             text-transform:uppercase;
  185.             font-weight:normal;
  186.             /*margin-bottom: 15px;*/
  187.         }
  188.         .paypal-contact .text-muted {
  189.             font-size:11px;
  190.             color:dimgrey;
  191.             /*margin-bottom: 15px;*/
  192.         }
  193.  
  194.  
  195. .paypal-form-button{
  196.     display:flex;
  197.     flex-direction:column;
  198. }
  199.  
  200.  
  201.  
Add Comment
Please, Sign In to add comment