WooCommerce Stripe Payment Gateway - Version 4.1.8

Version Description

  • 2018-07-19 =
  • Fix - 3DS payment sometimes will create additional transaction in Stripe.
  • Fix - WC 2.6 with SEPA saved payment causing error on checkout.
  • Update - EPS logo.

See changelog for all versions.

=

Download this release

Release Info

Developer royho
Plugin Icon 128x128 WooCommerce Stripe Payment Gateway
Version 4.1.8
Comparing to
See all releases

Code changes from version 4.1.7 to 4.1.8

assets/images/eps.svg CHANGED
@@ -1 +1,144 @@
1
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 750 576.83" preserveAspectRatio="xMidYMid meet"><defs><style>.cls-1{fill:#3d2e7f;}.cls-2{fill:#d3d3d3;}.cls-3{fill:#cf157e;}</style></defs><title>eps</title><path class="cls-1" d="M380,0c-17.44,26.16-36.13,53.57-53.57,79.73H434.8C416.11,53.57,399.92,26.16,380,0Zm10,462.21c0-2.49,0-5-1.25-7.48a9.44,9.44,0,0,0-5-2.49c-5,1.25-6.23,6.23-6.23,10-5,1.25-6.23,5-5,8.72,1.24,0,3.74,1.25,6.23,1.25v21.18c1.24,5,10,5,10,0,1.25-6.23,0-13.71,0-19.94,2.5-1.24,5-1.24,7.48-2.49C398.67,467.19,394.93,463.46,390,462.21Zm71,1.25c-1.24-2.5-1.24-5-1.24-7.48a9.5,9.5,0,0,1-5-2.49,9.44,9.44,0,0,0-5,2.49c0,2.49-1.25,5-1.25,8.72H446c-1.24,1.25-2.49,2.49-2.49,3.74a15.08,15.08,0,0,0,6.23,6.23c0,7.47-1.25,13.7,1.25,21.18,1.24,5,6.23,3.73,10,2.49,2.5-7.48,1.25-16.2,1.25-24.92,2.49,0,3.74-1.24,6.23-1.24C467.19,467.19,466,463.46,461,463.46Zm-225.49-1.25c-3.74,6.23-6.23,12.46-8.73,18.69-2.49-5-3.73-11.22-6.23-16.2-2.49-3.74-10-1.24-8.72,2.49,1.25,8.72,7.48,17.44,10,26.17-1.25,6.22-6.23,11.21-1.25,17.44,3.74,0,7.48,0,7.48-3.74,5-12.46,11.21-24.92,14.95-38.62C244.19,464.7,239.2,463.46,235.47,462.21ZM289,463.46c-5-1.25-8.72,1.24-12.46,2.49-5-2.49-11.21-3.74-16.2-1.25-2.49-1.24-5-1.24-7.47-1.24-1.25,1.24-2.49,2.49-2.49,3.73v28.66c1.24,1.24,3.73,2.49,6.22,3.73,8.73-5,3.74-16.19,5-23.67,0-3.73,5-2.49,7.47-3.73,2.49,7.47,1.25,14.95,2.49,22.42,1.25,3.74,6.23,3.74,8.73,2.49,2.49-7.47,0-17.44,2.49-24.91,1.24,0,5,0,6.23-1.25,1.24,7.48,0,14.95,1.24,22.43,1.25,5,6.23,3.73,10,2.49a75.17,75.17,0,0,0,0-23.67C299,468.44,294,463.46,289,463.46Zm59.8,1.24c-3.74-2.49-7.48-1.24-10,2.49V494.6c1.25,5,6.23,3.74,10,2.49,1.24-7.47,0-13.7,0-21.18,0-1.24,1.24-2.49,2.49-3.73h6.23c1.24,3.73,1.24,7.47,1.24,11.21,0,5-1.24,12.46,5,14.95,1.24-1.25,3.73-1.25,5-2.49,1.25-8.72,2.49-17.44,0-26.17C366.28,462.21,356.31,461,348.84,464.7Zm87.21,13.71c-3.74-2.5-8.72-2.5-10-6.23,5,1.24,10,3.73,14.95,2.49-1.25-2.49,1.25-7.48-2.49-8.72-5-2.49-10-2.49-15-1.25-7.48,2.49-10,12.46-3.74,17.44,3.74,3.74,10,5,13.7,7.48-5,1.24-8.72-1.25-13.7-2.49-3.74,0-6.23,3.73-5,6.23,6.23,7.47,18.68,7.47,24.91,0C444.77,488.37,442.28,480.9,436.05,478.41Zm81-13.71c-2.5-1.24-5-1.24-8.72-1.24-2.5,7.47-1.25,16.19-1.25,23.67,0,3.73,0,6.23,1.25,10,2.49,2.49,6.22,0,8.72,0,1.24-7.47,0-14.95,1.24-22.42,1.25-3.74,8.72-3.74,8.72,0,1.25,7.47,0,14.95,1.25,22.42,3.74,1.25,10,1.25,10-3.73,0-7.48,1.24-16.2-1.25-23.68C533.22,462.21,524.5,462.21,517,464.7ZM642.86,466c-1.25-3.74-7.48-2.49-10-1.25-3.74-1.24-7.47-2.49-10,1.25-1.24,10,0,18.68,0,28.65,0,5,8.72,5,10,0,1.25-6.23,0-12.46,1.25-17.44C636.63,473.42,646.59,472.18,642.86,466ZM103.41,489.62c-2.5-1.25-5-5-7.48-2.49-5,2.49-12.46,3.73-16.2-1.25,7.48-2.49,16.2,0,23.68-3.74,0-10-7.48-19.93-17.45-19.93-12.46,0-21.18,16.2-14.95,26.16C76,502.08,97.18,502.08,103.41,489.62ZM86,472.18c3.74-1.25,5,2.49,7.48,5H81C81,474.67,82.23,472.18,86,472.18Zm244.19-3.74a16.24,16.24,0,0,0-23.67-1.25c-7.48,7.48-7.48,21.18,1.24,27.41,7.48,5,18.69,3.74,26.17-2.49,1.24-2.49,0-5,0-7.48-5-1.24-8.72,1.25-13.71,2.5-3.73,0-6.23-2.5-8.72-3.74h21.18C337.62,479.65,333.89,472.18,330.15,468.44Zm-18.69,8.72c1.25-2.49,3.74-6.23,7.48-5,2.49,0,2.49,2.49,3.73,5ZM160.71,464.7c-5-2.49-10-1.24-15,0-2.49-1.24-6.23-1.24-8.72-1.24-3.73,11.21-1.24,22.42-1.24,33.63,0,5-1.25,12.46,3.73,14.95,8.73,1.25,7.48-8.72,7.48-14.95,3.74,1.25,8.72,2.49,13.7,0C171.93,492.11,171.93,472.18,160.71,464.7ZM157,484.63c-1.25,5-8.72,5-10,0-2.49-3.73,0-7.47,0-11.21a9.51,9.51,0,0,1,5-2.49C157,474.67,159.47,480.9,157,484.63Zm47.34-19.93c-2.49-2.49-6.23,0-8.72,1.25-5-2.49-12.46-3.74-17.44,1.24-10,7.48-8.72,27.41,3.73,31.15,3.74,2.49,8.72,0,12.46-1.25,2.49,1.25,6.23,1.25,10,1.25,1.24-8.72,0-17.44,0-26.16C205.56,469.68,206.81,466,204.32,464.7Zm-10,17.44c0,3.74-5,8.72-8.72,5-6.23-5-3.74-14.95,3.74-16.2C193.11,474.67,195.6,478.41,194.35,482.14ZM489.62,464.7c-3.74-2.49-8.72-2.49-12.46-1.24-13.7,5-15,27.4-1.25,33.63,5,2.49,10,1.25,13.71-1.24,2.49,2.49,6.23,1.24,10,1.24a151.27,151.27,0,0,0,0-33.63C495.85,463.46,492.11,463.46,489.62,464.7Zm-8.72,23.67c-5-2.49-6.23-12.46-1.25-14.95,3.74-3.74,8.72,2.49,8.72,6.23C489.62,484.63,485.88,489.62,480.9,488.37ZM565.61,451c-1.24,3.73,0,8.72,0,12.46-5,0-10-1.25-13.7,0-12.46,6.22-12.46,26.16,0,33.63,5,2.49,10,1.25,13.7,0,2.5,0,6.23,2.49,8.73,0,2.49-3.73,1.24-7.47,1.24-11.21V453.49C574.34,448.5,568.11,447.26,565.61,451Zm-5,37.37c-5,2.49-10-3.74-8.72-7.47,0-3.74,3.74-6.23,6.23-8.72C564.37,474.67,566.86,483.39,560.63,488.37Zm43.61-23.67c-5-1.24-10-2.49-13.71,0-12.46,6.23-12.46,28.66,1.25,33.64,3.73,2.49,8.72,0,12.46-1.25,3.73,1.25,8.72,2.49,10-1.24,0-10,1.25-21.18-1.24-32.39C609.22,463.46,606.73,464.7,604.24,464.7Zm-3.74,22.43c-5,3.73-10-2.5-10-7.48,0-3.74,3.74-6.23,6.23-8.72C603,474.67,605.48,482.14,600.5,487.13Zm66,10c3.74,1.25,8.72,2.49,11.21-2.49,1.25-13.7,0-27.41,0-42.36-2.49-2.49-5-5-7.47-3.74-5,2.5-2.5,10-2.5,15-5-1.25-11.21-2.5-16.19,1.24-8.72,7.48-10,22.43,0,29.9C655.32,499.58,661.54,499.58,666.53,497.09Zm-10-22.42a9.44,9.44,0,0,1,5-2.49c6.23,2.49,7.48,12.45,1.25,16.19C655.32,490.86,652.82,479.65,656.56,474.67Zm-530.73,0H108.39c-2.49,3.74-2.49,7.47,1.24,10,6.23-1.24,12.46,1.25,17.45-2.49C129.57,479.65,129.57,475.91,125.83,474.67ZM0,576.83H108.39c-17.44-27.41-36.13-53.57-53.57-81C36.13,522,18.69,549.42,0,576.83Zm696.43-79.74h0c-19.93,26.17-37.38,52.33-54.82,79.74H750C731.31,549.42,713.87,523.26,696.43,497.09Z"/><path class="cls-2" d="M656.56,260.38c-12.46-12.46-28.65-17.44-44.85-23.67-7.47-3.74-16.2-6.23-22.42-12.46-5-5-3.74-14.95,2.49-17.44,5-2.49,10-2.49,15-2.49,14.95,0,29.9,5,39.86,15,1.25-2.49,2.5-5,2.5-7.48,5-12.45,10-23.67,13.7-36.13a158.14,158.14,0,0,0-48.59-14.95c-18.69-1.24-38.62,0-56.06,8.73C546.93,175.66,537,184.39,532,195.6c-6.23,15-5,33.64,5,47.34,7.48,12.46,21.18,21.18,34.88,28.65,12.46,6.23,26.17,10,37.38,18.69,6.23,5,8.72,12.46,6.23,19.94-3.74,7.47-13.71,7.47-21.18,7.47-12.46,0-26.16-3.74-36.13-11.21-3.74-2.49-6.23-5-10-7.48-7.47,14.95-13.7,29.9-19.93,44.85,12.46,6.23,24.92,13.71,38.62,16.2s27.41,2.49,41.11,1.25c16.2-2.5,33.64-7.48,46.1-18.69C680.23,322.67,680.23,281.56,656.56,260.38ZM238,169.44c-11.22-6.23-23.67-8.73-36.13-10-29.9-2.49-61.05,6.23-82.23,28.65C94.68,211.79,87.21,246.68,91,279.07c2.49,23.67,13.7,47.34,33.63,63.54,22.43,17.44,51.08,21.18,78.49,18.69,22.43-1.25,44.85-7.48,62.3-21.18-6.23-11.22-12.46-23.67-17.45-34.89l-3.73-7.47A80.39,80.39,0,0,1,228,310.22c-10,5-21.18,6.23-32.39,6.23-10,0-21.18-1.25-29.9-7.48-10-6.23-16.2-17.44-18.69-29.9H281.56c3.74-13.7,6.23-28.65,3.74-42.36C282.81,208.06,264.12,183.14,238,169.44ZM149.5,238c2.49-7.48,6.23-15,11.21-19.94,5-6.23,13.71-8.72,21.18-11.21,8.72,0,18.69,2.49,24.92,8.72s10,14.95,12.46,22.43C195.6,238,173.17,236.71,149.5,238Zm338.87-41.12c-8.72-13.7-22.42-23.67-37.37-29.9-11.22-5-24.92-6.23-37.38-7.47-11.21-1.25-23.67,2.49-34.88,5-19.94-2.49-41.12-2.49-61.05-1.24V431.06h53.57V356.31c5,1.25,8.72,2.49,13.71,3.74,11.21,2.49,22.42,2.49,33.63,1.25,22.43-2.5,44.86-11.22,59.81-27.41,21.17-21.18,26.16-52.33,24.91-81C503.32,233,499.58,213,488.37,196.84Zm-41.11,81c-1.25,14.95-10,29.9-24.92,33.64-11.21,3.74-26.16,5-36.13-2.49-1.24-6.23,0-12.46-1.24-18.69V223c0-2.5,0-5,1.24-7.48,3.74-3.74,7.48-5,12.46-7.47,16.2-2.5,36.13,3.73,43.61,18.68S449.75,260.38,447.26,277.82Z"/><path class="cls-3" d="M644.1,247.92c-12.46-12.45-28.65-17.44-44.85-23.67-7.47-3.74-16.19-6.23-22.42-12.46-5-5-3.74-14.95,2.49-17.44,5-2.49,10-2.49,14.95-2.49,15,0,29.9,5,39.87,14.95,1.24-2.49,2.49-5,2.49-7.47,5-12.46,10-23.68,13.7-36.13a157.51,157.51,0,0,0-48.59-15c-18.68-1.25-38.62,0-56.06,8.72-11.21,6.23-21.18,15-26.16,26.16-6.23,15-5,33.64,5,47.34,7.48,12.46,21.18,21.18,34.89,28.66,12.45,6.23,26.16,10,37.37,18.68,6.23,5,8.72,12.46,6.23,19.94-3.74,7.47-13.7,7.47-21.18,7.47-12.46,0-26.16-3.73-36.13-11.21-3.74-2.49-6.23-5-10-7.48-7.47,15-13.7,29.91-19.93,44.86,12.46,6.22,24.92,13.7,38.62,16.19s27.41,2.49,41.11,1.25c16.2-2.49,33.64-7.48,46.1-18.69C667.77,310.22,667.77,269.1,644.1,247.92ZM225.5,157c-11.21-6.23-23.67-8.72-36.13-10-29.9-2.49-61.05,6.23-82.23,28.65-24.91,23.68-32.39,58.56-28.65,91C81,290.28,92.19,314,112.13,330.15c22.42,17.44,51.08,21.18,78.48,18.69,22.43-1.25,44.86-7.48,62.3-21.18-6.23-11.21-12.46-23.67-17.44-34.89q-1.87-3.74-3.74-7.47a80.39,80.39,0,0,1-16.2,12.46c-10,5-21.18,6.23-32.39,6.23-10,0-21.18-1.25-29.9-7.48-10-6.23-16.2-17.44-18.69-29.9H269.1c3.74-13.7,6.23-28.65,3.74-42.36C270.35,195.6,251.66,170.68,225.5,157ZM137,225.5c2.49-7.48,6.23-14.95,11.22-19.94,5-6.22,13.7-8.72,21.18-11.21,8.72,0,18.68,2.49,24.91,8.72s10,15,12.46,22.43C183.14,225.5,160.71,224.25,137,225.5Zm338.87-41.11c-8.72-13.71-22.42-23.68-37.37-29.9-11.21-5-24.92-6.23-37.38-7.48-11.21-1.25-23.67,2.49-34.88,5-19.93-2.49-41.11-2.49-61-1.24V418.6H358.8V343.85c5,1.25,8.72,2.5,13.71,3.74,11.21,2.49,22.42,2.49,33.64,1.25,22.42-2.49,44.85-11.22,59.8-27.41,21.18-21.18,26.16-52.33,24.91-81C490.86,220.51,487.13,200.58,475.91,184.39Zm-41.11,81c-1.25,14.95-10,29.9-24.92,33.63-11.21,3.74-26.16,5-36.13-2.49-1.24-6.23,0-12.46-1.24-18.69V210.55c0-2.49,0-5,1.24-7.48,3.74-3.73,7.48-5,12.46-7.47,16.2-2.49,36.13,3.74,43.61,18.69S437.29,247.92,434.8,265.37Z"/></svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 750 576.8" style="enable-background:new 0 0 750 576.8;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#676A6A;}
7
+ .st1{fill:none;stroke:#67696A;stroke-width:13;stroke-miterlimit:10;}
8
+ .st2{fill:#B40F6B;}
9
+ .st3{display:none;fill:none;}
10
+ .st4{display:none;fill:#3D2E7F;}
11
+ .st5{display:none;fill:#D3D3D3;}
12
+ .st6{display:none;fill:#CF157E;}
13
+ </style>
14
+ <symbol id="EPS-Logo" viewBox="-385 -236.3 770 472.8">
15
+ <path id="XMLID_367_" class="st0" d="M219,0L219,0h-61.3c-6.8,0-12.4,5.4-12.4,12.2S150.9,25,157.7,25H251v46h-93.3
16
+ c-32.5,0-59-26.5-59-59s26.5-59,59-59h60.4c6.8,0,12.4-5.4,12.4-12.2c0-6.8-5.5-11.8-12.4-11.8H88.6c-11-21-21.7-39-43.4-48H219
17
+ l0,0c32,0.5,58.2,27.5,58.2,59.7C277.2-27.1,251-0.5,219,0z"/>
18
+ <g id="XMLID_207_">
19
+ <g id="XMLID_208_">
20
+ <path id="XMLID_209_" class="st1" d="M-86.6-223.6"/>
21
+ </g>
22
+ </g>
23
+ <path id="XMLID_201_" class="st0" d="M-15.8,71C-67.7,71-110,28.5-110-23.8c0-0.6,0-2,0-2V-221h47v102h47.1c51.9,0,94,43.1,94,95.4
24
+ C78.1,28.6,36.1,71-15.8,71z M-15.8-71H-63v47.4c0,26.5,21.1,48,47.2,48s47.4-21.5,47.4-48C31.6-50.1,10.3-71-15.8-71z"/>
25
+ <g id="XMLID_196_">
26
+ <g id="XMLID_198_">
27
+ <path id="XMLID_200_" class="st2" d="M-258.8-119c-44.4,0-81.8,31.7-91.9,73c0,0-2.9,13.7-2.9,22.7s2.8,22.8,2.8,22.8
28
+ c10.2,41.3,47.5,72,91.9,72c52.2,0,95-42.4,95-94.6V-46h-138.6c8.2-16,24.7-25,43.8-25h124.6l0.2,135.3
29
+ c0,20.2-16.5,36.7-36.7,36.7h-176.6c-20.2,0-36.7-16-36.7-36.2v-176.6c0-20.2,16.5-37.2,36.7-37.2h176.6c18.1,0,33.2,13,36.1,30
30
+ H-258.8z"/>
31
+ <path id="XMLID_199_" class="st2" d="M-259,26.6c-19,0-35.6-11.6-43.8-26.6h87.6C-223.4,15-240,26.6-259,26.6z"/>
32
+ </g>
33
+ <path id="XMLID_197_" class="st2" d="M-179,158.4c0,43.1-35.8,78.1-80,78.1c-43.5,0-78.8-33.8-80-75.9c0-0.2,0-0.4,0-0.5v-23.5
34
+ c0-2.8,2.3-5.6,5.2-5.6h29.4c2.9,0,5.4,2.8,5.4,5.6v21.9l0,0c0,21.5,17.9,39,40,39s40-17.5,40-39v-21.9c0-2.8,2.3-5.6,5.2-5.6
35
+ h29.4c2.9,0,5.3,2.8,5.3,5.6V158.4L-179,158.4z"/>
36
+ </g>
37
+ <g id="XMLID_13_">
38
+ <path id="XMLID_192_" class="st0" d="M36.9-180l-4.3-24.1c-2.1-12.2-10.1-17.8-20.9-17.8c-9.2,0-16.3,6-14.2,17.7L1.8-180h6.6
39
+ l-4.3-24.1c-1.3-7.5,2.1-11.8,8.5-11.8c6.6,0,12.2,3.9,13.5,11.8l4.3,24.1H36.9z M11.2-172.5c0-2,1.5-3,3.2-3
40
+ c2.1,0,4.3,1.5,4.3,4.3c0,1.9-1.3,3-3,3C13.5-168.2,11.2-169.6,11.2-172.5z M25.3-172.4c0-2.1,1.6-3,3.3-3c1.8,0,4.3,1.5,4.3,4.2
41
+ c0,1.9-1.4,3-3,3C27.8-168.2,25.3-169.6,25.3-172.4z"/>
42
+ <path id="XMLID_189_" class="st0" d="M52.8-180l-3-16.7c2.5,3.4,7.6,5.2,11.2,5.2c7.3,0,12.4-4.3,12.4-12.3
43
+ c0-11.3-7.9-18.1-17.9-18.1c-3.9,0-7.2,1.4-9.2,5.1l-1.1-4.3h-5.7l7.3,41H52.8z M48.2-208.1c-0.2-4.8,2.9-8,7.4-8
44
+ c5.7,0,11.3,4.4,11.6,11.2c0.2,4.9-3,7.8-7.4,7.8C54.2-197.1,48.5-201.7,48.2-208.1z"/>
45
+ <path id="XMLID_186_" class="st0" d="M85.4-209c-0.2-4,2.9-7.3,8.2-7.3c3,0,6.9,1.2,9,3.2l3.3-3.8c-3.6-3.3-8.9-5-13.4-5
46
+ c-8.4,0-13.3,5-13.3,12.7c0,10.2,8,17.8,18.3,17.8c9.4,0,14.7-5.7,11.5-17.7H85.4z M104.1-204c0.5,5-2.5,7-7.4,7
47
+ c-4.4,0-8.5-2-10.3-7H104.1z"/>
48
+ <path id="XMLID_184_" class="st0" d="M125.3-192l-0.3-3.9c2.8,3.7,6.3,4.5,9.4,4.5c2.8,0,5.4-1,6.7-2.5l-3.7-5.3
49
+ c-1.3,1.2-2.6,1.8-4.8,1.8c-4.2,0-8.3-2.5-9.3-7.9l-2.8-15.7h-6.1l5.1,29H125.3z"/>
50
+ <path id="XMLID_182_" class="st0" d="M170.5-192l3.1-22.9l11.1,22.9h6.8l-15.3-29H169l-2.9,19.1l-4.7-9.5l-5.1-9.6h-7.1l-5.1,29
51
+ h6.9l3-22.9l11.2,22.9H170.5z"/>
52
+ <path id="XMLID_179_" class="st0" d="M199.3-209c-0.2-4,2.9-7.3,8.2-7.3c3,0,6.9,1.2,9,3.2l3.3-3.8c-3.6-3.3-8.9-5-13.4-5
53
+ c-8.4,0-13.3,5-13.3,12.7c0,10.2,8,17.8,18.3,17.8c9.4,0,14.7-5.7,11.5-17.7H199.3z M217.9-204c0.5,5-2.5,7-7.4,7
54
+ c-4.4,0-8.5-2-10.3-7H217.9z"/>
55
+ <path id="XMLID_168_" class="st0" d="M239.6-192l-5.1-29h-6.1l5.1,29H239.6z M234.2-184.1c0-2.1,1.5-3.1,3.2-3.1
56
+ c2.4,0,4.6,1.5,4.6,4.4c0,2-1.5,3.1-3.1,3.1C236.7-179.7,234.2-181.1,234.2-184.1z"/>
57
+ <path id="XMLID_60_" class="st0" d="M266.6-199.2c-1.9,2.1-4.3,2.7-7.2,2.7c-4,0-6.9-1.4-6.9-3.9c0-2.1,2.3-3,5.7-3.3
58
+ c5.3-0.5,12.1-2.2,10.7-9.8c-1-5.4-6.4-8.6-14-8.6c-4.7,0-9.3,1.1-12.4,5.4l4,4.3c2.2-3,6-4.3,9.5-4.3c2.9,0,6.3,1.1,6.9,3.8
59
+ c0.5,2.6-1.8,3.6-6,4c-5,0.5-10.4,2.3-10.4,7.8c0,7.3,7.9,9.8,13.8,9.8c4.5,0,7.8-1,10.5-3.9L266.6-199.2z"/>
60
+ <path id="XMLID_57_" class="st0" d="M285.8-192l-2.8-15.6c-0.9-5,1.4-8.4,6.4-8.4c4.8,0,8.9,4,9.7,8.8l2.7,15.2h6.1l-5.1-29h-5.5
61
+ l0.4,4.2c-3.4-3.3-6.8-4.8-10.9-4.8c-7.2,0-11.4,5.1-9.9,13.9l2.8,15.6H285.8z"/>
62
+ <path id="XMLID_55_" class="st0" d="M334.7-221l2.8,15.5c0.9,5-0.8,8.4-6.4,8.4c-4.8,0-8.9-3.9-9.8-8.7l-2.7-15.2h-6.1l5.1,29h5.6
63
+ l-0.4-4.2c3.4,3.1,6.9,4.7,10.6,4.7c7.1,0,11.7-4.9,10.1-13.9l-2.8-15.6H334.7z"/>
64
+ <path id="XMLID_15_" class="st0" d="M355.3-225c-0.4-4,2.7-5.6,7.8-5.6c4.5,0,9.3,2.5,10.5,8.9l0.9,5c-2.7-3.7-7.5-5.2-11.1-5.2
65
+ c-7.5,0-12.7,4.4-12.7,12.5c0,11.5,8.5,18.1,18.1,18.1c4.1,0,7.7-1.9,9-5.2l1,4.6h5.9l-5.1-29.9c-1.9-11.1-10.1-14.5-17.6-14.5
66
+ c-9,0-14,4.3-12.7,11.3H355.3z M357-208.3c0-5,3.3-8,7.9-8c12.6,0,16,19.3,3.4,19.3C362.3-196.9,357-201.4,357-208.3z"/>
67
+ </g>
68
+ <rect id="XMLID_368_" x="-385" y="-236" class="st3" width="770" height="472"/>
69
+ </symbol>
70
+ <title>eps</title>
71
+ <path class="st4" d="M380,0c-17.4,26.2-36.1,53.6-53.6,79.7h108.4C416.1,53.6,399.9,26.2,380,0z M390,462.2c0-2.5,0-5-1.2-7.5
72
+ c-1.4-1.3-3.1-2.2-5-2.5c-5,1.2-6.2,6.2-6.2,10c-5,1.2-6.2,5-5,8.7c1.2,0,3.7,1.2,6.2,1.2v21.2c1.2,5,10,5,10,0
73
+ c1.2-6.2,0-13.7,0-19.9c2.5-1.2,5-1.2,7.5-2.5C398.7,467.2,394.9,463.5,390,462.2z M461,463.5c-1.2-2.5-1.2-5-1.2-7.5
74
+ c-1.9-0.3-3.6-1.2-5-2.5c-1.9,0.3-3.6,1.2-5,2.5c0,2.5-1.2,5-1.2,8.7H446c-1.2,1.2-2.5,2.5-2.5,3.7c1.4,2.7,3.6,4.8,6.2,6.2
75
+ c0,7.5-1.2,13.7,1.2,21.2c1.2,5,6.2,3.7,10,2.5c2.5-7.5,1.2-16.2,1.2-24.9c2.5,0,3.7-1.2,6.2-1.2C467.2,467.2,466,463.5,461,463.5z
76
+ M235.5,462.2c-3.7,6.2-6.2,12.5-8.7,18.7c-2.5-5-3.7-11.2-6.2-16.2c-2.5-3.7-10-1.2-8.7,2.5c1.2,8.7,7.5,17.4,10,26.2
77
+ c-1.2,6.2-6.2,11.2-1.2,17.4c3.7,0,7.5,0,7.5-3.7c5-12.5,11.2-24.9,14.9-38.6C244.2,464.7,239.2,463.5,235.5,462.2L235.5,462.2z
78
+ M289,463.5c-5-1.2-8.7,1.2-12.5,2.5c-5-2.5-11.2-3.7-16.2-1.2c-2.5-1.2-5-1.2-7.5-1.2c-1.2,1.2-2.5,2.5-2.5,3.7v28.7
79
+ c1.2,1.2,3.7,2.5,6.2,3.7c8.7-5,3.7-16.2,5-23.7c0-3.7,5-2.5,7.5-3.7c2.5,7.5,1.2,15,2.5,22.4c1.2,3.7,6.2,3.7,8.7,2.5
80
+ c2.5-7.5,0-17.4,2.5-24.9c1.2,0,5,0,6.2-1.2c1.2,7.5,0,15,1.2,22.4c1.2,5,6.2,3.7,10,2.5c1.3-7.8,1.3-15.8,0-23.7
81
+ C299,468.4,294,463.5,289,463.5z M348.8,464.7c-3.7-2.5-7.5-1.2-10,2.5v27.4c1.2,5,6.2,3.7,10,2.5c1.2-7.5,0-13.7,0-21.2
82
+ c0-1.2,1.2-2.5,2.5-3.7h6.2c1.2,3.7,1.2,7.5,1.2,11.2c0,5-1.2,12.5,5,15c1.2-1.2,3.7-1.2,5-2.5c1.2-8.7,2.5-17.4,0-26.2
83
+ C366.3,462.2,356.3,461,348.8,464.7L348.8,464.7z M436,478.4c-3.7-2.5-8.7-2.5-10-6.2c5,1.2,10,3.7,15,2.5c-1.2-2.5,1.2-7.5-2.5-8.7
84
+ c-5-2.5-10-2.5-15-1.2c-7.5,2.5-10,12.5-3.7,17.4c3.7,3.7,10,5,13.7,7.5c-5,1.2-8.7-1.2-13.7-2.5c-3.7,0-6.2,3.7-5,6.2
85
+ c6.2,7.5,18.7,7.5,24.9,0C444.8,488.4,442.3,480.9,436,478.4L436,478.4z M517,464.7c-2.5-1.2-5-1.2-8.7-1.2
86
+ c-2.5,7.5-1.2,16.2-1.2,23.7c0,3.7,0,6.2,1.2,10c2.5,2.5,6.2,0,8.7,0c1.2-7.5,0-15,1.2-22.4c1.2-3.7,8.7-3.7,8.7,0
87
+ c1.2,7.5,0,15,1.2,22.4c3.7,1.2,10,1.2,10-3.7c0-7.5,1.2-16.2-1.2-23.7C533.2,462.2,524.5,462.2,517,464.7L517,464.7z M642.9,466
88
+ c-1.2-3.7-7.5-2.5-10-1.2c-3.7-1.2-7.5-2.5-10,1.2c-1.2,10,0,18.7,0,28.6c0,5,8.7,5,10,0c1.2-6.2,0-12.5,1.2-17.4
89
+ C636.6,473.4,646.6,472.2,642.9,466z M103.4,489.6c-2.5-1.2-5-5-7.5-2.5c-5,2.5-12.5,3.7-16.2-1.2c7.5-2.5,16.2,0,23.7-3.7
90
+ c0-10-7.5-19.9-17.5-19.9c-12.5,0-21.2,16.2-14.9,26.2C76,502.1,97.2,502.1,103.4,489.6z M86,472.2c3.7-1.2,5,2.5,7.5,5H81
91
+ C81,474.7,82.2,472.2,86,472.2z M330.2,468.4c-5.8-6.9-16-7.7-22.9-2c-0.3,0.2-0.5,0.5-0.8,0.7c-7.5,7.5-7.5,21.2,1.2,27.4
92
+ c7.5,5,18.7,3.7,26.2-2.5c1.2-2.5,0-5,0-7.5c-5-1.2-8.7,1.2-13.7,2.5c-3.7,0-6.2-2.5-8.7-3.7h21.2
93
+ C337.6,479.6,333.9,472.2,330.2,468.4L330.2,468.4z M311.5,477.2c1.2-2.5,3.7-6.2,7.5-5c2.5,0,2.5,2.5,3.7,5H311.5z M160.7,464.7
94
+ c-5-2.5-10-1.2-15,0c-2.5-1.2-6.2-1.2-8.7-1.2c-3.7,11.2-1.2,22.4-1.2,33.6c0,5-1.2,12.5,3.7,15c8.7,1.2,7.5-8.7,7.5-15
95
+ c3.7,1.2,8.7,2.5,13.7,0C171.9,492.1,171.9,472.2,160.7,464.7z M157,484.6c-1.2,5-8.7,5-10,0c-2.5-3.7,0-7.5,0-11.2
96
+ c1.4-1.3,3.1-2.2,5-2.5C157,474.7,159.5,480.9,157,484.6z M204.3,464.7c-2.5-2.5-6.2,0-8.7,1.2c-5-2.5-12.5-3.7-17.4,1.2
97
+ c-10,7.5-8.7,27.4,3.7,31.1c3.7,2.5,8.7,0,12.5-1.2c2.5,1.2,6.2,1.2,10,1.2c1.2-8.7,0-17.4,0-26.2
98
+ C205.6,469.7,206.8,466,204.3,464.7L204.3,464.7z M194.3,482.1c0,3.7-5,8.7-8.7,5c-6.2-5-3.7-15,3.7-16.2
99
+ C193.1,474.7,195.6,478.4,194.3,482.1L194.3,482.1z M489.6,464.7c-3.7-2.5-8.7-2.5-12.5-1.2c-13.7,5-15,27.4-1.2,33.6
100
+ c5,2.5,10,1.2,13.7-1.2c2.5,2.5,6.2,1.2,10,1.2c1.2-11.2,1.2-22.5,0-33.6C495.9,463.5,492.1,463.5,489.6,464.7z M480.9,488.4
101
+ c-5-2.5-6.2-12.5-1.2-15c3.7-3.7,8.7,2.5,8.7,6.2C489.6,484.6,485.9,489.6,480.9,488.4L480.9,488.4z M565.6,451
102
+ c-1.2,3.7,0,8.7,0,12.5c-5,0-10-1.2-13.7,0c-12.5,6.2-12.5,26.2,0,33.6c5,2.5,10,1.2,13.7,0c2.5,0,6.2,2.5,8.7,0
103
+ c2.5-3.7,1.2-7.5,1.2-11.2v-32.4C574.3,448.5,568.1,447.3,565.6,451z M560.6,488.4c-5,2.5-10-3.7-8.7-7.5c0-3.7,3.7-6.2,6.2-8.7
104
+ C564.4,474.7,566.9,483.4,560.6,488.4L560.6,488.4z M604.2,464.7c-5-1.2-10-2.5-13.7,0c-12.5,6.2-12.5,28.7,1.2,33.6
105
+ c3.7,2.5,8.7,0,12.5-1.2c3.7,1.2,8.7,2.5,10-1.2c0-10,1.2-21.2-1.2-32.4C609.2,463.5,606.7,464.7,604.2,464.7L604.2,464.7z
106
+ M600.5,487.1c-5,3.7-10-2.5-10-7.5c0-3.7,3.7-6.2,6.2-8.7C603,474.7,605.5,482.1,600.5,487.1L600.5,487.1z M666.5,497.1
107
+ c3.7,1.2,8.7,2.5,11.2-2.5c1.2-13.7,0-27.4,0-42.4c-2.5-2.5-5-5-7.5-3.7c-5,2.5-2.5,10-2.5,15c-5-1.2-11.2-2.5-16.2,1.2
108
+ c-8.7,7.5-10,22.4,0,29.9C655.3,499.6,661.5,499.6,666.5,497.1L666.5,497.1z M656.5,474.7c1.4-1.3,3.1-2.2,5-2.5
109
+ c6.2,2.5,7.5,12.5,1.2,16.2C655.3,490.9,652.8,479.6,656.5,474.7L656.5,474.7z M125.8,474.7h-17.4c-2.5,3.7-2.5,7.5,1.2,10
110
+ c6.2-1.2,12.5,1.2,17.5-2.5C129.6,479.6,129.6,475.9,125.8,474.7L125.8,474.7z M0,576.8h108.4c-17.4-27.4-36.1-53.6-53.6-81
111
+ C36.1,522,18.7,549.4,0,576.8z M696.4,497.1L696.4,497.1c-19.9,26.2-37.4,52.3-54.8,79.7H750C731.3,549.4,713.9,523.3,696.4,497.1
112
+ L696.4,497.1z"/>
113
+ <path class="st5" d="M656.6,260.4c-12.5-12.5-28.7-17.4-44.8-23.7c-7.5-3.7-16.2-6.2-22.4-12.5c-5-5-3.7-14.9,2.5-17.4
114
+ c5-2.5,10-2.5,15-2.5c15,0,29.9,5,39.9,15c1.2-2.5,2.5-5,2.5-7.5c5-12.4,10-23.7,13.7-36.1c-15.3-7.6-31.7-12.6-48.6-14.9
115
+ c-18.7-1.2-38.6,0-56.1,8.7c-11.3,6.2-21.2,14.9-26.2,26.1c-6.2,15-5,33.6,5,47.3c7.5,12.5,21.2,21.2,34.9,28.6
116
+ c12.5,6.2,26.2,10,37.4,18.7c6.2,5,8.7,12.5,6.2,19.9c-3.7,7.5-13.7,7.5-21.2,7.5c-12.5,0-26.2-3.7-36.1-11.2c-3.7-2.5-6.2-5-10-7.5
117
+ c-7.5,15-13.7,29.9-19.9,44.9c12.5,6.2,24.9,13.7,38.6,16.2s27.4,2.5,41.1,1.2c16.2-2.5,33.6-7.5,46.1-18.7
118
+ C680.2,322.7,680.2,281.6,656.6,260.4z M238,169.4c-11.2-6.2-23.7-8.7-36.1-10c-29.9-2.5-61.1,6.2-82.2,28.6
119
+ c-25,23.7-32.4,58.6-28.6,91c2.5,23.7,13.7,47.3,33.6,63.5c22.4,17.4,51.1,21.2,78.5,18.7c22.4-1.2,44.9-7.5,62.3-21.2
120
+ c-6.2-11.2-12.5-23.7-17.4-34.9l-3.7-7.5c-4.9,4.8-10.3,9-16.2,12.5c-10,5-21.2,6.2-32.4,6.2c-10,0-21.2-1.2-29.9-7.5
121
+ c-10-6.2-16.2-17.4-18.7-29.9h134.5c3.7-13.7,6.2-28.6,3.7-42.4C282.8,208.1,264.1,183.1,238,169.4z M149.5,238
122
+ c2.5-7.5,6.2-15,11.2-19.9c5-6.2,13.7-8.7,21.2-11.2c8.7,0,18.7,2.5,24.9,8.7s10,14.9,12.5,22.4C195.6,238,173.2,236.7,149.5,238z
123
+ M488.4,196.9c-8.7-13.7-22.4-23.7-37.4-29.9c-11.2-5-24.9-6.2-37.4-7.5c-11.2-1.2-23.7,2.5-34.9,5c-19.9-2.5-41.1-2.5-61-1.2v267.8
124
+ h53.6v-74.8c5,1.2,8.7,2.5,13.7,3.7c11.2,2.5,22.4,2.5,33.6,1.2c22.4-2.5,44.9-11.2,59.8-27.4c21.2-21.2,26.2-52.3,24.9-81
125
+ C503.3,233,499.6,213,488.4,196.9L488.4,196.9z M447.3,277.9c-1.2,15-10,29.9-24.9,33.6c-11.2,3.7-26.2,5-36.1-2.5
126
+ c-1.2-6.2,0-12.5-1.2-18.7V223c0-2.5,0-5,1.2-7.5c3.7-3.7,7.5-5,12.5-7.5c16.2-2.5,36.1,3.7,43.6,18.7S449.8,260.4,447.3,277.9
127
+ L447.3,277.9z"/>
128
+ <path class="st6" d="M644.1,247.9c-12.5-12.4-28.7-17.4-44.8-23.7c-7.5-3.7-16.2-6.2-22.4-12.5c-5-5-3.7-14.9,2.5-17.4
129
+ c5-2.5,10-2.5,15-2.5c15,0,29.9,5,39.9,14.9c1.2-2.5,2.5-5,2.5-7.5c5-12.5,10-23.7,13.7-36.1c-15.3-7.6-31.7-12.7-48.6-15
130
+ c-18.7-1.2-38.6,0-56.1,8.7c-11.2,6.2-21.2,15-26.2,26.2c-6.2,15-5,33.6,5,47.3c7.5,12.5,21.2,21.2,34.9,28.7
131
+ c12.5,6.2,26.2,10,37.4,18.7c6.2,5,8.7,12.5,6.2,19.9c-3.7,7.5-13.7,7.5-21.2,7.5c-12.5,0-26.2-3.7-36.1-11.2c-3.7-2.5-6.2-5-10-7.5
132
+ c-7.5,15-13.7,29.9-19.9,44.9c12.5,6.2,24.9,13.7,38.6,16.2s27.4,2.5,41.1,1.2c16.2-2.5,33.6-7.5,46.1-18.7
133
+ C667.8,310.2,667.8,269.1,644.1,247.9z M225.5,157c-11.2-6.2-23.7-8.7-36.1-10c-29.9-2.5-61.1,6.2-82.2,28.6
134
+ c-24.9,23.7-32.4,58.6-28.7,91c2.5,23.6,13.7,47.4,33.6,63.5c22.4,17.4,51.1,21.2,78.5,18.7c22.4-1.2,44.9-7.5,62.3-21.2
135
+ c-6.2-11.2-12.5-23.7-17.4-34.9c-1.2-2.5-2.5-5-3.7-7.5c-4.8,4.8-10.3,9-16.2,12.5c-10,5-21.2,6.2-32.4,6.2c-10,0-21.2-1.2-29.9-7.5
136
+ c-10-6.2-16.2-17.4-18.7-29.9h134.6c3.7-13.7,6.2-28.6,3.7-42.4C270.4,195.6,251.7,170.7,225.5,157z M137,225.5
137
+ c2.5-7.5,6.2-14.9,11.2-19.9c5-6.2,13.7-8.7,21.2-11.2c8.7,0,18.7,2.5,24.9,8.7s10,15,12.5,22.4C183.1,225.5,160.7,224.2,137,225.5z
138
+ M475.9,184.4c-8.7-13.7-22.4-23.7-37.4-29.9c-11.2-5-24.9-6.2-37.4-7.5c-11.2-1.2-23.7,2.5-34.9,5c-19.9-2.5-41.1-2.5-61-1.2v267.8
139
+ h53.6v-74.8c5,1.2,8.7,2.5,13.7,3.7c11.2,2.5,22.4,2.5,33.6,1.2c22.4-2.5,44.9-11.2,59.8-27.4c21.2-21.2,26.2-52.3,24.9-81
140
+ C490.9,220.5,487.1,200.6,475.9,184.4L475.9,184.4z M434.8,265.4c-1.2,15-10,29.9-24.9,33.6c-11.2,3.7-26.2,5-36.1-2.5
141
+ c-1.2-6.2,0-12.5-1.2-18.7v-67.3c0-2.5,0-5,1.2-7.5c3.7-3.7,7.5-5,12.5-7.5c16.2-2.5,36.1,3.7,43.6,18.7S437.3,247.9,434.8,265.4
142
+ L434.8,265.4z"/>
143
+ <use xlink:href="#EPS-Logo" width="770" height="472.8" id="XMLID_202_" x="-385" y="-236.3" transform="matrix(0.9728 0 0 -0.9728 375.4687 285.5419)" style="overflow:visible;"/>
144
+ </svg>
changelog.txt CHANGED
@@ -1,5 +1,10 @@
1
  *** Changelog ***
2
 
 
 
 
 
 
3
  = 4.1.7 - 2018-06-06 =
4
  * Fix - Asynchronous payment methods such as SEPA, did not show order Stripe fees/net after payment succeed.
5
  * Fix - Missing semicolon on a CSS style value which causes display issues in some browsers.
1
  *** Changelog ***
2
 
3
+ = 4.1.8 - 2018-07-19 =
4
+ * Fix - 3DS payment sometimes will create additional transaction in Stripe.
5
+ * Fix - WC 2.6 with SEPA saved payment causing error on checkout.
6
+ * Update - EPS logo.
7
+
8
  = 4.1.7 - 2018-06-06 =
9
  * Fix - Asynchronous payment methods such as SEPA, did not show order Stripe fees/net after payment succeed.
10
  * Fix - Missing semicolon on a CSS style value which causes display issues in some browsers.
includes/class-wc-stripe-customer.php CHANGED
@@ -105,6 +105,17 @@ class WC_Stripe_Customer {
105
  if ( $user ) {
106
  $billing_first_name = get_user_meta( $user->ID, 'billing_first_name', true );
107
  $billing_last_name = get_user_meta( $user->ID, 'billing_last_name', true );
 
 
 
 
 
 
 
 
 
 
 
108
  $description = __( 'Name', 'woocommerce-gateway-stripe' ) . ': ' . $billing_first_name . ' ' . $billing_last_name . ' ' . __( 'Username', 'woocommerce-gateway-stripe' ) . ': ' . $user->user_login;
109
 
110
  $defaults = array(
105
  if ( $user ) {
106
  $billing_first_name = get_user_meta( $user->ID, 'billing_first_name', true );
107
  $billing_last_name = get_user_meta( $user->ID, 'billing_last_name', true );
108
+
109
+ // If billing first name does not exists try the user first name.
110
+ if ( empty( $billing_first_name ) ) {
111
+ $billing_first_name = get_user_meta( $user->ID, 'first_name', true );
112
+ }
113
+
114
+ // If billing last name does not exists try the user last name.
115
+ if ( empty( $billing_last_name ) ) {
116
+ $billing_last_name = get_user_meta( $user->ID, 'last_name', true );
117
+ }
118
+
119
  $description = __( 'Name', 'woocommerce-gateway-stripe' ) . ': ' . $billing_first_name . ' ' . $billing_last_name . ' ' . __( 'Username', 'woocommerce-gateway-stripe' ) . ': ' . $user->user_login;
120
 
121
  $defaults = array(
includes/class-wc-stripe-order-handler.php CHANGED
@@ -46,9 +46,12 @@ class WC_Stripe_Order_Handler extends WC_Stripe_Payment_Gateway {
46
  * saved to a customer card (if applicable) from process_payment.
47
  *
48
  * @since 4.0.0
49
- * @version 4.0.0
 
 
 
50
  */
51
- public function process_redirect_payment( $order_id, $retry = true ) {
52
  try {
53
  $source = wc_clean( $_GET['source'] );
54
 
@@ -107,11 +110,12 @@ class WC_Stripe_Order_Handler extends WC_Stripe_Payment_Gateway {
107
  $source_object->token_id = '';
108
  $source_object->customer = $this->get_stripe_customer_id( $order );
109
  $source_object->source = $source_info->id;
 
110
 
111
  /* If we're doing a retry and source is chargeable, we need to pass
112
  * a different idempotency key and retry for success.
113
  */
114
- if ( 1 < $this->retry_interval && 'chargeable' === $source_info->status ) {
115
  add_filter( 'wc_stripe_idempotency_key', array( $this, 'change_idempotency_key' ), 10, 2 );
116
  }
117
 
@@ -147,13 +151,13 @@ class WC_Stripe_Order_Handler extends WC_Stripe_Payment_Gateway {
147
  if ( $retry ) {
148
  // Don't do anymore retries after this.
149
  if ( 5 <= $this->retry_interval ) {
150
- return $this->process_redirect_payment( $order_id, false );
151
  }
152
 
153
  sleep( $this->retry_interval );
154
 
155
  $this->retry_interval++;
156
- return $this->process_redirect_payment( $order_id, true );
157
  } else {
158
  $localized_message = __( 'Sorry, we are unable to process your payment at this time. Please retry later.', 'woocommerce-gateway-stripe' );
159
  $order->add_order_note( $localized_message );
46
  * saved to a customer card (if applicable) from process_payment.
47
  *
48
  * @since 4.0.0
49
+ * @since 4.1.8 Add $previous_error parameter.
50
+ * @param int $order_id
51
+ * @param bool $retry
52
+ * @param mix $previous_error Any error message from previous request.
53
  */
54
+ public function process_redirect_payment( $order_id, $retry = true, $previous_error = false ) {
55
  try {
56
  $source = wc_clean( $_GET['source'] );
57
 
110
  $source_object->token_id = '';
111
  $source_object->customer = $this->get_stripe_customer_id( $order );
112
  $source_object->source = $source_info->id;
113
+ $source_object->status = 'chargeable';
114
 
115
  /* If we're doing a retry and source is chargeable, we need to pass
116
  * a different idempotency key and retry for success.
117
  */
118
+ if ( $this->need_update_idempotency_key( $source_object, $previous_error ) ) {
119
  add_filter( 'wc_stripe_idempotency_key', array( $this, 'change_idempotency_key' ), 10, 2 );
120
  }
121
 
151
  if ( $retry ) {
152
  // Don't do anymore retries after this.
153
  if ( 5 <= $this->retry_interval ) {
154
+ return $this->process_redirect_payment( $order_id, false, $response->error );
155
  }
156
 
157
  sleep( $this->retry_interval );
158
 
159
  $this->retry_interval++;
160
+ return $this->process_redirect_payment( $order_id, true, $response->error );
161
  } else {
162
  $localized_message = __( 'Sorry, we are unable to process your payment at this time. Please retry later.', 'woocommerce-gateway-stripe' );
163
  $order->add_order_note( $localized_message );
includes/class-wc-stripe-sepa-payment-token.php CHANGED
@@ -86,7 +86,7 @@ class WC_Payment_Token_SEPA extends WC_Payment_Token {
86
  * @return string Last 4 digits
87
  */
88
  public function get_last4( $context = 'view' ) {
89
- return $this->get_prop( 'last4', $context );
90
  }
91
 
92
  /**
@@ -96,6 +96,6 @@ class WC_Payment_Token_SEPA extends WC_Payment_Token {
96
  * @param string $last4
97
  */
98
  public function set_last4( $last4 ) {
99
- $this->set_prop( 'last4', $last4 );
100
  }
101
  }
86
  * @return string Last 4 digits
87
  */
88
  public function get_last4( $context = 'view' ) {
89
+ return WC_Stripe_Helper::is_pre_30() ? $this->get_meta( 'last4' ) : $this->get_prop( 'last4', $context );
90
  }
91
 
92
  /**
96
  * @param string $last4
97
  */
98
  public function set_last4( $last4 ) {
99
+ WC_Stripe_Helper::is_pre_30() ? $this->add_meta_data( 'last4', $last4, true ) : $this->set_prop( 'last4', $last4 );
100
  }
101
  }
includes/class-wc-stripe-webhook-handler.php CHANGED
@@ -122,8 +122,8 @@ class WC_Stripe_Webhook_Handler extends WC_Stripe_Payment_Gateway {
122
  * @param bool $retry
123
  */
124
  public function process_webhook_payment( $notification, $retry = true ) {
125
- // The following 2 payment methods are synchronous so does not need to be handle via webhook.
126
- if ( 'card' === $notification->data->object->type || 'sepa_debit' === $notification->data->object->type ) {
127
  return;
128
  }
129
 
122
  * @param bool $retry
123
  */
124
  public function process_webhook_payment( $notification, $retry = true ) {
125
+ // The following 3 payment methods are synchronous so does not need to be handle via webhook.
126
+ if ( 'card' === $notification->data->object->type || 'sepa_debit' === $notification->data->object->type || 'three_d_secure' === $notification->data->object->type ) {
127
  return;
128
  }
129
 
languages/woocommerce-gateway-stripe.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the WooCommerce Stripe Gateway package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Stripe Gateway 4.1.7\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://github.com/woocommerce/woocommerce-gateway-stripe/issues\n"
8
- "POT-Creation-Date: 2018-06-06 15:36:21+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -55,7 +55,7 @@ msgid "Stripe charge awaiting payment: %s."
55
  msgstr ""
56
 
57
  #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:459
58
- #: includes/class-wc-stripe-order-handler.php:245
59
  #: includes/class-wc-stripe-webhook-handler.php:314
60
  #: includes/class-wc-stripe-webhook-handler.php:362
61
  #. translators: transaction id
@@ -850,14 +850,14 @@ msgid "Place Order"
850
  msgstr ""
851
 
852
  #: includes/class-wc-gateway-stripe.php:785
853
- #: includes/class-wc-stripe-order-handler.php:140
854
  #: includes/class-wc-stripe-webhook-handler.php:187
855
  #: includes/payment-methods/class-wc-gateway-stripe-sepa.php:348
856
  msgid "This card is no longer available and has been removed."
857
  msgstr ""
858
 
859
  #: includes/class-wc-gateway-stripe.php:804
860
- #: includes/class-wc-stripe-order-handler.php:158
861
  #: includes/class-wc-stripe-webhook-handler.php:206
862
  #: includes/compat/class-wc-stripe-sepa-subs-compat.php:222
863
  #: includes/compat/class-wc-stripe-subs-compat.php:237
@@ -915,15 +915,15 @@ msgid ""
915
  "the issue. (Logging must be enabled to see recorded logs)"
916
  msgstr ""
917
 
918
- #: includes/class-wc-stripe-customer.php:108
919
  msgid "Name"
920
  msgstr ""
921
 
922
- #: includes/class-wc-stripe-customer.php:108
923
  msgid "Username"
924
  msgstr ""
925
 
926
- #: includes/class-wc-stripe-customer.php:189
927
  msgid "Unable to add payment source."
928
  msgstr ""
929
 
@@ -988,7 +988,7 @@ msgid "An error occurred while processing the card."
988
  msgstr ""
989
 
990
  #: includes/class-wc-stripe-helper.php:222
991
- #: includes/class-wc-stripe-order-handler.php:92
992
  msgid "Unable to process this payment, please try again or use alternative method."
993
  msgstr ""
994
 
@@ -996,12 +996,12 @@ msgstr ""
996
  msgid "The billing country is not accepted by SOFORT. Please try another country."
997
  msgstr ""
998
 
999
- #: includes/class-wc-stripe-order-handler.php:190
1000
  #. translators: error message
1001
  msgid "Stripe payment failed: %s"
1002
  msgstr ""
1003
 
1004
- #: includes/class-wc-stripe-order-handler.php:242
1005
  #. translators: error message
1006
  msgid "Unable to capture charge! %s"
1007
  msgstr ""
2
  # This file is distributed under the same license as the WooCommerce Stripe Gateway package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Stripe Gateway 4.1.8\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://github.com/woocommerce/woocommerce-gateway-stripe/issues\n"
8
+ "POT-Creation-Date: 2018-07-19 13:30:28+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
55
  msgstr ""
56
 
57
  #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:459
58
+ #: includes/class-wc-stripe-order-handler.php:249
59
  #: includes/class-wc-stripe-webhook-handler.php:314
60
  #: includes/class-wc-stripe-webhook-handler.php:362
61
  #. translators: transaction id
850
  msgstr ""
851
 
852
  #: includes/class-wc-gateway-stripe.php:785
853
+ #: includes/class-wc-stripe-order-handler.php:144
854
  #: includes/class-wc-stripe-webhook-handler.php:187
855
  #: includes/payment-methods/class-wc-gateway-stripe-sepa.php:348
856
  msgid "This card is no longer available and has been removed."
857
  msgstr ""
858
 
859
  #: includes/class-wc-gateway-stripe.php:804
860
+ #: includes/class-wc-stripe-order-handler.php:162
861
  #: includes/class-wc-stripe-webhook-handler.php:206
862
  #: includes/compat/class-wc-stripe-sepa-subs-compat.php:222
863
  #: includes/compat/class-wc-stripe-subs-compat.php:237
915
  "the issue. (Logging must be enabled to see recorded logs)"
916
  msgstr ""
917
 
918
+ #: includes/class-wc-stripe-customer.php:119
919
  msgid "Name"
920
  msgstr ""
921
 
922
+ #: includes/class-wc-stripe-customer.php:119
923
  msgid "Username"
924
  msgstr ""
925
 
926
+ #: includes/class-wc-stripe-customer.php:200
927
  msgid "Unable to add payment source."
928
  msgstr ""
929
 
988
  msgstr ""
989
 
990
  #: includes/class-wc-stripe-helper.php:222
991
+ #: includes/class-wc-stripe-order-handler.php:95
992
  msgid "Unable to process this payment, please try again or use alternative method."
993
  msgstr ""
994
 
996
  msgid "The billing country is not accepted by SOFORT. Please try another country."
997
  msgstr ""
998
 
999
+ #: includes/class-wc-stripe-order-handler.php:194
1000
  #. translators: error message
1001
  msgid "Stripe payment failed: %s"
1002
  msgstr ""
1003
 
1004
+ #: includes/class-wc-stripe-order-handler.php:246
1005
  #. translators: error message
1006
  msgid "Unable to capture charge! %s"
1007
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort,
4
  Requires at least: 4.4
5
  Tested up to: 4.9
6
  Requires PHP: 5.6
7
- Stable tag: 4.1.7
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
  Attributions: thorsten-stripe
@@ -101,9 +101,10 @@ If you get stuck, you can ask for help in the Plugin Forum.
101
 
102
  == Changelog ==
103
 
104
- = 4.1.7 - 2018-06-06 =
105
- * Fix - Asynchronous payment methods such as SEPA, did not show order Stripe fees/net after payment succeed.
106
- * Fix - Missing semicolon on a CSS style value which causes display issues in some browsers.
 
107
 
108
  [See changelog for all versions](https://raw.githubusercontent.com/woothemes/woocommerce-gateway-stripe/master/changelog.txt).
109
 
4
  Requires at least: 4.4
5
  Tested up to: 4.9
6
  Requires PHP: 5.6
7
+ Stable tag: 4.1.8
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
  Attributions: thorsten-stripe
101
 
102
  == Changelog ==
103
 
104
+ = 4.1.8 - 2018-07-19 =
105
+ * Fix - 3DS payment sometimes will create additional transaction in Stripe.
106
+ * Fix - WC 2.6 with SEPA saved payment causing error on checkout.
107
+ * Update - EPS logo.
108
 
109
  [See changelog for all versions](https://raw.githubusercontent.com/woothemes/woocommerce-gateway-stripe/master/changelog.txt).
110
 
woocommerce-gateway-stripe.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Take credit card payments on your store using Stripe.
6
  * Author: WooCommerce
7
  * Author URI: https://woocommerce.com/
8
- * Version: 4.1.7
9
  * Requires at least: 4.4
10
  * Tested up to: 4.9
11
  * WC requires at least: 2.6
@@ -44,7 +44,7 @@ function woocommerce_gateway_stripe_init() {
44
  /**
45
  * Required minimums and constants
46
  */
47
- define( 'WC_STRIPE_VERSION', '4.1.7' );
48
  define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
49
  define( 'WC_STRIPE_MIN_WC_VER', '2.6.0' );
50
  define( 'WC_STRIPE_MAIN_FILE', __FILE__ );
5
  * Description: Take credit card payments on your store using Stripe.
6
  * Author: WooCommerce
7
  * Author URI: https://woocommerce.com/
8
+ * Version: 4.1.8
9
  * Requires at least: 4.4
10
  * Tested up to: 4.9
11
  * WC requires at least: 2.6
44
  /**
45
  * Required minimums and constants
46
  */
47
+ define( 'WC_STRIPE_VERSION', '4.1.8' );
48
  define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
49
  define( 'WC_STRIPE_MIN_WC_VER', '2.6.0' );
50
  define( 'WC_STRIPE_MAIN_FILE', __FILE__ );