Advertisement
Charflow

gateways.html

Apr 11th, 2015
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.85 KB | None | 0 0
  1. {% extends base %}
  2. {% load currency %}
  3. {% load i18n %}
  4. {% block content %}
  5.  
  6.         <h2>Checkout</h2>
  7.             <form id="cart_gateways" method="post" action="/checkout/pay/"
  8.                  onsubmit="return Checkout($(this));">
  9.                 <input id="gateway_choice" type="hidden" name="gateway" value="">
  10.                 <table class="table checkout-gateway-list">
  11.                     {% for gateway in gateways %}
  12.                         <tr>
  13.                      
  14.                             {% if gateway.type == '1' %}
  15.                                 <td width="50%">
  16.                                     <!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="left"><tr><td align="center"></td></tr><tr><td align="center"><a href="https://www.paypal.com/webapps/mpp/paypal-popup" title="How PayPal Works" onclick="javascript:window.open('https://www.paypal.com/webapps/mpp/paypal-popup','WIPaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=1060, height=700'); return false;"><img src="https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-150px.png" border="0" alt="PayPal Logo"></a></td></tr></table><!-- PayPal Logo -->                         </td>
  17.                                 <td>
  18.                                     <input type="submit" name="{{ gateway.id }}"
  19.                                           class="gateway_submit btn btn-success pull-right"
  20.                                           value="Pay">
  21.                                 </td>
  22.                             {% elif gateway.type == '2' %}
  23.                                 <td width="50%">
  24.                                     <img class="img-responsive checkout-gateway-image"
  25.                                         src="http://www.paymentwall.com/images/buttons/logo2_big.png"
  26.                                         width="150" border="0" alt="PaymentWall Logo">
  27.                                 </td>
  28.                                 <td>
  29.                                     <input type="submit" name="{{ gateway.id }}"
  30.                                           class="gateway_submit btn btn-success pull-right"
  31.                                           value="Pay">
  32.                                 </td>
  33.  
  34.                             {% elif gateway.type == '3' %}
  35.                                 <td width="50%">
  36.                                     <img class="img-responsive checkout-gateway-image"
  37.                                         src="https://www.paygol.com/images/index_logo_main.png"
  38.                                         border="0" alt="PayGol Logo">
  39.                                 </td>
  40.                                 <td>
  41.                                     <input type="submit" name="{{ gateway.id }}"
  42.                                           class="gateway_submit btn btn-success pull-right"
  43.                                           value="Pay">
  44.                                 </td>
  45.  
  46.                             {% elif gateway.type == '4' %}
  47.                                 <td width="50%">
  48.                                     <img class="img-responsive checkout-gateway-image"
  49.                                         src="http://assets.minecraftmarket.com/static/img/google_wallet.png"
  50.                                         border="0" alt="PayGol Logo">
  51.                                 </td>
  52.                                 <td>
  53.                                     <input type="submit" name="{{ gateway.id }}"
  54.                                           class="gateway_submit btn btn-success pull-right"
  55.                                           value="Pay">
  56.                                 </td>
  57.  
  58.                             {% endif %}
  59.                         </tr>
  60.                     {% endfor %}
  61.                 </table>
  62.             </form>
  63.  
  64.  
  65. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement