From 1d0cdb42407f5505c0d0645f4ebe8a2546598bdd Mon Sep 17 00:00:00 2001
From: =?utf8?q?Benoi=CC=82t=20Pin?= <benoit.pin@gmail.com>
Date: Fri, 27 Sep 2013 02:56:34 +0200
Subject: [PATCH] Ajout bouton PayPal sur le formulaire de commande.

---
 skins/order_view_template.pt |  48 +++++++++++++++--------------------
 skins/paypal-button.png      | Bin 0 -> 1495 bytes
 2 files changed, 20 insertions(+), 28 deletions(-)
 create mode 100644 skins/paypal-button.png

diff --git a/skins/order_view_template.pt b/skins/order_view_template.pt
index 7582159..f3ba7d1 100644
--- a/skins/order_view_template.pt
+++ b/skins/order_view_template.pt
@@ -148,35 +148,27 @@
           <tr tal:define="checkout options/checkout|nothing" tal:condition="checkout">
             <td><br/></td>
             <td colspan="5">
-              <!-- <div style="text-align:right">
-                <form tal:attributes="action paymentRequest/URL" method="post" style="text-align:top">
-                  <input type="hidden" name="DATA" tal:attributes="value paymentRequest/DATA"/>
-                  <span i18n:translate="" style="font-size:110%;font-weight:bold;vertical-align:middle">Use one of these button to pay:</span>
-                  <span tal:repeat="mean paymentRequest/PAYMENT_MEANS">
-                    <input type="image" style="vertical-align:middle"
-                      tal:attributes="src python:'%s/cyberplus_logo/%s.gif' % (portal_url, mean);
-                                      name mean"/>    
-                  </span>
-                  <input type="hidden" name="noAjax" value="1"/>
-                </form>
-              </div> -->
-              <div>
-                <img tal:attributes="src string:$portal_url/cyberplus_logo/banque_populaire_logo.png"
-                     style="float:left;margin-right:1em"/>
-                <dl class="FieldHelp">
-                  <dd i18n:translate="">
-                    Please click over the button representing your credit card.
-                    You will leave temporarily this web site to pay your order
-                    on our bank partner payment site. After your payment, you
-                    will be able to come back to the store and get an invoice of
-                    your transaction.
-                  </dd>
-                  <dd i18n:translate="">
-                    This secured payment is provided by the Cyberplus™ payment
-                    service of "Banque Populaire".
-                  </dd>
-                </dl>
+              <div style="text-align:right">
+                <span i18n:translate="" tal:omit-tag="">Pay with PayPal:</span>
+                <a href="#" tal:attributes="href checkout/url"
+                   title="Pay with PayPal" i18n:attributes="title">
+                  <img tal:attributes="src string:$portal_url/paypal-button.png"
+                       width="72" height="45" style="vertical-align:middle"
+                       alt="Pay with PayPal" i18n:attributes="alt"/>
+                </a>
               </div>
+              <p i18n:translate="">
+                Please check the preceding table and proceed to payment. By
+                clicking on the PayPal button, you will temporarily leave the
+                site: you will be redirected to the payment provider PayPal.
+                Please follow given instructions. The transaction will be final
+                as soon as you are back on the <em i18n:name="site_name"
+                tal:content="portal_object/Title">portal title</em> site. For
+                your information, there is no need to create a PayPal account,
+                even if you will be prompted: you can simply use your credit
+                card. If you already have a PayPal account, you can, at your
+                convenience, pay by PayPal transfer or by credit card.
+              </p>
             </td>
           </tr>
         </tfoot>
diff --git a/skins/paypal-button.png b/skins/paypal-button.png
new file mode 100644
index 0000000000000000000000000000000000000000..ea785e320dca02b5f5bb6ae6a50664297db2a743
GIT binary patch
literal 1495
zcmV;|1t|K7P)<h;3K|Lk000e1NJLTq002k;001or0ssI2g0{N(0000PbVXQnQ*UN;
zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU%c}YY;RCwC#S$#}fRTS@lwX{IH(H6GR
z2LoY~Qrv(o6iPIH0Ab3y1fpnSX0{OhvkON5STbeCe-tuI_(P&#V&Y&MMu>(#U|X`J
zPwFNvGCoI~SzpC5KC(W(T0ZtX<+k_TwhtU12G_isN4f8w^X@yp^E>C<+uI#%OQ|Fj
zTLk>YyxtySsHQKQBUU<(Lz6KH$Au;^PQryMV`3;iWx&Kx6dC)UR7Fk<MKKh`a{u2l
z<`;?s_s7|}g<w@<dcsz{)#+O98=DCpH^fJ)BEz3>lD@H7r)z1&{N-@hJp9*bVmzN(
zr7&aF-`(gQ`YU)Mr9xI)Sy-H%vUy<5y${Y_{Zml%-qC%ZzLNYTlf2M)8+9@@kvWnn
z==9qsigQxVoX8ahCWs0eJLj(a;wQT1B&AVq5*RppHPM&1MwPPg4-2TZXRz9xJkNWT
zMwJ{frc=itI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