WooCommerce Stripe Payment Gateway - Version 4.1.2

Version Description

  • 2018-04-23 =
  • Fix - When payment method is invalid while trying to force save card, unexpected error can occur.
  • Fix - Pass name attribute when adding payment method from my account to allow Radar to work properly.
  • Tweak - Icon CSS styling to work for more different theme setups.
  • Remove - Bitcoin method as it is hard deprecated by Stripe as of April 23, 2018.

See changelog for all versions.

=

Download this release

Release Info

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

Code changes from version 4.1.1 to 4.1.2

assets/css/stripe-styles.css CHANGED
@@ -8,11 +8,102 @@ form#order_review #payment_method_stripe_sepa { margin: 25px 0 25px 25px; }
8
  form#order_review .payment_methods label { margin-left: 10px; }
9
  form#order_review li { clear: right; }
10
  form#order_review #wc-stripe_sepa-form { padding: 10px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-icon,
12
  #add_payment_method #payment ul.payment_methods li img.stripe-icon { float: right; max-width: 40px; padding-left: 3px; margin: 0; }
13
 
14
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-bancontact-icon,
15
- #add_payment_method #payment ul.payment_methods li img.stripe-bancontact-icon { max-height: 65px; }
16
 
17
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-ideal-icon,
18
  #add_payment_method #payment ul.payment_methods li img.stripe-ideal-icon { max-height: 35px; }
@@ -20,8 +111,14 @@ form#order_review #wc-stripe_sepa-form { padding: 10px; }
20
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-p24-icon,
21
  #add_payment_method #payment ul.payment_methods li img.stripe-p24-icon { max-width: 65px; }
22
 
 
 
 
23
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-sofort-icon,
24
- #add_payment_method #payment ul.payment_methods li img.stripe-sofort-icon { max-width: 65px; }
 
 
 
25
 
26
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-multibanco-icon,
27
  #add_payment_method #payment ul.payment_methods li img.stripe-multibanco-icon { max-height: 30px; }
@@ -29,8 +126,8 @@ form#order_review #wc-stripe_sepa-form { padding: 10px; }
29
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-eps-icon,
30
  #add_payment_method #payment ul.payment_methods li img.stripe-eps-icon { max-height: 30px; }
31
 
32
- .woocommerce-checkout #payment ul.payment_methods li img.stripe-bitcoin-icon,
33
- #add_payment_method #payment ul.payment_methods li img.stripe-bitcoin-icon { max-width: 65px; }
34
 
35
  .woocommerce-checkout #payment ul.payment_methods li .stripe-credit-card-brand,
36
  #add_payment_method #payment ul.payment_methods li .stripe-credit-card-brand { position: absolute; top: 10px; right: 10px; background: no-repeat url( '../images/credit-card.svg' ); display: block; width: 30px; height: 24px; }
8
  form#order_review .payment_methods label { margin-left: 10px; }
9
  form#order_review li { clear: right; }
10
  form#order_review #wc-stripe_sepa-form { padding: 10px; }
11
+
12
+ .woocommerce-checkout #payment .payment_method_stripe,
13
+ #add_payment_method #payment .payment_method_stripe { position: relative; }
14
+
15
+ .woocommerce-checkout #payment .payment_method_stripe_bancontact,
16
+ #add_payment_method #payment .payment_method_stripe_bancontact { position: relative; }
17
+
18
+ .woocommerce-checkout #payment .payment_method_stripe_alipay,
19
+ #add_payment_method #payment .payment_method_stripe_alipay { position: relative; }
20
+
21
+ .woocommerce-checkout #payment .payment_method_stripe_eps,
22
+ #add_payment_method #payment .payment_method_stripe_eps { position: relative; }
23
+
24
+ .woocommerce-checkout #payment .payment_method_stripe_giropay,
25
+ #add_payment_method #payment .payment_method_stripe_giropay { position: relative; }
26
+
27
+ .woocommerce-checkout #payment .payment_method_stripe_ideal,
28
+ #add_payment_method #payment .payment_method_stripe_ideal { position: relative; }
29
+
30
+ .woocommerce-checkout #payment .payment_method_stripe_multibanco,
31
+ #add_payment_method #payment .payment_method_stripe_multibanco { position: relative; }
32
+
33
+ .woocommerce-checkout #payment .payment_method_stripe_p24,
34
+ #add_payment_method #payment .payment_method_stripe_p24 { position: relative; }
35
+
36
+ .woocommerce-checkout #payment .payment_method_stripe_sepa,
37
+ #add_payment_method #payment .payment_method_stripe_sepa { position: relative; }
38
+
39
+ .woocommerce-checkout #payment .payment_method_stripe_sofort,
40
+ #add_payment_method #payment .payment_method_stripe_sofort { position: relative; }
41
+
42
+ .woocommerce-checkout #payment input#payment_method_stripe,
43
+ #add_payment_method #payment input#payment_method_stripe { position: absolute; top: 6px; }
44
+
45
+ .woocommerce-checkout #payment input#payment_method_stripe_bancontact,
46
+ #add_payment_method #payment input#payment_method_stripe_bancontact { position: absolute; top: 6px; }
47
+
48
+ .woocommerce-checkout #payment input#payment_method_stripe_alipay,
49
+ #add_payment_method #payment input#payment_method_stripe_alipay { position: absolute; top: 6px; }
50
+
51
+ .woocommerce-checkout #payment input#payment_method_stripe_eps,
52
+ #add_payment_method #payment input#payment_method_stripe_eps { position: absolute; top: 6px; }
53
+
54
+ .woocommerce-checkout #payment input#payment_method_stripe_giropay,
55
+ #add_payment_method #payment input#payment_method_stripe_giropay { position: absolute; top: 6px; }
56
+
57
+ .woocommerce-checkout #payment input#payment_method_stripe_ideal,
58
+ #add_payment_method #payment input#payment_method_stripe_ideal { position: absolute; top: 6px; }
59
+
60
+ .woocommerce-checkout #payment input#payment_method_stripe_multibanco,
61
+ #add_payment_method #payment input#payment_method_stripe_multibanco { position: absolute; top: 6px; }
62
+
63
+ .woocommerce-checkout #payment input#payment_method_stripe_p24,
64
+ #add_payment_method #payment input#payment_method_stripe_p24 { position: absolute; top: 6px; }
65
+
66
+ .woocommerce-checkout #payment input#payment_method_stripe_sepa,
67
+ #add_payment_method #payment input#payment_method_stripe_sepa { position: absolute; top: 6px; }
68
+
69
+ .woocommerce-checkout #payment input#payment_method_stripe_sofort,
70
+ #add_payment_method #payment input#payment_method_stripe_sofort { position: absolute; top: 6px; }
71
+
72
+ .woocommerce-checkout #payment .payment_method_stripe label[for=payment_method_stripe],
73
+ #add_payment_method #payment .payment_method_stripe label[for=payment_method_stripe] { display: block; padding-left: 25px; }
74
+
75
+ .woocommerce-checkout #payment .payment_method_stripe_bancontact label[for=payment_method_stripe_bancontact],
76
+ #add_payment_method #payment .payment_method_stripe_bancontact label[for=payment_method_stripe_bancontact] { display: block; padding-left: 25px; }
77
+
78
+ .woocommerce-checkout #payment .payment_method_stripe_alipay label[for=payment_method_stripe_alipay],
79
+ #add_payment_method #payment .payment_method_stripe_alipay label[for=payment_method_stripe_alipay] { display: block; padding-left: 25px; }
80
+
81
+ .woocommerce-checkout #payment .payment_method_stripe_eps label[for=payment_method_stripe_eps],
82
+ #add_payment_method #payment .payment_method_stripe_eps label[for=payment_method_stripe_eps] { display: block; padding-left: 25px; }
83
+
84
+ .woocommerce-checkout #payment .payment_method_stripe_giropay label[for=payment_method_stripe_giropay],
85
+ #add_payment_method #payment .payment_method_stripe_giropay label[for=payment_method_stripe_giropay] { display: block; padding-left: 25px; }
86
+
87
+ .woocommerce-checkout #payment .payment_method_stripe_ideal label[for=payment_method_stripe_ideal],
88
+ #add_payment_method #payment .payment_method_stripe_ideal label[for=payment_method_stripe_ideal] { display: block; padding-left: 25px; }
89
+
90
+ .woocommerce-checkout #payment .payment_method_stripe_multibanco label[for=payment_method_stripe_multibanco],
91
+ #add_payment_method #payment .payment_method_stripe_multibanco label[for=payment_method_stripe_multibanco] { display: block; padding-left: 25px; }
92
+
93
+ .woocommerce-checkout #payment .payment_method_stripe_p24 label[for=payment_method_stripe_p24],
94
+ #add_payment_method #payment .payment_method_stripe_p24 label[for=payment_method_stripe_p24] { display: block; padding-left: 25px; }
95
+
96
+ .woocommerce-checkout #payment .payment_method_stripe_sepa label[for=payment_method_stripe_sepa],
97
+ #add_payment_method #payment .payment_method_stripe_sepa label[for=payment_method_stripe_sepa] { display: block; padding-left: 25px; }
98
+
99
+ .woocommerce-checkout #payment .payment_method_stripe_sofort label[for=payment_method_stripe_sofort],
100
+ #add_payment_method #payment .payment_method_stripe_sofort label[for=payment_method_stripe_sofort] { display: block; padding-left: 25px; }
101
+
102
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-icon,
103
  #add_payment_method #payment ul.payment_methods li img.stripe-icon { float: right; max-width: 40px; padding-left: 3px; margin: 0; }
104
 
105
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-bancontact-icon,
106
+ #add_payment_method #payment ul.payment_methods li img.stripe-bancontact-icon { max-height: 65px; max-width: 45px; }
107
 
108
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-ideal-icon,
109
  #add_payment_method #payment ul.payment_methods li img.stripe-ideal-icon { max-height: 35px; }
111
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-p24-icon,
112
  #add_payment_method #payment ul.payment_methods li img.stripe-p24-icon { max-width: 65px; }
113
 
114
+ .woocommerce-checkout #payment ul.payment_methods li img.stripe-alipay-icon,
115
+ #add_payment_method #payment ul.payment_methods li img.stripe-alipay-icon { max-width: 50px; }
116
+
117
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-sofort-icon,
118
+ #add_payment_method #payment ul.payment_methods li img.stripe-sofort-icon { max-width: 55px; }
119
+
120
+ .woocommerce-checkout #payment ul.payment_methods li img.stripe-sepa-icon,
121
+ #add_payment_method #payment ul.payment_methods li img.stripe-sepa-icon { max-width: 50px; }
122
 
123
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-multibanco-icon,
124
  #add_payment_method #payment ul.payment_methods li img.stripe-multibanco-icon { max-height: 30px; }
126
  .woocommerce-checkout #payment ul.payment_methods li img.stripe-eps-icon,
127
  #add_payment_method #payment ul.payment_methods li img.stripe-eps-icon { max-height: 30px; }
128
 
129
+ .woocommerce-checkout #payment ul.payment_methods li img.stripe-giropay-icon,
130
+ #add_payment_method #payment ul.payment_methods li img.stripe-giropay-icon { max-width: 50px; }
131
 
132
  .woocommerce-checkout #payment ul.payment_methods li .stripe-credit-card-brand,
133
  #add_payment_method #payment ul.payment_methods li .stripe-credit-card-brand { position: absolute; top: 10px; right: 10px; background: no-repeat url( '../images/credit-card.svg' ); display: block; width: 30px; height: 24px; }
assets/images/bitcoin.svg DELETED
@@ -1 +0,0 @@
1
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 750 156.61" preserveAspectRatio="xMidYMid meet"><defs><style>.cls-1{fill:#f7931a;}.cls-2{fill:#fff;}.cls-3{fill:#4d4d4d;}</style></defs><title>bitcoin</title><path class="cls-1" d="M154.24,97.24a78.27,78.27,0,1,1-57-94.9,78.27,78.27,0,0,1,57,94.9Z"/><path class="cls-2" d="M112.82,67.15c1.56-10.42-6.38-16-17.22-19.76l3.51-14.11-8.59-2.14L87.1,44.88c-2.26-.56-4.58-1.1-6.89-1.62l3.45-13.83-8.58-2.15L71.56,41.39c-1.87-.42-3.71-.84-5.49-1.29v0l-11.85-3L52,46.28s6.37,1.46,6.24,1.55c3.48.87,4.11,3.17,4,5l-4,16.07a8.14,8.14,0,0,1,.89.29l-.9-.22L52.55,91.49a3.13,3.13,0,0,1-3.94,2c.09.13-6.24-1.56-6.24-1.56l-4.27,9.84,11.18,2.78c2.08.52,4.12,1.07,6.13,1.58l-3.56,14.28,8.58,2.14L64,108.47c2.35.63,4.62,1.22,6.85,1.77L67.29,124.3l8.59,2.14,3.56-14.25c14.65,2.78,25.66,1.66,30.3-11.59,3.74-10.67-.18-16.83-7.89-20.84,5.61-1.29,9.84-5,11-12.61ZM93.19,94.67c-2.66,10.67-20.62,4.9-26.44,3.46l4.71-18.91c5.83,1.45,24.5,4.33,21.73,15.45ZM95.84,67c-2.42,9.71-17.37,4.78-22.22,3.57L77.9,53.41C82.75,54.61,98.37,56.87,95.84,67Z"/><path class="cls-3" d="M229.46,47.38a37.31,37.31,0,0,1,16.45,3.37,33,33,0,0,1,11.52,9.12,38.59,38.59,0,0,1,6.73,13.47A61.72,61.72,0,0,1,266.33,90a67.83,67.83,0,0,1-18.83,47.08,64.82,64.82,0,0,1-20.61,14.25,63,63,0,0,1-25.75,5.26c-1.19,0-3.29,0-6.26-.1a92.82,92.82,0,0,1-10.19-.88,121.35,121.35,0,0,1-12.19-2.39,61.68,61.68,0,0,1-12.19-4.36L194.59,4.78,225.3,0,213,51.15a47.16,47.16,0,0,1,7.91-2.77,35.16,35.16,0,0,1,8.52-1ZM203.7,132.21a26.83,26.83,0,0,0,13.08-3.37,34.31,34.31,0,0,0,10.62-9,45.72,45.72,0,0,0,7-12.79A43.69,43.69,0,0,0,237,92.16c0-6.34-1.06-11.28-3.18-14.86s-6-5.35-11.69-5.35a36.93,36.93,0,0,0-7.22,1,18,18,0,0,0-8,4.17L193.81,131.4c.78.14,1.48.28,2.08.4a17.21,17.21,0,0,0,1.86.3,23.31,23.31,0,0,0,2.39.11Z"/><path class="cls-3" d="M298.17,153.82H268.84L293.61,49.59h29.53ZM312.44,36.89a18.19,18.19,0,0,1-11.09-3.66q-5-3.64-5-11.2a18.57,18.57,0,0,1,1.68-7.82,20.76,20.76,0,0,1,4.47-6.35A21.91,21.91,0,0,1,309,3.6,19.51,19.51,0,0,1,316.8,2a18.21,18.21,0,0,1,11.09,3.66q5,3.68,4.95,11.2a18.54,18.54,0,0,1-1.68,7.83,20.56,20.56,0,0,1-4.46,6.35,21.43,21.43,0,0,1-6.43,4.25,19.36,19.36,0,0,1-7.83,1.58Z"/><path class="cls-3" d="M348.85,23.62l30.72-4.76L372,49.58h32.9L399,73.75H366.28l-8.71,36.46a40.92,40.92,0,0,0-1.38,8.52,15.52,15.52,0,0,0,1,6.84,8.61,8.61,0,0,0,4.26,4.45c2.05,1.06,5,1.6,8.82,1.6a46.65,46.65,0,0,0,9.22-.9,67,67,0,0,0,9-2.47l2.19,22.59a104.26,104.26,0,0,1-12.88,3.76,74.09,74.09,0,0,1-16.46,1.58q-13.66,0-21.21-4.05A23.54,23.54,0,0,1,329.42,141a35.32,35.32,0,0,1-2.78-16.14,104.46,104.46,0,0,1,2.78-19.22l19.43-82Z"/><path class="cls-3" d="M403.63,112.2A73.27,73.27,0,0,1,408,86.83,62.45,62.45,0,0,1,420.49,66a58.64,58.64,0,0,1,19.72-14.06,63,63,0,0,1,25.85-5.15A68.17,68.17,0,0,1,482,48.48a64.88,64.88,0,0,1,12.79,4.45l-10.11,23c-2.64-1.07-5.39-2-8.22-2.87a35.92,35.92,0,0,0-10.4-1.3c-9.79,0-17.53,3.38-23.29,10.11s-8.63,15.79-8.63,27.15q0,10.11,4.37,16.35t16.05,6.24a51.56,51.56,0,0,0,11.09-1.18,54.28,54.28,0,0,0,9.52-3L477.37,151a104.37,104.37,0,0,1-12.29,3.87A68.16,68.16,0,0,1,449,156.58q-12.3,0-20.81-3.56a39.59,39.59,0,0,1-14.06-9.61,36,36,0,0,1-8-14.18,58.13,58.13,0,0,1-2.5-17Z"/><path class="cls-3" d="M533.93,156.58a47.81,47.81,0,0,1-18.24-3.18,33.68,33.68,0,0,1-12.77-8.91,38.57,38.57,0,0,1-7.63-13.57,54.88,54.88,0,0,1-2.56-17.33,76.34,76.34,0,0,1,3.85-23.79A67.51,67.51,0,0,1,508,68.4,60.86,60.86,0,0,1,526.4,52.83a50.67,50.67,0,0,1,25-6A48.25,48.25,0,0,1,569.51,50a33.81,33.81,0,0,1,12.88,8.91A38.86,38.86,0,0,1,590,72.46a55.14,55.14,0,0,1,2.57,17.34,79.2,79.2,0,0,1-3.75,23.79,68.85,68.85,0,0,1-11.1,21.4,58.14,58.14,0,0,1-18.33,15.54q-11,6-25.47,6.05Zm14.66-84.81a18.56,18.56,0,0,0-11.48,3.75A32.48,32.48,0,0,0,528.8,85a46.53,46.53,0,0,0-5.07,12.59,53.84,53.84,0,0,0-1.68,13c0,6.62,1.07,11.77,3.17,15.47s5.94,5.55,11.49,5.55a18.43,18.43,0,0,0,11.5-3.78,32.49,32.49,0,0,0,8.32-9.5,47.72,47.72,0,0,0,5.07-12.59,55.43,55.43,0,0,0,1.67-13c0-6.59-1.06-11.76-3.18-15.46s-6-5.54-11.5-5.54Z"/><path class="cls-3" d="M624.54,153.82H595.19L620,49.59H649.5ZM638.79,36.89a18.14,18.14,0,0,1-11.08-3.66q-5-3.64-5-11.2a18.57,18.57,0,0,1,1.69-7.82,20.73,20.73,0,0,1,4.46-6.35,22,22,0,0,1,6.44-4.26A19.42,19.42,0,0,1,643.15,2a18.19,18.19,0,0,1,11.1,3.66q5,3.68,5,11.2a18.71,18.71,0,0,1-1.7,7.83,20.53,20.53,0,0,1-4.45,6.35,21.56,21.56,0,0,1-6.43,4.25A19.39,19.39,0,0,1,638.79,36.89Z"/><path class="cls-3" d="M670.64,54.33c2.23-.66,4.72-1.44,7.42-2.29s5.75-1.64,9.13-2.36a110.49,110.49,0,0,1,11.29-1.79,124.93,124.93,0,0,1,14.16-.71q23.21,0,32,13.49t3.08,36.86l-13.49,56.28H704.72l13.08-55.1c.8-3.44,1.43-6.76,1.89-10a23.82,23.82,0,0,0-.11-8.52,10.23,10.23,0,0,0-3.65-6C714,72.71,711.07,72,707.1,72a59.21,59.21,0,0,0-11.69,1.21l-19.22,80.65H646.65Z"/></svg>
 
assets/js/stripe-admin.js CHANGED
@@ -45,9 +45,9 @@ jQuery( function( $ ) {
45
  // Toggle Stripe Checkout settings.
46
  $( '#woocommerce_stripe_stripe_checkout' ).change( function() {
47
  if ( $( this ).is( ':checked' ) ) {
48
- $( '#woocommerce_stripe_stripe_bitcoin, #woocommerce_stripe_stripe_checkout_image, #woocommerce_stripe_stripe_checkout_description' ).closest( 'tr' ).show();
49
  } else {
50
- $( '#woocommerce_stripe_stripe_bitcoin, #woocommerce_stripe_stripe_checkout_image, #woocommerce_stripe_stripe_checkout_description' ).closest( 'tr' ).hide();
51
  }
52
  } ).change();
53
 
45
  // Toggle Stripe Checkout settings.
46
  $( '#woocommerce_stripe_stripe_checkout' ).change( function() {
47
  if ( $( this ).is( ':checked' ) ) {
48
+ $( '#woocommerce_stripe_stripe_checkout_image, #woocommerce_stripe_stripe_checkout_description' ).closest( 'tr' ).show();
49
  } else {
50
+ $( '#woocommerce_stripe_stripe_checkout_image, #woocommerce_stripe_stripe_checkout_description' ).closest( 'tr' ).hide();
51
  }
52
  } ).change();
53
 
assets/js/stripe-admin.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(e){"use strict";var t={isTestMode:function(){return e("#woocommerce_stripe_testmode").is(":checked")},getSecretKey:function(){return t.isTestMode()?e("#woocommerce_stripe_test_secret_key").val():e("#woocommerce_stripe_secret_key").val()},init:function(){e(document.body).on("change","#woocommerce_stripe_testmode",function(){var t=e("#woocommerce_stripe_test_secret_key").parents("tr").eq(0),o=e("#woocommerce_stripe_test_publishable_key").parents("tr").eq(0),c=e("#woocommerce_stripe_secret_key").parents("tr").eq(0),r=e("#woocommerce_stripe_publishable_key").parents("tr").eq(0);e(this).is(":checked")?(t.show(),o.show(),c.hide(),r.hide()):(t.hide(),o.hide(),c.show(),r.show())}),e("#woocommerce_stripe_testmode").change(),e("#woocommerce_stripe_stripe_checkout").change(function(){e(this).is(":checked")?e("#woocommerce_stripe_stripe_bitcoin, #woocommerce_stripe_stripe_checkout_image, #woocommerce_stripe_stripe_checkout_description").closest("tr").show():e("#woocommerce_stripe_stripe_bitcoin, #woocommerce_stripe_stripe_checkout_image, #woocommerce_stripe_stripe_checkout_description").closest("tr").hide()}).change(),e("#woocommerce_stripe_payment_request").change(function(){e(this).is(":checked")?e("#woocommerce_stripe_payment_request_button_theme, #woocommerce_stripe_payment_request_button_type, #woocommerce_stripe_payment_request_button_height").closest("tr").show():e("#woocommerce_stripe_payment_request_button_theme, #woocommerce_stripe_payment_request_button_type, #woocommerce_stripe_payment_request_button_height").closest("tr").hide()}).change()}};t.init()});
1
+ jQuery(function(e){"use strict";var t={isTestMode:function(){return e("#woocommerce_stripe_testmode").is(":checked")},getSecretKey:function(){return t.isTestMode()?e("#woocommerce_stripe_test_secret_key").val():e("#woocommerce_stripe_secret_key").val()},init:function(){e(document.body).on("change","#woocommerce_stripe_testmode",function(){var t=e("#woocommerce_stripe_test_secret_key").parents("tr").eq(0),o=e("#woocommerce_stripe_test_publishable_key").parents("tr").eq(0),c=e("#woocommerce_stripe_secret_key").parents("tr").eq(0),r=e("#woocommerce_stripe_publishable_key").parents("tr").eq(0);e(this).is(":checked")?(t.show(),o.show(),c.hide(),r.hide()):(t.hide(),o.hide(),c.show(),r.show())}),e("#woocommerce_stripe_testmode").change(),e("#woocommerce_stripe_stripe_checkout").change(function(){e(this).is(":checked")?e("#woocommerce_stripe_stripe_checkout_image, #woocommerce_stripe_stripe_checkout_description").closest("tr").show():e("#woocommerce_stripe_stripe_checkout_image, #woocommerce_stripe_stripe_checkout_description").closest("tr").hide()}).change(),e("#woocommerce_stripe_payment_request").change(function(){e(this).is(":checked")?e("#woocommerce_stripe_payment_request_button_theme, #woocommerce_stripe_payment_request_button_type, #woocommerce_stripe_payment_request_button_height").closest("tr").show():e("#woocommerce_stripe_payment_request_button_theme, #woocommerce_stripe_payment_request_button_type, #woocommerce_stripe_payment_request_button_height").closest("tr").hide()}).change()}};t.init()});
assets/js/stripe.js CHANGED
@@ -177,7 +177,7 @@ jQuery( function( $ ) {
177
 
178
  $( 'form.woocommerce-checkout' )
179
  .on(
180
- 'checkout_place_order_stripe checkout_place_order_stripe_bancontact checkout_place_order_stripe_sofort checkout_place_order_stripe_giropay checkout_place_order_stripe_ideal checkout_place_order_stripe_alipay checkout_place_order_stripe_sepa checkout_place_order_stripe_bitcoin',
181
  this.onSubmit
182
  );
183
 
@@ -225,7 +225,7 @@ jQuery( function( $ ) {
225
 
226
  // Check to see if Stripe in general is being used for checkout.
227
  isStripeChosen: function() {
228
- return $( '#payment_method_stripe, #payment_method_stripe_bancontact, #payment_method_stripe_sofort, #payment_method_stripe_giropay, #payment_method_stripe_ideal, #payment_method_stripe_alipay, #payment_method_stripe_sepa, #payment_method_stripe_bitcoin, #payment_method_stripe_eps, #payment_method_stripe_multibanco' ).is( ':checked' ) || ( $( '#payment_method_stripe' ).is( ':checked' ) && 'new' === $( 'input[name="wc-stripe-payment-token"]:checked' ).val() ) || ( $( '#payment_method_stripe_sepa' ).is( ':checked' ) && 'new' === $( 'input[name="wc-stripe-payment-token"]:checked' ).val() );
229
  },
230
 
231
  // Currently only support saved cards via credit cards and SEPA. No other payment method.
@@ -263,10 +263,6 @@ jQuery( function( $ ) {
263
  return $( '#payment_method_stripe_sepa' ).is( ':checked' );
264
  },
265
 
266
- isBitcoinChosen: function() {
267
- return $( '#payment_method_stripe_bitcoin' ).is( ':checked' );
268
- },
269
-
270
  isP24Chosen: function() {
271
  return $( '#payment_method_stripe_p24' ).is( ':checked' );
272
  },
@@ -367,7 +363,6 @@ jQuery( function( $ ) {
367
  description : $data.data( 'description' ),
368
  currency : $data.data( 'currency' ),
369
  image : $data.data( 'image' ),
370
- bitcoin : $data.data( 'bitcoin' ),
371
  locale : $data.data( 'locale' ),
372
  email : $( '#billing_email' ).val() || $data.data( 'email' ),
373
  panelLabel : $data.data( 'panel-label' ),
@@ -397,6 +392,8 @@ jQuery( function( $ ) {
397
 
398
  if ( first_name && last_name ) {
399
  extra_details.owner.name = first_name + ' ' + last_name;
 
 
400
  }
401
 
402
  extra_details.owner.email = $( '#billing_email' ).val();
@@ -457,10 +454,6 @@ jQuery( function( $ ) {
457
  source_type = 'sofort';
458
  }
459
 
460
- if ( wc_stripe_form.isBitcoinChosen() ) {
461
- source_type = 'bitcoin';
462
- }
463
-
464
  if ( wc_stripe_form.isGiropayChosen() ) {
465
  source_type = 'giropay';
466
  }
@@ -505,7 +498,6 @@ jQuery( function( $ ) {
505
  case 'ideal':
506
  extra_details.ideal = { bank: $( '#stripe-ideal-bank' ).val() };
507
  break;
508
- case 'bitcoin':
509
  case 'alipay':
510
  extra_details.currency = $( '#stripe-' + source_type + '-payment-data' ).data( 'currency' );
511
  extra_details.amount = $( '#stripe-' + source_type + '-payment-data' ).data( 'amount' );
177
 
178
  $( 'form.woocommerce-checkout' )
179
  .on(
180
+ 'checkout_place_order_stripe checkout_place_order_stripe_bancontact checkout_place_order_stripe_sofort checkout_place_order_stripe_giropay checkout_place_order_stripe_ideal checkout_place_order_stripe_alipay checkout_place_order_stripe_sepa',
181
  this.onSubmit
182
  );
183
 
225
 
226
  // Check to see if Stripe in general is being used for checkout.
227
  isStripeChosen: function() {
228
+ return $( '#payment_method_stripe, #payment_method_stripe_bancontact, #payment_method_stripe_sofort, #payment_method_stripe_giropay, #payment_method_stripe_ideal, #payment_method_stripe_alipay, #payment_method_stripe_sepa, #payment_method_stripe_eps, #payment_method_stripe_multibanco' ).is( ':checked' ) || ( $( '#payment_method_stripe' ).is( ':checked' ) && 'new' === $( 'input[name="wc-stripe-payment-token"]:checked' ).val() ) || ( $( '#payment_method_stripe_sepa' ).is( ':checked' ) && 'new' === $( 'input[name="wc-stripe-payment-token"]:checked' ).val() );
229
  },
230
 
231
  // Currently only support saved cards via credit cards and SEPA. No other payment method.
263
  return $( '#payment_method_stripe_sepa' ).is( ':checked' );
264
  },
265
 
 
 
 
 
266
  isP24Chosen: function() {
267
  return $( '#payment_method_stripe_p24' ).is( ':checked' );
268
  },
363
  description : $data.data( 'description' ),
364
  currency : $data.data( 'currency' ),
365
  image : $data.data( 'image' ),
 
366
  locale : $data.data( 'locale' ),
367
  email : $( '#billing_email' ).val() || $data.data( 'email' ),
368
  panelLabel : $data.data( 'panel-label' ),
392
 
393
  if ( first_name && last_name ) {
394
  extra_details.owner.name = first_name + ' ' + last_name;
395
+ } else {
396
+ extra_details.owner.name = $( '#stripe-payment-data' ).data( 'full-name' );
397
  }
398
 
399
  extra_details.owner.email = $( '#billing_email' ).val();
454
  source_type = 'sofort';
455
  }
456
 
 
 
 
 
457
  if ( wc_stripe_form.isGiropayChosen() ) {
458
  source_type = 'giropay';
459
  }
498
  case 'ideal':
499
  extra_details.ideal = { bank: $( '#stripe-ideal-bank' ).val() };
500
  break;
 
501
  case 'alipay':
502
  extra_details.currency = $( '#stripe-' + source_type + '-payment-data' ).data( 'currency' );
503
  extra_details.amount = $( '#stripe-' + source_type + '-payment-data' ).data( 'amount' );
assets/js/stripe.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(e){"use strict";var r,t,o,n=Stripe(wc_stripe_params.key),i=wc_stripe_params.elements_options.length?wc_stripe_params.elements_options:{},s=n.elements(i),a={getAjaxURL:function(e){return wc_stripe_params.ajaxurl.toString().replace("%%endpoint%%","wc_stripe_"+e)},unmountElements:function(){"yes"===wc_stripe_params.inline_cc_form?r.unmount("#stripe-card-element"):(r.unmount("#stripe-card-element"),t.unmount("#stripe-exp-element"),o.unmount("#stripe-cvc-element"))},mountElements:function(){e("#stripe-card-element").length&&("yes"===wc_stripe_params.inline_cc_form?r.mount("#stripe-card-element"):(r.mount("#stripe-card-element"),t.mount("#stripe-exp-element"),o.mount("#stripe-cvc-element")))},createElements:function(){var n={base:{iconColor:"#666EE8",color:"#31325F",fontSize:"15px","::placeholder":{color:"#CFD7E0"}}},i={focus:"focused",empty:"empty",invalid:"invalid"};n=wc_stripe_params.elements_styling?wc_stripe_params.elements_styling:n,i=wc_stripe_params.elements_classes?wc_stripe_params.elements_classes:i,"yes"===wc_stripe_params.inline_cc_form?(r=s.create("card",{style:n,hidePostalCode:!0})).addEventListener("change",function(r){a.onCCFormChange(),r.error&&e(document.body).trigger("stripeError",r)}):(r=s.create("cardNumber",{style:n,classes:i}),t=s.create("cardExpiry",{style:n,classes:i}),o=s.create("cardCvc",{style:n,classes:i}),r.addEventListener("change",function(r){a.onCCFormChange(),a.updateCardBrand(r.brand),r.error&&e(document.body).trigger("stripeError",r)}),t.addEventListener("change",function(r){a.onCCFormChange(),r.error&&e(document.body).trigger("stripeError",r)}),o.addEventListener("change",function(r){a.onCCFormChange(),r.error&&e(document.body).trigger("stripeError",r)})),"yes"===wc_stripe_params.is_checkout?e(document.body).on("updated_checkout",function(){r&&a.unmountElements(),a.mountElements()}):(e("form#add_payment_method").length||e("form#order_review").length)&&a.mountElements()},updateCardBrand:function(r){var t={visa:"stripe-visa-brand",mastercard:"stripe-mastercard-brand",amex:"stripe-amex-brand",discover:"stripe-discover-brand",diners:"stripe-diners-brand",jcb:"stripe-jcb-brand",unknown:"stripe-credit-card-brand"},o=e(".stripe-card-brand"),n="stripe-credit-card-brand";r in t&&(n=t[r]),e.each(t,function(e,r){o.removeClass(r)}),o.addClass(n)},init:function(){"yes"!==wc_stripe_params.is_change_payment_page&&"yes"!==wc_stripe_params.is_pay_for_order_page||e(document.body).trigger("wc-credit-card-form-init"),this.stripe_checkout_submit=!1,e("form.woocommerce-checkout").length&&(this.form=e("form.woocommerce-checkout")),e("form.woocommerce-checkout").on("checkout_place_order_stripe checkout_place_order_stripe_bancontact checkout_place_order_stripe_sofort checkout_place_order_stripe_giropay checkout_place_order_stripe_ideal checkout_place_order_stripe_alipay checkout_place_order_stripe_sepa checkout_place_order_stripe_bitcoin",this.onSubmit),e("form#order_review").length&&(this.form=e("form#order_review")),e("form#order_review, form#add_payment_method").on("submit",this.onSubmit),e("form#add_payment_method").length&&(this.form=e("form#add_payment_method")),e("form.woocommerce-checkout").on("change",this.reset),e(document).on("stripeError",this.onError).on("checkout_error",this.reset),a.createElements(),"yes"===wc_stripe_params.is_stripe_checkout&&e(document.body).on("click",".wc-stripe-checkout-button",function(){return a.openModal(),!1})},isStripeChosen:function(){return e("#payment_method_stripe, #payment_method_stripe_bancontact, #payment_method_stripe_sofort, #payment_method_stripe_giropay, #payment_method_stripe_ideal, #payment_method_stripe_alipay, #payment_method_stripe_sepa, #payment_method_stripe_bitcoin, #payment_method_stripe_eps, #payment_method_stripe_multibanco").is(":checked")||e("#payment_method_stripe").is(":checked")&&"new"===e('input[name="wc-stripe-payment-token"]:checked').val()||e("#payment_method_stripe_sepa").is(":checked")&&"new"===e('input[name="wc-stripe-payment-token"]:checked').val()},isStripeSaveCardChosen:function(){return e("#payment_method_stripe").is(":checked")&&e('input[name="wc-stripe-payment-token"]').is(":checked")&&"new"!==e('input[name="wc-stripe-payment-token"]:checked').val()||e("#payment_method_stripe_sepa").is(":checked")&&e('input[name="wc-stripe_sepa-payment-token"]').is(":checked")&&"new"!==e('input[name="wc-stripe_sepa-payment-token"]:checked').val()},isStripeCardChosen:function(){return e("#payment_method_stripe").is(":checked")},isBancontactChosen:function(){return e("#payment_method_stripe_bancontact").is(":checked")},isGiropayChosen:function(){return e("#payment_method_stripe_giropay").is(":checked")},isIdealChosen:function(){return e("#payment_method_stripe_ideal").is(":checked")},isSofortChosen:function(){return e("#payment_method_stripe_sofort").is(":checked")},isAlipayChosen:function(){return e("#payment_method_stripe_alipay").is(":checked")},isSepaChosen:function(){return e("#payment_method_stripe_sepa").is(":checked")},isBitcoinChosen:function(){return e("#payment_method_stripe_bitcoin").is(":checked")},isP24Chosen:function(){return e("#payment_method_stripe_p24").is(":checked")},isEpsChosen:function(){return e("#payment_method_stripe_eps").is(":checked")},isMultibancoChosen:function(){return e("#payment_method_stripe_multibanco").is(":checked")},hasSource:function(){return 0<e("input.stripe-source").length},hasToken:function(){return 0<e("input.stripe_token").length},isMobile:function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isStripeModalNeeded:function(e){var r=a.form.find("input.stripe_token");return(!a.stripe_submit||!r)&&!!a.isStripeChosen()},block:function(){a.isMobile()||a.form.block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){a.form.unblock()},getSelectedPaymentElement:function(){return e('.payment_methods input[name="payment_method"]:checked')},openModal:function(){var r=a.form,t=e("#stripe-payment-data");a.reset();StripeCheckout.open({key:wc_stripe_params.key,billingAddress:t.data("billing-address"),zipCode:t.data("verify-zip"),amount:t.data("amount"),name:t.data("name"),description:t.data("description"),currency:t.data("currency"),image:t.data("image"),bitcoin:t.data("bitcoin"),locale:t.data("locale"),email:e("#billing_email").val()||t.data("email"),panelLabel:t.data("panel-label"),allowRememberMe:t.data("allow-remember-me"),token:function(e){if(r.find("input.stripe_source").remove(),"token"===e.object)n.createSource({type:"card",token:e.id}).then(a.sourceResponse);else if("source"===e.object){var t={source:e};a.sourceResponse(t)}},closed:a.onClose()})},resetModal:function(){a.reset(),a.stripe_checkout_submit=!1},onClose:function(){a.unblock()},getOwnerDetails:function(){var r=e("#billing_first_name").length?e("#billing_first_name").val():wc_stripe_params.billing_first_name,t=e("#billing_last_name").length?e("#billing_last_name").val():wc_stripe_params.billing_last_name,o={owner:{name:"",address:{},email:"",phone:""}};return o.owner.name=r,r&&t&&(o.owner.name=r+" "+t),o.owner.email=e("#billing_email").val(),o.owner.phone=e("#billing_phone").val(),void 0!==o.owner.phone&&0>=o.owner.phone.length&&delete o.owner.phone,void 0!==o.owner.email&&0>=o.owner.email.length&&delete o.owner.email,void 0!==o.owner.name&&0>=o.owner.name.length&&delete o.owner.name,e("#billing_address_1").length>0?(o.owner.address.line1=e("#billing_address_1").val(),o.owner.address.line2=e("#billing_address_2").val(),o.owner.address.state=e("#billing_state").val(),o.owner.address.city=e("#billing_city").val(),o.owner.address.postal_code=e("#billing_postcode").val(),o.owner.address.country=e("#billing_country").val()):wc_stripe_params.billing_address_1&&(o.owner.address.line1=wc_stripe_params.billing_address_1,o.owner.address.line2=wc_stripe_params.billing_address_2,o.owner.address.state=wc_stripe_params.billing_state,o.owner.address.city=wc_stripe_params.billing_city,o.owner.address.postal_code=wc_stripe_params.billing_postcode,o.owner.address.country=wc_stripe_params.billing_country),o},createSource:function(){var t=a.getOwnerDetails(),o="card";if(a.isBancontactChosen()&&(o="bancontact"),a.isSepaChosen()&&(o="sepa_debit"),a.isIdealChosen()&&(o="ideal"),a.isSofortChosen()&&(o="sofort"),a.isBitcoinChosen()&&(o="bitcoin"),a.isGiropayChosen()&&(o="giropay"),a.isAlipayChosen()&&(o="alipay"),"card"===o)n.createSource(r,t).then(a.sourceResponse);else{switch(o){case"bancontact":case"giropay":case"ideal":case"sofort":case"alipay":t.amount=e("#stripe-"+o+"-payment-data").data("amount"),t.currency=e("#stripe-"+o+"-payment-data").data("currency"),t.redirect={return_url:wc_stripe_params.return_url},wc_stripe_params.statement_descriptor&&(t.statement_descriptor=wc_stripe_params.statement_descriptor)}switch(o){case"sepa_debit":var i=e("#stripe-payment-data"),s=e("#billing_email").length?e("#billing_email").val():i.data("email");t.currency=e("#stripe-"+o+"-payment-data").data("currency"),t.owner.name=e("#stripe-sepa-owner").val(),t.owner.email=s,t.sepa_debit={iban:e("#stripe-sepa-iban").val()},t.mandate={notification_method:wc_stripe_params.sepa_mandate_notification};break;case"ideal":t.ideal={bank:e("#stripe-ideal-bank").val()};break;case"bitcoin":case"alipay":t.currency=e("#stripe-"+o+"-payment-data").data("currency"),t.amount=e("#stripe-"+o+"-payment-data").data("amount");break;case"sofort":t.sofort={country:e("#billing_country").val()}}t.type=o,n.createSource(t).then(a.sourceResponse)}},sourceResponse:function(r){r.error?e(document.body).trigger("stripeError",r):"no"===wc_stripe_params.allow_prepaid_card&&"card"===r.source.type&&"prepaid"===r.source.card.funding?(r.error={message:wc_stripe_params.no_prepaid_card_msg},"yes"===wc_stripe_params.is_stripe_checkout?a.submitError('<ul class="woocommerce-error"><li>'+wc_stripe_params.no_prepaid_card_msg+"</li></ul>"):e(document.body).trigger("stripeError",r)):a.processStripeResponse(r.source)},processStripeResponse:function(r){a.reset(),a.form.append("<input type='hidden' class='stripe-source' name='stripe_source' value='"+r.id+"'/>"),e("form#add_payment_method").length&&e(a.form).off("submit",a.form.onSubmit),a.form.submit()},onSubmit:function(r){if(a.isStripeChosen()){if(!(a.isStripeSaveCardChosen()||a.hasSource()||a.hasToken())){if(r.preventDefault(),a.block(),"yes"===wc_stripe_params.is_stripe_checkout&&a.isStripeModalNeeded()&&a.isStripeCardChosen())return"yes"===wc_stripe_params.is_checkout||(a.openModal(),!1);if(a.isSepaChosen()){if(""===e("#stripe-sepa-owner").val())return e(document.body).trigger("stripeError",{error:{message:wc_stripe_params.no_sepa_owner_msg}}),!1;if(""===e("#stripe-sepa-iban").val())return e(document.body).trigger("stripeError",{error:{message:wc_stripe_params.no_sepa_iban_msg}}),!1}if(a.isBancontactChosen()||a.isGiropayChosen()||a.isIdealChosen()||a.isAlipayChosen()||a.isSofortChosen()||a.isP24Chosen()||a.isEpsChosen()||a.isMultibancoChosen()){if(e("form#order_review").length)return e("form#order_review").off("submit",this.onSubmit),a.form.submit(),!1;if(e("form.woocommerce-checkout").length)return!0;if(e("form#add_payment_method").length)return e("form#add_payment_method").off("submit",this.onSubmit),a.form.submit(),!1}return a.createSource(),!1}return e("form#add_payment_method").length?(r.preventDefault(),"yes"===wc_stripe_params.is_stripe_checkout&&a.isStripeModalNeeded()&&a.isStripeCardChosen()?(a.openModal(),!1):(a.block(),a.createSource(),!1)):void 0}},onCCFormChange:function(){a.reset()},reset:function(){e(".wc-stripe-error, .stripe-source, .stripe_token").remove(),"yes"===wc_stripe_params.is_stripe_checkout&&(a.stripe_submit=!1)},onError:function(r,t){var o=t.error.message,n=a.getSelectedPaymentElement().parents("li").eq(0).find(".stripe-source-errors");"invalid_request_error"!==t.error.type&&"api_connection_error"!==t.error.type&&"api_error"!==t.error.type&&"authentication_error"!==t.error.type&&"rate_limit_error"!==t.error.type||(o=wc_stripe_params.invalid_request_error),"card_error"===t.error.type&&wc_stripe_params.hasOwnProperty(t.error.code)&&(o=wc_stripe_params[t.error.code]),"validation_error"===t.error.type&&wc_stripe_params.hasOwnProperty(t.error.code)&&(o=wc_stripe_params[t.error.code]),a.reset(),e(".woocommerce-NoticeGroup-checkout").remove(),console.log(t.error.message),e(n).html('<ul class="woocommerce_error woocommerce-error wc-stripe-error"><li>'+o+"</li></ul>"),e(".wc-stripe-error").length&&e("html, body").animate({scrollTop:e(".wc-stripe-error").offset().top-200},200),a.unblock()},submitError:function(r){e(".woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message").remove(),a.form.prepend('<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout">'+r+"</div>"),a.form.removeClass("processing").unblock(),a.form.find(".input-text, select, input:checkbox").blur();var t="";e("#add_payment_method").length&&(t=e("#add_payment_method")),e("#order_review").length&&(t=e("#order_review")),e("form.checkout").length&&(t=e("form.checkout")),t.length&&e("html, body").animate({scrollTop:t.offset().top-100},500),e(document.body).trigger("checkout_error"),a.unblock()}};a.init()});
1
+ jQuery(function(e){"use strict";var r,t,o,n=Stripe(wc_stripe_params.key),a=wc_stripe_params.elements_options.length?wc_stripe_params.elements_options:{},s=n.elements(a),i={getAjaxURL:function(e){return wc_stripe_params.ajaxurl.toString().replace("%%endpoint%%","wc_stripe_"+e)},unmountElements:function(){"yes"===wc_stripe_params.inline_cc_form?r.unmount("#stripe-card-element"):(r.unmount("#stripe-card-element"),t.unmount("#stripe-exp-element"),o.unmount("#stripe-cvc-element"))},mountElements:function(){e("#stripe-card-element").length&&("yes"===wc_stripe_params.inline_cc_form?r.mount("#stripe-card-element"):(r.mount("#stripe-card-element"),t.mount("#stripe-exp-element"),o.mount("#stripe-cvc-element")))},createElements:function(){var n={base:{iconColor:"#666EE8",color:"#31325F",fontSize:"15px","::placeholder":{color:"#CFD7E0"}}},a={focus:"focused",empty:"empty",invalid:"invalid"};n=wc_stripe_params.elements_styling?wc_stripe_params.elements_styling:n,a=wc_stripe_params.elements_classes?wc_stripe_params.elements_classes:a,"yes"===wc_stripe_params.inline_cc_form?(r=s.create("card",{style:n,hidePostalCode:!0})).addEventListener("change",function(r){i.onCCFormChange(),r.error&&e(document.body).trigger("stripeError",r)}):(r=s.create("cardNumber",{style:n,classes:a}),t=s.create("cardExpiry",{style:n,classes:a}),o=s.create("cardCvc",{style:n,classes:a}),r.addEventListener("change",function(r){i.onCCFormChange(),i.updateCardBrand(r.brand),r.error&&e(document.body).trigger("stripeError",r)}),t.addEventListener("change",function(r){i.onCCFormChange(),r.error&&e(document.body).trigger("stripeError",r)}),o.addEventListener("change",function(r){i.onCCFormChange(),r.error&&e(document.body).trigger("stripeError",r)})),"yes"===wc_stripe_params.is_checkout?e(document.body).on("updated_checkout",function(){r&&i.unmountElements(),i.mountElements()}):(e("form#add_payment_method").length||e("form#order_review").length)&&i.mountElements()},updateCardBrand:function(r){var t={visa:"stripe-visa-brand",mastercard:"stripe-mastercard-brand",amex:"stripe-amex-brand",discover:"stripe-discover-brand",diners:"stripe-diners-brand",jcb:"stripe-jcb-brand",unknown:"stripe-credit-card-brand"},o=e(".stripe-card-brand"),n="stripe-credit-card-brand";r in t&&(n=t[r]),e.each(t,function(e,r){o.removeClass(r)}),o.addClass(n)},init:function(){"yes"!==wc_stripe_params.is_change_payment_page&&"yes"!==wc_stripe_params.is_pay_for_order_page||e(document.body).trigger("wc-credit-card-form-init"),this.stripe_checkout_submit=!1,e("form.woocommerce-checkout").length&&(this.form=e("form.woocommerce-checkout")),e("form.woocommerce-checkout").on("checkout_place_order_stripe checkout_place_order_stripe_bancontact checkout_place_order_stripe_sofort checkout_place_order_stripe_giropay checkout_place_order_stripe_ideal checkout_place_order_stripe_alipay checkout_place_order_stripe_sepa",this.onSubmit),e("form#order_review").length&&(this.form=e("form#order_review")),e("form#order_review, form#add_payment_method").on("submit",this.onSubmit),e("form#add_payment_method").length&&(this.form=e("form#add_payment_method")),e("form.woocommerce-checkout").on("change",this.reset),e(document).on("stripeError",this.onError).on("checkout_error",this.reset),i.createElements(),"yes"===wc_stripe_params.is_stripe_checkout&&e(document.body).on("click",".wc-stripe-checkout-button",function(){return i.openModal(),!1})},isStripeChosen:function(){return e("#payment_method_stripe, #payment_method_stripe_bancontact, #payment_method_stripe_sofort, #payment_method_stripe_giropay, #payment_method_stripe_ideal, #payment_method_stripe_alipay, #payment_method_stripe_sepa, #payment_method_stripe_eps, #payment_method_stripe_multibanco").is(":checked")||e("#payment_method_stripe").is(":checked")&&"new"===e('input[name="wc-stripe-payment-token"]:checked').val()||e("#payment_method_stripe_sepa").is(":checked")&&"new"===e('input[name="wc-stripe-payment-token"]:checked').val()},isStripeSaveCardChosen:function(){return e("#payment_method_stripe").is(":checked")&&e('input[name="wc-stripe-payment-token"]').is(":checked")&&"new"!==e('input[name="wc-stripe-payment-token"]:checked').val()||e("#payment_method_stripe_sepa").is(":checked")&&e('input[name="wc-stripe_sepa-payment-token"]').is(":checked")&&"new"!==e('input[name="wc-stripe_sepa-payment-token"]:checked').val()},isStripeCardChosen:function(){return e("#payment_method_stripe").is(":checked")},isBancontactChosen:function(){return e("#payment_method_stripe_bancontact").is(":checked")},isGiropayChosen:function(){return e("#payment_method_stripe_giropay").is(":checked")},isIdealChosen:function(){return e("#payment_method_stripe_ideal").is(":checked")},isSofortChosen:function(){return e("#payment_method_stripe_sofort").is(":checked")},isAlipayChosen:function(){return e("#payment_method_stripe_alipay").is(":checked")},isSepaChosen:function(){return e("#payment_method_stripe_sepa").is(":checked")},isP24Chosen:function(){return e("#payment_method_stripe_p24").is(":checked")},isEpsChosen:function(){return e("#payment_method_stripe_eps").is(":checked")},isMultibancoChosen:function(){return e("#payment_method_stripe_multibanco").is(":checked")},hasSource:function(){return 0<e("input.stripe-source").length},hasToken:function(){return 0<e("input.stripe_token").length},isMobile:function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isStripeModalNeeded:function(e){var r=i.form.find("input.stripe_token");return(!i.stripe_submit||!r)&&!!i.isStripeChosen()},block:function(){i.isMobile()||i.form.block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},unblock:function(){i.form.unblock()},getSelectedPaymentElement:function(){return e('.payment_methods input[name="payment_method"]:checked')},openModal:function(){var r=i.form,t=e("#stripe-payment-data");i.reset();StripeCheckout.open({key:wc_stripe_params.key,billingAddress:t.data("billing-address"),zipCode:t.data("verify-zip"),amount:t.data("amount"),name:t.data("name"),description:t.data("description"),currency:t.data("currency"),image:t.data("image"),locale:t.data("locale"),email:e("#billing_email").val()||t.data("email"),panelLabel:t.data("panel-label"),allowRememberMe:t.data("allow-remember-me"),token:function(e){if(r.find("input.stripe_source").remove(),"token"===e.object)n.createSource({type:"card",token:e.id}).then(i.sourceResponse);else if("source"===e.object){var t={source:e};i.sourceResponse(t)}},closed:i.onClose()})},resetModal:function(){i.reset(),i.stripe_checkout_submit=!1},onClose:function(){i.unblock()},getOwnerDetails:function(){var r=e("#billing_first_name").length?e("#billing_first_name").val():wc_stripe_params.billing_first_name,t=e("#billing_last_name").length?e("#billing_last_name").val():wc_stripe_params.billing_last_name,o={owner:{name:"",address:{},email:"",phone:""}};return o.owner.name=r,o.owner.name=r&&t?r+" "+t:e("#stripe-payment-data").data("full-name"),o.owner.email=e("#billing_email").val(),o.owner.phone=e("#billing_phone").val(),void 0!==o.owner.phone&&0>=o.owner.phone.length&&delete o.owner.phone,void 0!==o.owner.email&&0>=o.owner.email.length&&delete o.owner.email,void 0!==o.owner.name&&0>=o.owner.name.length&&delete o.owner.name,e("#billing_address_1").length>0?(o.owner.address.line1=e("#billing_address_1").val(),o.owner.address.line2=e("#billing_address_2").val(),o.owner.address.state=e("#billing_state").val(),o.owner.address.city=e("#billing_city").val(),o.owner.address.postal_code=e("#billing_postcode").val(),o.owner.address.country=e("#billing_country").val()):wc_stripe_params.billing_address_1&&(o.owner.address.line1=wc_stripe_params.billing_address_1,o.owner.address.line2=wc_stripe_params.billing_address_2,o.owner.address.state=wc_stripe_params.billing_state,o.owner.address.city=wc_stripe_params.billing_city,o.owner.address.postal_code=wc_stripe_params.billing_postcode,o.owner.address.country=wc_stripe_params.billing_country),o},createSource:function(){var t=i.getOwnerDetails(),o="card";if(i.isBancontactChosen()&&(o="bancontact"),i.isSepaChosen()&&(o="sepa_debit"),i.isIdealChosen()&&(o="ideal"),i.isSofortChosen()&&(o="sofort"),i.isGiropayChosen()&&(o="giropay"),i.isAlipayChosen()&&(o="alipay"),"card"===o)n.createSource(r,t).then(i.sourceResponse);else{switch(o){case"bancontact":case"giropay":case"ideal":case"sofort":case"alipay":t.amount=e("#stripe-"+o+"-payment-data").data("amount"),t.currency=e("#stripe-"+o+"-payment-data").data("currency"),t.redirect={return_url:wc_stripe_params.return_url},wc_stripe_params.statement_descriptor&&(t.statement_descriptor=wc_stripe_params.statement_descriptor)}switch(o){case"sepa_debit":var a=e("#stripe-payment-data"),s=e("#billing_email").length?e("#billing_email").val():a.data("email");t.currency=e("#stripe-"+o+"-payment-data").data("currency"),t.owner.name=e("#stripe-sepa-owner").val(),t.owner.email=s,t.sepa_debit={iban:e("#stripe-sepa-iban").val()},t.mandate={notification_method:wc_stripe_params.sepa_mandate_notification};break;case"ideal":t.ideal={bank:e("#stripe-ideal-bank").val()};break;case"alipay":t.currency=e("#stripe-"+o+"-payment-data").data("currency"),t.amount=e("#stripe-"+o+"-payment-data").data("amount");break;case"sofort":t.sofort={country:e("#billing_country").val()}}t.type=o,n.createSource(t).then(i.sourceResponse)}},sourceResponse:function(r){r.error?e(document.body).trigger("stripeError",r):"no"===wc_stripe_params.allow_prepaid_card&&"card"===r.source.type&&"prepaid"===r.source.card.funding?(r.error={message:wc_stripe_params.no_prepaid_card_msg},"yes"===wc_stripe_params.is_stripe_checkout?i.submitError('<ul class="woocommerce-error"><li>'+wc_stripe_params.no_prepaid_card_msg+"</li></ul>"):e(document.body).trigger("stripeError",r)):i.processStripeResponse(r.source)},processStripeResponse:function(r){i.reset(),i.form.append("<input type='hidden' class='stripe-source' name='stripe_source' value='"+r.id+"'/>"),e("form#add_payment_method").length&&e(i.form).off("submit",i.form.onSubmit),i.form.submit()},onSubmit:function(r){if(i.isStripeChosen()){if(!(i.isStripeSaveCardChosen()||i.hasSource()||i.hasToken())){if(r.preventDefault(),i.block(),"yes"===wc_stripe_params.is_stripe_checkout&&i.isStripeModalNeeded()&&i.isStripeCardChosen())return"yes"===wc_stripe_params.is_checkout||(i.openModal(),!1);if(i.isSepaChosen()){if(""===e("#stripe-sepa-owner").val())return e(document.body).trigger("stripeError",{error:{message:wc_stripe_params.no_sepa_owner_msg}}),!1;if(""===e("#stripe-sepa-iban").val())return e(document.body).trigger("stripeError",{error:{message:wc_stripe_params.no_sepa_iban_msg}}),!1}if(i.isBancontactChosen()||i.isGiropayChosen()||i.isIdealChosen()||i.isAlipayChosen()||i.isSofortChosen()||i.isP24Chosen()||i.isEpsChosen()||i.isMultibancoChosen()){if(e("form#order_review").length)return e("form#order_review").off("submit",this.onSubmit),i.form.submit(),!1;if(e("form.woocommerce-checkout").length)return!0;if(e("form#add_payment_method").length)return e("form#add_payment_method").off("submit",this.onSubmit),i.form.submit(),!1}return i.createSource(),!1}return e("form#add_payment_method").length?(r.preventDefault(),"yes"===wc_stripe_params.is_stripe_checkout&&i.isStripeModalNeeded()&&i.isStripeCardChosen()?(i.openModal(),!1):(i.block(),i.createSource(),!1)):void 0}},onCCFormChange:function(){i.reset()},reset:function(){e(".wc-stripe-error, .stripe-source, .stripe_token").remove(),"yes"===wc_stripe_params.is_stripe_checkout&&(i.stripe_submit=!1)},onError:function(r,t){var o=t.error.message,n=i.getSelectedPaymentElement().parents("li").eq(0).find(".stripe-source-errors");"invalid_request_error"!==t.error.type&&"api_connection_error"!==t.error.type&&"api_error"!==t.error.type&&"authentication_error"!==t.error.type&&"rate_limit_error"!==t.error.type||(o=wc_stripe_params.invalid_request_error),"card_error"===t.error.type&&wc_stripe_params.hasOwnProperty(t.error.code)&&(o=wc_stripe_params[t.error.code]),"validation_error"===t.error.type&&wc_stripe_params.hasOwnProperty(t.error.code)&&(o=wc_stripe_params[t.error.code]),i.reset(),e(".woocommerce-NoticeGroup-checkout").remove(),console.log(t.error.message),e(n).html('<ul class="woocommerce_error woocommerce-error wc-stripe-error"><li>'+o+"</li></ul>"),e(".wc-stripe-error").length&&e("html, body").animate({scrollTop:e(".wc-stripe-error").offset().top-200},200),i.unblock()},submitError:function(r){e(".woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message").remove(),i.form.prepend('<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout">'+r+"</div>"),i.form.removeClass("processing").unblock(),i.form.find(".input-text, select, input:checkbox").blur();var t="";e("#add_payment_method").length&&(t=e("#add_payment_method")),e("#order_review").length&&(t=e("#order_review")),e("form.checkout").length&&(t=e("form.checkout")),t.length&&e("html, body").animate({scrollTop:t.offset().top-100},500),e(document.body).trigger("checkout_error"),i.unblock()}};i.init()});
changelog.txt CHANGED
@@ -1,5 +1,11 @@
1
  *** Changelog ***
2
 
 
 
 
 
 
 
3
  = 4.1.1 - 2018-04-17 =
4
  * Tweak - Use payment_complete method when charge is succeeded or captured so other WC related tasks gets triggered.
5
  * Tweak - Styling for the credit card logos.
1
  *** Changelog ***
2
 
3
+ = 4.1.2 - 2018-04-23 =
4
+ * Fix - When payment method is invalid while trying to force save card, unexpected error can occur.
5
+ * Fix - Pass name attribute when adding payment method from my account to allow Radar to work properly.
6
+ * Tweak - Icon CSS styling to work for more different theme setups.
7
+ * Remove - Bitcoin method as it is hard deprecated by Stripe as of April 23, 2018.
8
+
9
  = 4.1.1 - 2018-04-17 =
10
  * Tweak - Use payment_complete method when charge is succeeded or captured so other WC related tasks gets triggered.
11
  * Tweak - Styling for the credit card logos.
includes/abstracts/abstract-wc-stripe-payment-gateway.php CHANGED
@@ -227,7 +227,6 @@ abstract class WC_Stripe_Payment_Gateway extends WC_Payment_Gateway_CC {
227
  'jcb' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/jcb.svg" class="stripe-jcb-icon stripe-icon" alt="JCB" />',
228
  'alipay' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/alipay.svg" class="stripe-alipay-icon stripe-icon" alt="Alipay" />',
229
  'wechat' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/wechat.svg" class="stripe-wechat-icon stripe-icon" alt="Wechat Pay" />',
230
- 'bitcoin' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/bitcoin.svg" class="stripe-bitcoin-icon stripe-icon" alt="Bitcoin" />',
231
  'bancontact' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/bancontact.svg" class="stripe-bancontact-icon stripe-icon" alt="Bancontact" />',
232
  'ideal' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/ideal.svg" class="stripe-ideal-icon stripe-icon" alt="iDeal" />',
233
  'p24' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/p24.svg" class="stripe-p24-icon stripe-icon" alt="P24" />',
227
  'jcb' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/jcb.svg" class="stripe-jcb-icon stripe-icon" alt="JCB" />',
228
  'alipay' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/alipay.svg" class="stripe-alipay-icon stripe-icon" alt="Alipay" />',
229
  'wechat' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/wechat.svg" class="stripe-wechat-icon stripe-icon" alt="Wechat Pay" />',
 
230
  'bancontact' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/bancontact.svg" class="stripe-bancontact-icon stripe-icon" alt="Bancontact" />',
231
  'ideal' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/ideal.svg" class="stripe-ideal-icon stripe-icon" alt="iDeal" />',
232
  'p24' => '<img src="' . WC_STRIPE_PLUGIN_URL . '/assets/images/p24.svg" class="stripe-p24-icon stripe-icon" alt="P24" />',
includes/admin/class-wc-stripe-admin-notices.php CHANGED
@@ -81,7 +81,6 @@ class WC_Stripe_Admin_Notices {
81
  return array(
82
  'Alipay' => 'WC_Gateway_Stripe_Alipay',
83
  'Bancontact' => 'WC_Gateway_Stripe_Bancontact',
84
- 'Bitcoin' => 'WC_Gateway_Stripe_Bitcoin',
85
  'EPS' => 'WC_Gateway_Stripe_EPS',
86
  'Giropay' => 'WC_Gateway_Stripe_Giropay',
87
  'iDeal' => 'WC_Gateway_Stripe_Ideal',
@@ -246,9 +245,6 @@ class WC_Stripe_Admin_Notices {
246
  case 'Bancontact':
247
  update_option( 'wc_stripe_show_bancontact_notice', 'no' );
248
  break;
249
- case 'Bitcoin':
250
- update_option( 'wc_stripe_show_bitcoin_notice', 'no' );
251
- break;
252
  case 'EPS':
253
  update_option( 'wc_stripe_show_eps_notice', 'no' );
254
  break;
81
  return array(
82
  'Alipay' => 'WC_Gateway_Stripe_Alipay',
83
  'Bancontact' => 'WC_Gateway_Stripe_Bancontact',
 
84
  'EPS' => 'WC_Gateway_Stripe_EPS',
85
  'Giropay' => 'WC_Gateway_Stripe_Giropay',
86
  'iDeal' => 'WC_Gateway_Stripe_Ideal',
245
  case 'Bancontact':
246
  update_option( 'wc_stripe_show_bancontact_notice', 'no' );
247
  break;
 
 
 
248
  case 'EPS':
249
  update_option( 'wc_stripe_show_eps_notice', 'no' );
250
  break;
includes/admin/stripe-bitcoin-settings.php DELETED
@@ -1,48 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) {
3
- exit;
4
- }
5
-
6
- return apply_filters( 'wc_stripe_bitcoin_settings',
7
- array(
8
- 'geo_target' => array(
9
- 'description' => __( 'Relevant Payer Geography: Global', 'woocommerce-gateway-stripe' ),
10
- 'type' => 'title',
11
- ),
12
- 'guide' => array(
13
- 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#bitcoin" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ),
14
- 'type' => 'title',
15
- ),
16
- 'activation' => array(
17
- 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ),
18
- 'type' => 'title',
19
- ),
20
- 'enabled' => array(
21
- 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ),
22
- 'label' => __( 'Enable Stripe Bitcoin', 'woocommerce-gateway-stripe' ),
23
- 'type' => 'checkbox',
24
- 'description' => '',
25
- 'default' => 'no',
26
- ),
27
- 'title' => array(
28
- 'title' => __( 'Title', 'woocommerce-gateway-stripe' ),
29
- 'type' => 'text',
30
- 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
31
- 'default' => __( 'Bitcoin', 'woocommerce-gateway-stripe' ),
32
- 'desc_tip' => true,
33
- ),
34
- 'description' => array(
35
- 'title' => __( 'Description', 'woocommerce-gateway-stripe' ),
36
- 'type' => 'text',
37
- 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ),
38
- 'default' => __( 'Bitcoin payment information will be provided when you place the order.', 'woocommerce-gateway-stripe' ),
39
- 'desc_tip' => true,
40
- ),
41
- 'webhook' => array(
42
- 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ),
43
- 'type' => 'title',
44
- /* translators: webhook URL */
45
- 'description' => $this->display_admin_settings_webhook_description(),
46
- ),
47
- )
48
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/admin/stripe-settings.php CHANGED
@@ -99,18 +99,10 @@ return apply_filters( 'wc_stripe_settings',
99
  'desc_tip' => true,
100
  ),
101
  'stripe_checkout' => array(
102
- 'title' => __( 'Stripe Checkout', 'woocommerce-gateway-stripe' ),
103
  'label' => __( 'Enable Stripe Checkout', 'woocommerce-gateway-stripe' ),
104
  'type' => 'checkbox',
105
- 'description' => __( 'If enabled, this option shows a "pay" button and modal credit card form on the checkout, instead of credit card fields directly on the page.', 'woocommerce-gateway-stripe' ),
106
- 'default' => 'no',
107
- 'desc_tip' => true,
108
- ),
109
- 'stripe_bitcoin' => array(
110
- 'title' => __( 'Bitcoin Currency', 'woocommerce-gateway-stripe' ),
111
- 'label' => __( 'Enable Bitcoin Currency', 'woocommerce-gateway-stripe' ),
112
- 'type' => 'checkbox',
113
- 'description' => __( 'If enabled, an option to accept bitcoin will show on the checkout modal. Note: Stripe Checkout needs to be enabled and store currency must be set to USD.', 'woocommerce-gateway-stripe' ),
114
  'default' => 'no',
115
  'desc_tip' => true,
116
  ),
99
  'desc_tip' => true,
100
  ),
101
  'stripe_checkout' => array(
102
+ 'title' => __( 'Stripe Modal Checkout', 'woocommerce-gateway-stripe' ),
103
  'label' => __( 'Enable Stripe Checkout', 'woocommerce-gateway-stripe' ),
104
  'type' => 'checkbox',
105
+ 'description' => __( 'If enabled, this option shows a "pay" button and modal credit card form on the checkout, instead of credit card fields directly on the page. We recommend you leave this disabled and use the embedded form as that is the preferred method.', 'woocommerce-gateway-stripe' ),
 
 
 
 
 
 
 
 
106
  'default' => 'no',
107
  'desc_tip' => true,
108
  ),
includes/class-wc-gateway-stripe.php CHANGED
@@ -79,13 +79,6 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
79
  */
80
  public $publishable_key;
81
 
82
- /**
83
- * Do we accept bitcoin?
84
- *
85
- * @var bool
86
- */
87
- public $bitcoin;
88
-
89
  /**
90
  * Do we accept Payment Request?
91
  *
@@ -163,7 +156,6 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
163
  $this->saved_cards = 'yes' === $this->get_option( 'saved_cards' );
164
  $this->secret_key = $this->testmode ? $this->get_option( 'test_secret_key' ) : $this->get_option( 'secret_key' );
165
  $this->publishable_key = $this->testmode ? $this->get_option( 'test_publishable_key' ) : $this->get_option( 'publishable_key' );
166
- $this->bitcoin = 'USD' === strtoupper( get_woocommerce_currency() ) && 'yes' === $this->get_option( 'stripe_bitcoin' );
167
  $this->payment_request = 'yes' === $this->get_option( 'payment_request', 'yes' );
168
 
169
  if ( $this->stripe_checkout ) {
@@ -254,10 +246,6 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
254
  $icons_str .= $icons['diners'];
255
  }
256
 
257
- if ( $this->bitcoin && $this->stripe_checkout ) {
258
- $icons_str .= $icons['bitcoin'];
259
- }
260
-
261
  return apply_filters( 'woocommerce_gateway_icon', $icons_str, $this->id );
262
  }
263
 
@@ -277,6 +265,8 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
277
  $total = WC()->cart->total;
278
  $user_email = '';
279
  $description = $this->get_description() ? $this->get_description() : '';
 
 
280
 
281
  // If paying from order, we need to get total from order not cart.
282
  if ( isset( $_GET['pay_for_order'] ) && ! empty( $_GET['key'] ) ) {
@@ -292,7 +282,10 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
292
 
293
  if ( is_add_payment_method_page() ) {
294
  $pay_button_text = __( 'Add Card', 'woocommerce-gateway-stripe' );
295
- $total = '';
 
 
 
296
  } elseif ( function_exists( 'wcs_order_contains_subscription' ) && isset( $_GET['change_payment_method'] ) ) {
297
  $pay_button_text = __( 'Change Payment Method', 'woocommerce-gateway-stripe' );
298
  $total = '';
@@ -312,9 +305,9 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
312
  data-shipping-address="' . esc_attr( apply_filters( 'wc_stripe_checkout_require_shipping_address', false ) ? 'true' : 'false' ) . '"
313
  data-amount="' . esc_attr( WC_Stripe_Helper::get_stripe_amount( $total ) ) . '"
314
  data-name="' . esc_attr( $this->statement_descriptor ) . '"
 
315
  data-currency="' . esc_attr( strtolower( get_woocommerce_currency() ) ) . '"
316
  data-image="' . esc_attr( $this->stripe_checkout_image ) . '"
317
- data-bitcoin="' . esc_attr( ( $this->bitcoin && $this->capture ) ? 'true' : 'false' ) . '"
318
  data-locale="' . esc_attr( apply_filters( 'wc_stripe_checkout_locale', $this->get_locale() ) ) . '"
319
  data-three-d-secure="' . esc_attr( $this->three_d_secure ? 'true' : 'false' ) . '"
320
  data-allow-remember-me="' . esc_attr( apply_filters( 'wc_stripe_allow_remember_me', true ) ? 'true' : 'false' ) . '">';
@@ -560,7 +553,6 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
560
  data-name="' . esc_attr( $this->statement_descriptor ) . '"
561
  data-currency="' . esc_attr( strtolower( get_woocommerce_currency() ) ) . '"
562
  data-image="' . esc_attr( $this->stripe_checkout_image ) . '"
563
- data-bitcoin="' . esc_attr( ( $this->bitcoin && $this->capture ) ? 'true' : 'false' ) . '"
564
  data-locale="' . esc_attr( apply_filters( 'wc_stripe_checkout_locale', $this->get_locale() ) ) . '"
565
  data-three-d-secure="' . esc_attr( $this->three_d_secure ? 'true' : 'false' ) . '"
566
  data-allow-remember-me="' . esc_attr( apply_filters( 'wc_stripe_allow_remember_me', true ) ? 'true' : 'false' ) . '">';
79
  */
80
  public $publishable_key;
81
 
 
 
 
 
 
 
 
82
  /**
83
  * Do we accept Payment Request?
84
  *
156
  $this->saved_cards = 'yes' === $this->get_option( 'saved_cards' );
157
  $this->secret_key = $this->testmode ? $this->get_option( 'test_secret_key' ) : $this->get_option( 'secret_key' );
158
  $this->publishable_key = $this->testmode ? $this->get_option( 'test_publishable_key' ) : $this->get_option( 'publishable_key' );
 
159
  $this->payment_request = 'yes' === $this->get_option( 'payment_request', 'yes' );
160
 
161
  if ( $this->stripe_checkout ) {
246
  $icons_str .= $icons['diners'];
247
  }
248
 
 
 
 
 
249
  return apply_filters( 'woocommerce_gateway_icon', $icons_str, $this->id );
250
  }
251
 
265
  $total = WC()->cart->total;
266
  $user_email = '';
267
  $description = $this->get_description() ? $this->get_description() : '';
268
+ $firstname = '';
269
+ $lastname = '';
270
 
271
  // If paying from order, we need to get total from order not cart.
272
  if ( isset( $_GET['pay_for_order'] ) && ! empty( $_GET['key'] ) ) {
282
 
283
  if ( is_add_payment_method_page() ) {
284
  $pay_button_text = __( 'Add Card', 'woocommerce-gateway-stripe' );
285
+ $total = '';
286
+ $firstname = $user->user_firstname;
287
+ $lastname = $user->user_lastname;
288
+
289
  } elseif ( function_exists( 'wcs_order_contains_subscription' ) && isset( $_GET['change_payment_method'] ) ) {
290
  $pay_button_text = __( 'Change Payment Method', 'woocommerce-gateway-stripe' );
291
  $total = '';
305
  data-shipping-address="' . esc_attr( apply_filters( 'wc_stripe_checkout_require_shipping_address', false ) ? 'true' : 'false' ) . '"
306
  data-amount="' . esc_attr( WC_Stripe_Helper::get_stripe_amount( $total ) ) . '"
307
  data-name="' . esc_attr( $this->statement_descriptor ) . '"
308
+ data-full-name="' . esc_attr( $firstname . ' ' . $lastname ) . '"
309
  data-currency="' . esc_attr( strtolower( get_woocommerce_currency() ) ) . '"
310
  data-image="' . esc_attr( $this->stripe_checkout_image ) . '"
 
311
  data-locale="' . esc_attr( apply_filters( 'wc_stripe_checkout_locale', $this->get_locale() ) ) . '"
312
  data-three-d-secure="' . esc_attr( $this->three_d_secure ? 'true' : 'false' ) . '"
313
  data-allow-remember-me="' . esc_attr( apply_filters( 'wc_stripe_allow_remember_me', true ) ? 'true' : 'false' ) . '">';
553
  data-name="' . esc_attr( $this->statement_descriptor ) . '"
554
  data-currency="' . esc_attr( strtolower( get_woocommerce_currency() ) ) . '"
555
  data-image="' . esc_attr( $this->stripe_checkout_image ) . '"
 
556
  data-locale="' . esc_attr( apply_filters( 'wc_stripe_checkout_locale', $this->get_locale() ) ) . '"
557
  data-three-d-secure="' . esc_attr( $this->three_d_secure ? 'true' : 'false' ) . '"
558
  data-allow-remember-me="' . esc_attr( apply_filters( 'wc_stripe_allow_remember_me', true ) ? 'true' : 'false' ) . '">';
includes/class-wc-stripe-customer.php CHANGED
@@ -141,6 +141,21 @@ class WC_Stripe_Customer {
141
  return $response->id;
142
  }
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  /**
145
  * Add a source for this stripe customer.
146
  * @param string $source_id
141
  return $response->id;
142
  }
143
 
144
+ /**
145
+ * Checks to see if error is of invalid request
146
+ * error and it is no such customer.
147
+ *
148
+ * @since 4.1.2
149
+ * @param array $error
150
+ */
151
+ public function is_no_such_customer_error( $error ) {
152
+ return (
153
+ $error &&
154
+ 'invalid_request_error' === $error->type &&
155
+ preg_match( '/No such customer/i', $error->message )
156
+ );
157
+ }
158
+
159
  /**
160
  * Add a source for this stripe customer.
161
  * @param string $source_id
includes/class-wc-stripe-payment-tokens.php CHANGED
@@ -71,7 +71,9 @@ class WC_Stripe_Payment_Tokens {
71
  $has_token = false;
72
 
73
  foreach ( $gateways as $gateway ) {
74
- if ( ! empty( WC_Payment_Tokens::get_customer_tokens( $customer_id, $gateway ) ) ) {
 
 
75
  $has_token = true;
76
  break;
77
  }
71
  $has_token = false;
72
 
73
  foreach ( $gateways as $gateway ) {
74
+ $tokens = WC_Payment_Tokens::get_customer_tokens( $customer_id, $gateway );
75
+
76
+ if ( ! empty( $tokens ) ) {
77
  $has_token = true;
78
  break;
79
  }
includes/payment-methods/class-wc-gateway-stripe-bitcoin.php DELETED
@@ -1,369 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) {
3
- exit;
4
- }
5
-
6
- /**
7
- * Class that handles Bitcoin payment method.
8
- *
9
- * @extends WC_Gateway_Stripe
10
- *
11
- * @since 4.0.0
12
- */
13
- class WC_Gateway_Stripe_Bitcoin extends WC_Stripe_Payment_Gateway {
14
- /**
15
- * Notices (array)
16
- * @var array
17
- */
18
- public $notices = array();
19
-
20
- /**
21
- * Is test mode active?
22
- *
23
- * @var bool
24
- */
25
- public $testmode;
26
-
27
- /**
28
- * Alternate credit card statement name
29
- *
30
- * @var bool
31
- */
32
- public $statement_descriptor;
33
-
34
- /**
35
- * API access secret key
36
- *
37
- * @var string
38
- */
39
- public $secret_key;
40
-
41
- /**
42
- * Api access publishable key
43
- *
44
- * @var string
45
- */
46
- public $publishable_key;
47
-
48
- /**
49
- * Should we store the users credit cards?
50
- *
51
- * @var bool
52
- */
53
- public $saved_cards;
54
-
55
- /**
56
- * Instructions for Bitcoin payment.
57
- *
58
- * @var string
59
- */
60
- public $instructions;
61
-
62
- /**
63
- * Constructor
64
- */
65
- public function __construct() {
66
- $this->id = 'stripe_bitcoin';
67
- $this->method_title = __( 'Stripe Bitcoin', 'woocommerce-gateway-stripe' );
68
- /* translators: link */
69
- $this->method_description = sprintf( __( 'All other general Stripe settings can be adjusted <a href="%s">here</a>.', 'woocommerce-gateway-stripe' ), admin_url( 'admin.php?page=wc-settings&tab=checkout&section=stripe' ) );
70
- $this->supports = array(
71
- 'products',
72
- 'refunds',
73
- );
74
-
75
- // Load the form fields.
76
- $this->init_form_fields();
77
-
78
- // Load the settings.
79
- $this->init_settings();
80
-
81
- $main_settings = get_option( 'woocommerce_stripe_settings' );
82
- $this->title = $this->get_option( 'title' );
83
- $this->description = $this->get_option( 'description' );
84
- $this->enabled = $this->get_option( 'enabled' );
85
- $this->testmode = ( ! empty( $main_settings['testmode'] ) && 'yes' === $main_settings['testmode'] ) ? true : false;
86
- $this->saved_cards = ( ! empty( $main_settings['saved_cards'] ) && 'yes' === $main_settings['saved_cards'] ) ? true : false;
87
- $this->publishable_key = ! empty( $main_settings['publishable_key'] ) ? $main_settings['publishable_key'] : '';
88
- $this->secret_key = ! empty( $main_settings['secret_key'] ) ? $main_settings['secret_key'] : '';
89
- $this->statement_descriptor = ! empty( $main_settings['statement_descriptor'] ) ? $main_settings['statement_descriptor'] : '';
90
-
91
- if ( $this->testmode ) {
92
- $this->publishable_key = ! empty( $main_settings['test_publishable_key'] ) ? $main_settings['test_publishable_key'] : '';
93
- $this->secret_key = ! empty( $main_settings['test_secret_key'] ) ? $main_settings['test_secret_key'] : '';
94
- }
95
-
96
- add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
97
- add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) );
98
- add_action( 'woocommerce_thankyou_stripe_bitcoin', array( $this, 'thankyou_page' ) );
99
-
100
- // Customer Emails.
101
- add_action( 'woocommerce_email_before_order_table', array( $this, 'email_instructions' ), 10, 3 );
102
- }
103
-
104
- /**
105
- * Returns all supported currencies for this payment method.
106
- *
107
- * @since 4.0.0
108
- * @version 4.0.0
109
- * @return array
110
- */
111
- public function get_supported_currency() {
112
- return apply_filters( 'wc_stripe_bitcoin_supported_currencies', array(
113
- 'USD',
114
- ) );
115
- }
116
-
117
- /**
118
- * Checks to see if all criteria is met before showing payment method.
119
- *
120
- * @since 4.0.0
121
- * @version 4.0.0
122
- * @return bool
123
- */
124
- public function is_available() {
125
- if ( ! in_array( get_woocommerce_currency(), $this->get_supported_currency() ) ) {
126
- return false;
127
- }
128
-
129
- return parent::is_available();
130
- }
131
-
132
- /**
133
- * Get_icon function.
134
- *
135
- * @since 1.0.0
136
- * @version 4.0.0
137
- * @return string
138
- */
139
- public function get_icon() {
140
- $icons = $this->payment_icons();
141
-
142
- $icons_str = '';
143
-
144
- $icons_str .= $icons['bitcoin'];
145
-
146
- return apply_filters( 'woocommerce_gateway_icon', $icons_str, $this->id );
147
- }
148
-
149
- /**
150
- * payment_scripts function.
151
- *
152
- * Outputs scripts used for stripe payment
153
- *
154
- * @access public
155
- */
156
- public function payment_scripts() {
157
- if ( ! is_cart() && ! is_checkout() && ! isset( $_GET['pay_for_order'] ) && ! is_add_payment_method_page() ) {
158
- return;
159
- }
160
-
161
- wp_enqueue_style( 'stripe_styles' );
162
- wp_enqueue_script( 'woocommerce_stripe' );
163
- }
164
-
165
- /**
166
- * Initialize Gateway Settings Form Fields.
167
- */
168
- public function init_form_fields() {
169
- $this->form_fields = require( WC_STRIPE_PLUGIN_PATH . '/includes/admin/stripe-bitcoin-settings.php' );
170
- }
171
-
172
- /**
173
- * Payment form on checkout page
174
- */
175
- public function payment_fields() {
176
- $user = wp_get_current_user();
177
- $total = WC()->cart->total;
178
- $description = $this->get_description();
179
-
180
- // If paying from order, we need to get total from order not cart.
181
- if ( isset( $_GET['pay_for_order'] ) && ! empty( $_GET['key'] ) ) {
182
- $order = wc_get_order( wc_get_order_id_by_order_key( wc_clean( $_GET['key'] ) ) );
183
- $total = $order->get_total();
184
- }
185
-
186
- if ( is_add_payment_method_page() ) {
187
- $pay_button_text = __( 'Add Payment', 'woocommerce-gateway-stripe' );
188
- $total = '';
189
- } else {
190
- $pay_button_text = '';
191
- }
192
-
193
- echo '<div
194
- id="stripe-bitcoin-payment-data"
195
- data-amount="' . esc_attr( WC_Stripe_Helper::get_stripe_amount( $total ) ) . '"
196
- data-currency="' . esc_attr( strtolower( get_woocommerce_currency() ) ) . '">';
197
-
198
- if ( $description ) {
199
- echo apply_filters( 'wc_stripe_description', wpautop( wp_kses_post( $description ) ), $this->id );
200
- }
201
-
202
- echo '</div>';
203
- }
204
-
205
- /**
206
- * Output for the order received page.
207
- *
208
- * @param int $order_id
209
- */
210
- public function thankyou_page( $order_id ) {
211
- $this->get_instructions( $order_id );
212
- }
213
-
214
- /**
215
- * Add content to the WC emails.
216
- *
217
- * @since 4.0.0
218
- * @version 4.0.0
219
- * @param WC_Order $order
220
- * @param bool $sent_to_admin
221
- * @param bool $plain_text
222
- */
223
- public function email_instructions( $order, $sent_to_admin, $plain_text = false ) {
224
- $order_id = WC_Stripe_Helper::is_pre_30() ? $order->id : $order->get_id();
225
-
226
- $payment_method = WC_Stripe_Helper::is_pre_30() ? $order->payment_method : $order->get_payment_method();
227
-
228
- if ( ! $sent_to_admin && 'stripe_bitcoin' === $payment_method && $order->has_status( 'on-hold' ) ) {
229
- WC_Stripe_Logger::log( 'Sending bitcoin email for order #' . $order_id );
230
-
231
- $this->get_instructions( $order_id, $plain_text );
232
- }
233
- }
234
-
235
- /**
236
- * Gets the Bitcoin instructions for customer to pay.
237
- *
238
- * @since 4.0.0
239
- * @version 4.0.0
240
- * @param int $order_id
241
- */
242
- public function get_instructions( $order_id, $plain_text = false ) {
243
- $data = get_post_meta( $order_id, '_stripe_bitcoin', true );
244
-
245
- if ( $plain_text ) {
246
- esc_html_e( 'Please pay the following:', 'woocommerce-gateway-stripe' ) . "\n\n";
247
- echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
248
- esc_html_e( 'Bitcoin Amount:', 'woocommerce-gateway-stripe' ) . "\n\n";
249
- echo $data['amount'] . "\n\n";
250
- echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
251
- esc_html_e( 'Receiver:', 'woocommerce-gateway-stripe' ) . "\n\n";
252
- echo $data['address'] . "\n\n";
253
- echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
254
- esc_html_e( 'URI:', 'woocommerce-gateway-stripe' ) . "\n\n";
255
- echo $data['uri'] . "\n\n";
256
- } else {
257
- ?>
258
- <h3><?php esc_html_e( 'Please pay the following:', 'woocommerce-gateway-stripe' ); ?></h3>
259
- <ul class="woocommerce-order-overview woocommerce-thankyou-order-details order_details">
260
- <li class="woocommerce-order-overview__order order">
261
- <?php esc_html_e( 'Bitcoin Amount:', 'woocommerce-gateway-stripe' ); ?>
262
- <strong><?php echo $data['amount']; ?></strong>
263
- </li>
264
- <li class="woocommerce-order-overview__order order">
265
- <?php esc_html_e( 'Receiver:', 'woocommerce-gateway-stripe' ); ?>
266
- <strong><?php echo $data['address']; ?></strong>
267
- </li>
268
- <li class="woocommerce-order-overview__order order">
269
- <?php esc_html_e( 'URI:', 'woocommerce-gateway-stripe' ); ?>
270
- <strong>
271
- <?php
272
- /* translators: link */
273
- printf( __( '<a href="%s">Pay Bitcoin</a>', 'woocommerce-gateway-stripe' ), $data['uri'] );
274
- ?>
275
- </strong>
276
- </li>
277
- </ul>
278
- <?php
279
- }
280
- }
281
-
282
- /**
283
- * Saves Bitcoin information to the order meta for later use.
284
- *
285
- * @since 4.0.0
286
- * @version 4.0.0
287
- * @param object $order
288
- * @param object $source_object
289
- */
290
- public function save_instructions( $order, $source_object ) {
291
- $data = array(
292
- 'amount' => $source_object->bitcoin->amount,
293
- 'address' => $source_object->bitcoin->address,
294
- 'uri' => $source_object->bitcoin->uri,
295
- );
296
-
297
- $order_id = WC_Stripe_Helper::is_pre_30() ? $order->id : $order->get_id();
298
-
299
- update_post_meta( $order_id, '_stripe_bitcoin', $data );
300
- }
301
-
302
- /**
303
- * Process the payment
304
- *
305
- * @param int $order_id Reference.
306
- * @param bool $retry Should we retry on fail.
307
- * @param bool $force_save_source Force save the payment source.
308
- *
309
- * @throws Exception If payment will not be accepted.
310
- *
311
- * @return array|void
312
- */
313
- public function process_payment( $order_id, $retry = true, $force_save_source = false ) {
314
- try {
315
- $order = wc_get_order( $order_id );
316
-
317
- // This comes from the create account checkbox in the checkout page.
318
- $create_account = ! empty( $_POST['createaccount'] ) ? true : false;
319
-
320
- if ( $create_account ) {
321
- $new_customer_id = WC_Stripe_Helper::is_pre_30() ? $order->customer_user : $order->get_customer_id();
322
- $new_stripe_customer = new WC_Stripe_Customer( $new_customer_id );
323
- $new_stripe_customer->create_customer();
324
- }
325
-
326
- $prepared_source = $this->prepare_source( get_current_user_id(), $force_save_source );
327
-
328
- if ( empty( $prepared_source->source ) ) {
329
- $localized_message = __( 'Payment processing failed. Please retry.', 'woocommerce-gateway-stripe' );
330
- throw new WC_Stripe_Exception( print_r( $prepared_source, true ), $localized_message );
331
- }
332
-
333
- $this->save_source_to_order( $order, $prepared_source );
334
-
335
- // This will throw exception if not valid.
336
- $this->validate_minimum_order_amount( $order );
337
-
338
- $this->save_instructions( $order, $this->get_source_object( $prepared_source->source ) );
339
-
340
- // Mark as on-hold (we're awaiting the payment).
341
- $order->update_status( 'on-hold', __( 'Awaiting Bitcoin payment', 'woocommerce-gateway-stripe' ) );
342
-
343
- wc_reduce_stock_levels( $order_id );
344
-
345
- // Remove cart.
346
- WC()->cart->empty_cart();
347
-
348
- // Return thankyou redirect.
349
- return array(
350
- 'result' => 'success',
351
- 'redirect' => $this->get_return_url( $order ),
352
- );
353
- } catch ( WC_Stripe_Exception $e ) {
354
- wc_add_notice( $e->getLocalizedMessage(), 'error' );
355
- WC_Stripe_Logger::log( 'Error: ' . $e->getMessage() );
356
-
357
- do_action( 'wc_gateway_stripe_process_payment_error', $e, $order );
358
-
359
- if ( $order->has_status( array( 'pending', 'failed' ) ) ) {
360
- $this->send_failed_order_email( $order_id );
361
- }
362
-
363
- return array(
364
- 'result' => 'fail',
365
- 'redirect' => '',
366
- );
367
- }
368
- }
369
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/woocommerce-gateway-stripe.pot CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: WooCommerce Stripe Gateway 4.1.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://github.com/woocommerce/woocommerce-gateway-stripe/issues\n"
8
- "POT-Creation-Date: 2018-04-18 00:00:54+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -28,7 +28,7 @@ msgstr ""
28
  msgid "Save payment information to my account for future purchases."
29
  msgstr ""
30
 
31
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:253
32
  #: includes/compat/class-wc-stripe-sepa-subs-compat.php:175
33
  #: includes/compat/class-wc-stripe-subs-compat.php:190
34
  #. translators: 1) dollar amount
@@ -36,25 +36,25 @@ msgstr ""
36
  msgid "Sorry, the minimum allowed order total is %1$s to use this payment method."
37
  msgstr ""
38
 
39
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:349
40
  #. translators: 1) blog name 2) order number
41
  msgid "%1$s - Order %2$s"
42
  msgstr ""
43
 
44
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:376
45
  msgid "customer_name"
46
  msgstr ""
47
 
48
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:377
49
  msgid "customer_email"
50
  msgstr ""
51
 
52
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:451
53
  #. translators: transaction id
54
  msgid "Stripe charge awaiting payment: %s."
55
  msgstr ""
56
 
57
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:458
58
  #: includes/class-wc-stripe-order-handler.php:249
59
  #: includes/class-wc-stripe-webhook-handler.php:312
60
  #: includes/class-wc-stripe-webhook-handler.php:359
@@ -62,64 +62,63 @@ msgstr ""
62
  msgid "Stripe charge complete (Charge ID: %s)"
63
  msgstr ""
64
 
65
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:463
66
- #: includes/class-wc-gateway-stripe.php:695
67
  #: includes/compat/class-wc-stripe-sepa-subs-compat.php:134
68
  #: includes/compat/class-wc-stripe-subs-compat.php:96
69
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:329
70
  msgid "Payment processing failed. Please retry."
71
  msgstr ""
72
 
73
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:475
74
  #. translators: transaction id
75
  msgid ""
76
  "Stripe charge authorized (Charge ID: %s). Process order to take payment, or "
77
  "cancel to remove the pre-authorization."
78
  msgstr ""
79
 
80
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:701
81
  msgid "Invalid payment method. Please input a new card number."
82
  msgstr ""
83
 
84
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:949
85
  #. translators: 1) dollar amount 2) transaction id 3) refund message
86
  msgid "Refunded %1$s - Refund ID: %2$s - Reason: %3$s"
87
  msgstr ""
88
 
89
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:949
90
  msgid "Pre-Authorization Released"
91
  msgstr ""
92
 
93
- #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:967
94
  msgid "There was a problem adding the card."
95
  msgstr ""
96
 
97
- #: includes/admin/class-wc-stripe-admin-notices.php:119
98
  #. translators: 1) int version 2) int version
99
  msgid ""
100
  "WooCommerce Stripe - The minimum PHP version required for this plugin is "
101
  "%1$s. You are running %2$s."
102
  msgstr ""
103
 
104
- #: includes/admin/class-wc-stripe-admin-notices.php:130
105
  #. translators: 1) int version 2) int version
106
  msgid ""
107
  "WooCommerce Stripe - The minimum WooCommerce version required for this "
108
  "plugin is %1$s. You are running %2$s."
109
  msgstr ""
110
 
111
- #: includes/admin/class-wc-stripe-admin-notices.php:140
112
  msgid "WooCommerce Stripe - cURL is not installed."
113
  msgstr ""
114
 
115
- #: includes/admin/class-wc-stripe-admin-notices.php:150
116
  #. translators: 1) link
117
  msgid ""
118
  "Stripe is almost ready. To get started, <a href=\"%s\">set your Stripe "
119
  "account keys</a>."
120
  msgstr ""
121
 
122
- #: includes/admin/class-wc-stripe-admin-notices.php:162
123
  #. translators: 1) link
124
  msgid ""
125
  "Stripe is in test mode however your test keys may not be valid. Test keys "
@@ -127,7 +126,7 @@ msgid ""
127
  "<a href=\"%s\">set your Stripe account keys</a>."
128
  msgstr ""
129
 
130
- #: includes/admin/class-wc-stripe-admin-notices.php:172
131
  #. translators: 1) link
132
  msgid ""
133
  "Stripe is in live mode however your test keys may not be valid. Live keys "
@@ -135,7 +134,7 @@ msgid ""
135
  "<a href=\"%s\">set your Stripe account keys</a>."
136
  msgstr ""
137
 
138
- #: includes/admin/class-wc-stripe-admin-notices.php:181
139
  #. translators: 1) link 2) link
140
  msgid ""
141
  "Stripe is enabled, but the <a href=\"%1$s\">force SSL option</a> is "
@@ -144,15 +143,15 @@ msgid ""
144
  "certificate</a> - Stripe will only work in test mode."
145
  msgstr ""
146
 
147
- #: includes/admin/class-wc-stripe-admin-notices.php:204
148
  msgid "%s is enabled - it requires store currency to be set to %s"
149
  msgstr ""
150
 
151
- #: includes/admin/class-wc-stripe-admin-notices.php:218
152
  msgid "Action failed. Please refresh the page and retry."
153
  msgstr ""
154
 
155
- #: includes/admin/class-wc-stripe-admin-notices.php:222
156
  msgid "Cheatin&#8217; huh?"
157
  msgstr ""
158
 
@@ -168,7 +167,6 @@ msgstr ""
168
 
169
  #: includes/admin/stripe-alipay-settings.php:17
170
  #: includes/admin/stripe-bancontact-settings.php:17
171
- #: includes/admin/stripe-bitcoin-settings.php:17
172
  #: includes/admin/stripe-eps-settings.php:13
173
  #: includes/admin/stripe-giropay-settings.php:17
174
  #: includes/admin/stripe-ideal-settings.php:17
@@ -184,7 +182,6 @@ msgstr ""
184
 
185
  #: includes/admin/stripe-alipay-settings.php:21
186
  #: includes/admin/stripe-bancontact-settings.php:21
187
- #: includes/admin/stripe-bitcoin-settings.php:21
188
  #: includes/admin/stripe-eps-settings.php:17
189
  #: includes/admin/stripe-giropay-settings.php:21
190
  #: includes/admin/stripe-ideal-settings.php:21
@@ -202,7 +199,6 @@ msgstr ""
202
 
203
  #: includes/admin/stripe-alipay-settings.php:28
204
  #: includes/admin/stripe-bancontact-settings.php:28
205
- #: includes/admin/stripe-bitcoin-settings.php:28
206
  #: includes/admin/stripe-eps-settings.php:24
207
  #: includes/admin/stripe-giropay-settings.php:28
208
  #: includes/admin/stripe-ideal-settings.php:28
@@ -216,7 +212,6 @@ msgstr ""
216
 
217
  #: includes/admin/stripe-alipay-settings.php:30
218
  #: includes/admin/stripe-bancontact-settings.php:30
219
- #: includes/admin/stripe-bitcoin-settings.php:30
220
  #: includes/admin/stripe-eps-settings.php:26
221
  #: includes/admin/stripe-giropay-settings.php:30
222
  #: includes/admin/stripe-ideal-settings.php:30
@@ -234,7 +229,6 @@ msgstr ""
234
 
235
  #: includes/admin/stripe-alipay-settings.php:35
236
  #: includes/admin/stripe-bancontact-settings.php:35
237
- #: includes/admin/stripe-bitcoin-settings.php:35
238
  #: includes/admin/stripe-eps-settings.php:31
239
  #: includes/admin/stripe-giropay-settings.php:35
240
  #: includes/admin/stripe-ideal-settings.php:35
@@ -248,7 +242,6 @@ msgstr ""
248
 
249
  #: includes/admin/stripe-alipay-settings.php:37
250
  #: includes/admin/stripe-bancontact-settings.php:37
251
- #: includes/admin/stripe-bitcoin-settings.php:37
252
  #: includes/admin/stripe-eps-settings.php:33
253
  #: includes/admin/stripe-giropay-settings.php:37
254
  #: includes/admin/stripe-ideal-settings.php:37
@@ -266,7 +259,6 @@ msgstr ""
266
 
267
  #: includes/admin/stripe-alipay-settings.php:42
268
  #: includes/admin/stripe-bancontact-settings.php:42
269
- #: includes/admin/stripe-bitcoin-settings.php:42
270
  #: includes/admin/stripe-giropay-settings.php:42
271
  #: includes/admin/stripe-ideal-settings.php:42
272
  #: includes/admin/stripe-multibanco-settings.php:38
@@ -299,28 +291,6 @@ msgstr ""
299
  msgid "You will be redirected to Bancontact."
300
  msgstr ""
301
 
302
- #: includes/admin/stripe-bitcoin-settings.php:9
303
- msgid "Relevant Payer Geography: Global"
304
- msgstr ""
305
-
306
- #: includes/admin/stripe-bitcoin-settings.php:13
307
- msgid ""
308
- "<a href=\"https://stripe.com/payments/payment-methods-guide#bitcoin\" "
309
- "target=\"_blank\">Payment Method Guide</a>"
310
- msgstr ""
311
-
312
- #: includes/admin/stripe-bitcoin-settings.php:22
313
- msgid "Enable Stripe Bitcoin"
314
- msgstr ""
315
-
316
- #: includes/admin/stripe-bitcoin-settings.php:31
317
- msgid "Bitcoin"
318
- msgstr ""
319
-
320
- #: includes/admin/stripe-bitcoin-settings.php:38
321
- msgid "Bitcoin payment information will be provided when you place the order."
322
- msgstr ""
323
-
324
  #: includes/admin/stripe-eps-settings.php:9
325
  msgid "Relevant Payer Geography: Austria"
326
  msgstr ""
@@ -542,7 +512,7 @@ msgid ""
542
  msgstr ""
543
 
544
  #: includes/admin/stripe-settings.php:102
545
- msgid "Stripe Checkout"
546
  msgstr ""
547
 
548
  #: includes/admin/stripe-settings.php:103
@@ -552,145 +522,132 @@ msgstr ""
552
  #: includes/admin/stripe-settings.php:105
553
  msgid ""
554
  "If enabled, this option shows a \"pay\" button and modal credit card form "
555
- "on the checkout, instead of credit card fields directly on the page."
 
 
556
  msgstr ""
557
 
558
  #: includes/admin/stripe-settings.php:110
559
- msgid "Bitcoin Currency"
560
- msgstr ""
561
-
562
- #: includes/admin/stripe-settings.php:111
563
- msgid "Enable Bitcoin Currency"
564
- msgstr ""
565
-
566
- #: includes/admin/stripe-settings.php:113
567
- msgid ""
568
- "If enabled, an option to accept bitcoin will show on the checkout modal. "
569
- "Note: Stripe Checkout needs to be enabled and store currency must be set to "
570
- "USD."
571
- msgstr ""
572
-
573
- #: includes/admin/stripe-settings.php:118
574
  msgid "Stripe Checkout Image"
575
  msgstr ""
576
 
577
- #: includes/admin/stripe-settings.php:119
578
  msgid ""
579
  "Optionally enter the URL to a 128x128px image of your brand or product. "
580
  "e.g. "
581
  "<code>https://yoursite.com/wp-content/uploads/2013/09/yourimage.jpg</code>"
582
  msgstr ""
583
 
584
- #: includes/admin/stripe-settings.php:125
585
  msgid "Stripe Checkout Description"
586
  msgstr ""
587
 
588
- #: includes/admin/stripe-settings.php:127
589
  msgid "Shows a description of your store on Stripe Modal Checkout."
590
  msgstr ""
591
 
592
- #: includes/admin/stripe-settings.php:132
593
  msgid "Payment Request Buttons"
594
  msgstr ""
595
 
596
- #: includes/admin/stripe-settings.php:134
597
  #. translators: 1) br tag 2) opening anchor tag 3) closing anchor tag
598
  msgid ""
599
  "Enable Payment Request Buttons. (Apple Pay/Chrome Payment Request API) "
600
  "%1$sBy using Apple Pay, you agree to %2$s and %3$s's terms of service."
601
  msgstr ""
602
 
603
- #: includes/admin/stripe-settings.php:136
604
  msgid ""
605
  "If enabled, users will be able to pay using Apple Pay or Chrome Payment "
606
  "Request if supported by the browser."
607
  msgstr ""
608
 
609
- #: includes/admin/stripe-settings.php:141
610
  msgid "Payment Request Button Type"
611
  msgstr ""
612
 
613
- #: includes/admin/stripe-settings.php:142
614
  msgid "Button Type"
615
  msgstr ""
616
 
617
- #: includes/admin/stripe-settings.php:144
618
  msgid "Select the button type you would like to show."
619
  msgstr ""
620
 
621
- #: includes/admin/stripe-settings.php:148
622
  msgid "Default"
623
  msgstr ""
624
 
625
- #: includes/admin/stripe-settings.php:149
626
  msgid "Buy"
627
  msgstr ""
628
 
629
- #: includes/admin/stripe-settings.php:150
630
  msgid "Donate"
631
  msgstr ""
632
 
633
- #: includes/admin/stripe-settings.php:154
634
  msgid "Payment Request Button Theme"
635
  msgstr ""
636
 
637
- #: includes/admin/stripe-settings.php:155
638
  msgid "Button Theme"
639
  msgstr ""
640
 
641
- #: includes/admin/stripe-settings.php:157
642
  msgid "Select the button theme you would like to show."
643
  msgstr ""
644
 
645
- #: includes/admin/stripe-settings.php:161
646
  msgid "Dark"
647
  msgstr ""
648
 
649
- #: includes/admin/stripe-settings.php:162
650
  msgid "Light"
651
  msgstr ""
652
 
653
- #: includes/admin/stripe-settings.php:163
654
  msgid "Light-Outline"
655
  msgstr ""
656
 
657
- #: includes/admin/stripe-settings.php:167
658
  msgid "Payment Request Button Height"
659
  msgstr ""
660
 
661
- #: includes/admin/stripe-settings.php:168
662
  msgid "Button Height"
663
  msgstr ""
664
 
665
- #: includes/admin/stripe-settings.php:170
666
  msgid ""
667
  "Enter the height you would like the button to be in pixels. Width will "
668
  "always be 100%."
669
  msgstr ""
670
 
671
- #: includes/admin/stripe-settings.php:175
672
  msgid "Saved Cards"
673
  msgstr ""
674
 
675
- #: includes/admin/stripe-settings.php:176
676
  msgid "Enable Payment via Saved Cards"
677
  msgstr ""
678
 
679
- #: includes/admin/stripe-settings.php:178
680
  msgid ""
681
  "If enabled, users will be able to pay with a saved card during checkout. "
682
  "Card details are saved on Stripe servers, not on your store."
683
  msgstr ""
684
 
685
- #: includes/admin/stripe-settings.php:183
686
  msgid "Logging"
687
  msgstr ""
688
 
689
- #: includes/admin/stripe-settings.php:184
690
  msgid "Log debug messages"
691
  msgstr ""
692
 
693
- #: includes/admin/stripe-settings.php:186
694
  msgid "Save debug messages to the WooCommerce System Status log."
695
  msgstr ""
696
 
@@ -716,11 +673,11 @@ msgstr ""
716
  msgid "You will be redirected to SOFORT."
717
  msgstr ""
718
 
719
- #: includes/class-wc-gateway-stripe.php:123
720
  msgid "Stripe"
721
  msgstr ""
722
 
723
- #: includes/class-wc-gateway-stripe.php:125
724
  #. translators: 1) link to Stripe register page 2) link to Stripe api keys page
725
  msgid ""
726
  "Stripe works by adding payment fields on the checkout and then sending the "
@@ -729,26 +686,26 @@ msgid ""
729
  "your Stripe account keys</a>."
730
  msgstr ""
731
 
732
- #: includes/class-wc-gateway-stripe.php:170
733
  msgid "Continue to payment"
734
  msgstr ""
735
 
736
- #: includes/class-wc-gateway-stripe.php:232
737
  #. translators: 1) Opening anchor tag 2) closing anchor tag
738
  msgid ""
739
  "If your billing address has been changed for saved payment methods, be sure "
740
  "to remove any %1$ssaved payment methods%2$s on file and re-add them."
741
  msgstr ""
742
 
743
- #: includes/class-wc-gateway-stripe.php:294
744
  msgid "Add Card"
745
  msgstr ""
746
 
747
- #: includes/class-wc-gateway-stripe.php:297
748
  msgid "Change Payment Method"
749
  msgstr ""
750
 
751
- #: includes/class-wc-gateway-stripe.php:325
752
  #. translators: link to Stripe testing page
753
  msgid ""
754
  "TEST MODE ENABLED. In test mode, you can use the card number "
@@ -757,58 +714,58 @@ msgid ""
757
  "card numbers."
758
  msgstr ""
759
 
760
- #: includes/class-wc-gateway-stripe.php:368
761
  msgid "Credit or debit card"
762
  msgstr ""
763
 
764
- #: includes/class-wc-gateway-stripe.php:376
765
  msgid "Card Number"
766
  msgstr ""
767
 
768
- #: includes/class-wc-gateway-stripe.php:387
769
  msgid "Expiry Date"
770
  msgstr ""
771
 
772
- #: includes/class-wc-gateway-stripe.php:395
773
  msgid "Card Code (CVC)"
774
  msgstr ""
775
 
776
- #: includes/class-wc-gateway-stripe.php:466
777
  msgid "Please accept the terms and conditions first"
778
  msgstr ""
779
 
780
- #: includes/class-wc-gateway-stripe.php:467
781
  msgid "Please fill in required checkout fields first"
782
  msgstr ""
783
 
784
- #: includes/class-wc-gateway-stripe.php:485
785
- #: includes/class-wc-gateway-stripe.php:690
786
  #: includes/compat/class-wc-stripe-subs-compat.php:91
787
  msgid ""
788
  "Sorry, we're not accepting prepaid cards at this time. Your credit card has "
789
  "not been charge. Please try with alternative payment method."
790
  msgstr ""
791
 
792
- #: includes/class-wc-gateway-stripe.php:486
793
  msgid "Please enter your IBAN account name."
794
  msgstr ""
795
 
796
- #: includes/class-wc-gateway-stripe.php:487
797
  msgid "Please enter your IBAN account number."
798
  msgstr ""
799
 
800
- #: includes/class-wc-gateway-stripe.php:582
801
  msgid "Place Order"
802
  msgstr ""
803
 
804
- #: includes/class-wc-gateway-stripe.php:771
805
  #: includes/class-wc-stripe-order-handler.php:140
806
  #: includes/class-wc-stripe-webhook-handler.php:186
807
  #: includes/payment-methods/class-wc-gateway-stripe-sepa.php:348
808
  msgid "This card is no longer available and has been removed."
809
  msgstr ""
810
 
811
- #: includes/class-wc-gateway-stripe.php:790
812
  #: includes/class-wc-stripe-order-handler.php:158
813
  #: includes/class-wc-stripe-webhook-handler.php:205
814
  #: includes/compat/class-wc-stripe-sepa-subs-compat.php:222
@@ -819,22 +776,22 @@ msgid ""
819
  "later."
820
  msgstr ""
821
 
822
- #: includes/class-wc-gateway-stripe.php:871
823
  #. translators: error message
824
  msgid "This represents the fee Stripe collects for the transaction."
825
  msgstr ""
826
 
827
- #: includes/class-wc-gateway-stripe.php:872
828
  msgid "Stripe Fee:"
829
  msgstr ""
830
 
831
- #: includes/class-wc-gateway-stripe.php:908
832
  msgid ""
833
  "This represents the net total that will be credited to your Stripe bank "
834
  "account. This may be in the currency that is set in your Stripe account."
835
  msgstr ""
836
 
837
- #: includes/class-wc-gateway-stripe.php:909
838
  msgid "Stripe Payout:"
839
  msgstr ""
840
 
@@ -867,7 +824,7 @@ msgid ""
867
  "the issue. (Logging must be enabled to see recorded logs)"
868
  msgstr ""
869
 
870
- #: includes/class-wc-stripe-customer.php:173
871
  msgid "Unable to add payment source."
872
  msgstr ""
873
 
@@ -950,7 +907,7 @@ msgstr ""
950
  msgid "Unable to capture charge! %s"
951
  msgstr ""
952
 
953
- #: includes/class-wc-stripe-payment-tokens.php:173
954
  msgid "SEPA IBAN"
955
  msgstr ""
956
 
@@ -1060,13 +1017,12 @@ msgid "Via %1$s card ending in %2$s"
1060
  msgstr ""
1061
 
1062
  #: includes/payment-methods/class-wc-gateway-stripe-alipay.php:60
1063
- #: woocommerce-gateway-stripe.php:248
1064
  msgid "Stripe Alipay"
1065
  msgstr ""
1066
 
1067
  #: includes/payment-methods/class-wc-gateway-stripe-alipay.php:62
1068
  #: includes/payment-methods/class-wc-gateway-stripe-bancontact.php:62
1069
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:69
1070
  #: includes/payment-methods/class-wc-gateway-stripe-eps.php:62
1071
  #: includes/payment-methods/class-wc-gateway-stripe-giropay.php:62
1072
  #: includes/payment-methods/class-wc-gateway-stripe-ideal.php:62
@@ -1080,7 +1036,6 @@ msgstr ""
1080
 
1081
  #: includes/payment-methods/class-wc-gateway-stripe-alipay.php:183
1082
  #: includes/payment-methods/class-wc-gateway-stripe-bancontact.php:176
1083
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:187
1084
  #: includes/payment-methods/class-wc-gateway-stripe-eps.php:176
1085
  #: includes/payment-methods/class-wc-gateway-stripe-giropay.php:176
1086
  #: includes/payment-methods/class-wc-gateway-stripe-ideal.php:176
@@ -1091,61 +1046,27 @@ msgid "Add Payment"
1091
  msgstr ""
1092
 
1093
  #: includes/payment-methods/class-wc-gateway-stripe-bancontact.php:60
1094
- #: woocommerce-gateway-stripe.php:242
1095
  msgid "Stripe Bancontact"
1096
  msgstr ""
1097
 
1098
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:67
1099
- #: woocommerce-gateway-stripe.php:250
1100
- msgid "Stripe Bitcoin"
1101
- msgstr ""
1102
-
1103
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:246
1104
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:258
1105
- msgid "Please pay the following:"
1106
- msgstr ""
1107
-
1108
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:248
1109
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:261
1110
- msgid "Bitcoin Amount:"
1111
- msgstr ""
1112
-
1113
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:251
1114
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:265
1115
- msgid "Receiver:"
1116
- msgstr ""
1117
-
1118
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:254
1119
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:269
1120
- msgid "URI:"
1121
- msgstr ""
1122
-
1123
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:273
1124
- #. translators: link
1125
- msgid "<a href=\"%s\">Pay Bitcoin</a>"
1126
- msgstr ""
1127
-
1128
- #: includes/payment-methods/class-wc-gateway-stripe-bitcoin.php:341
1129
- msgid "Awaiting Bitcoin payment"
1130
- msgstr ""
1131
-
1132
  #: includes/payment-methods/class-wc-gateway-stripe-eps.php:60
1133
- #: woocommerce-gateway-stripe.php:245
1134
  msgid "Stripe EPS"
1135
  msgstr ""
1136
 
1137
  #: includes/payment-methods/class-wc-gateway-stripe-giropay.php:60
1138
- #: woocommerce-gateway-stripe.php:244
1139
  msgid "Stripe Giropay"
1140
  msgstr ""
1141
 
1142
  #: includes/payment-methods/class-wc-gateway-stripe-ideal.php:60
1143
- #: woocommerce-gateway-stripe.php:246
1144
  msgid "Stripe iDeal"
1145
  msgstr ""
1146
 
1147
  #: includes/payment-methods/class-wc-gateway-stripe-multibanco.php:60
1148
- #: woocommerce-gateway-stripe.php:251
1149
  msgid "Stripe Multibanco"
1150
  msgstr ""
1151
 
@@ -1174,12 +1095,12 @@ msgid "Awaiting Multibanco payment"
1174
  msgstr ""
1175
 
1176
  #: includes/payment-methods/class-wc-gateway-stripe-p24.php:60
1177
- #: woocommerce-gateway-stripe.php:247
1178
  msgid "Stripe P24"
1179
  msgstr ""
1180
 
1181
  #: includes/payment-methods/class-wc-gateway-stripe-sepa.php:75
1182
- #: woocommerce-gateway-stripe.php:249
1183
  msgid "Stripe SEPA Direct Debit"
1184
  msgstr ""
1185
 
@@ -1210,7 +1131,7 @@ msgid ""
1210
  msgstr ""
1211
 
1212
  #: includes/payment-methods/class-wc-gateway-stripe-sofort.php:60
1213
- #: woocommerce-gateway-stripe.php:243
1214
  msgid "Stripe SOFORT"
1215
  msgstr ""
1216
 
@@ -1257,21 +1178,21 @@ msgstr ""
1257
  msgid "Discount"
1258
  msgstr ""
1259
 
1260
- #: woocommerce-gateway-stripe.php:143
1261
  msgid ""
1262
  "Stripe requires WooCommerce to be installed and active. You can download %s "
1263
  "here."
1264
  msgstr ""
1265
 
1266
- #: woocommerce-gateway-stripe.php:187
1267
  msgid "Settings"
1268
  msgstr ""
1269
 
1270
- #: woocommerce-gateway-stripe.php:188
1271
  msgid "Docs"
1272
  msgstr ""
1273
 
1274
- #: woocommerce-gateway-stripe.php:189
1275
  msgid "Support"
1276
  msgstr ""
1277
 
5
  "Project-Id-Version: WooCommerce Stripe Gateway 4.1.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://github.com/woocommerce/woocommerce-gateway-stripe/issues\n"
8
+ "POT-Creation-Date: 2018-04-23 05:51:44+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
28
  msgid "Save payment information to my account for future purchases."
29
  msgstr ""
30
 
31
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:252
32
  #: includes/compat/class-wc-stripe-sepa-subs-compat.php:175
33
  #: includes/compat/class-wc-stripe-subs-compat.php:190
34
  #. translators: 1) dollar amount
36
  msgid "Sorry, the minimum allowed order total is %1$s to use this payment method."
37
  msgstr ""
38
 
39
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:348
40
  #. translators: 1) blog name 2) order number
41
  msgid "%1$s - Order %2$s"
42
  msgstr ""
43
 
44
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:375
45
  msgid "customer_name"
46
  msgstr ""
47
 
48
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:376
49
  msgid "customer_email"
50
  msgstr ""
51
 
52
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:450
53
  #. translators: transaction id
54
  msgid "Stripe charge awaiting payment: %s."
55
  msgstr ""
56
 
57
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:457
58
  #: includes/class-wc-stripe-order-handler.php:249
59
  #: includes/class-wc-stripe-webhook-handler.php:312
60
  #: includes/class-wc-stripe-webhook-handler.php:359
62
  msgid "Stripe charge complete (Charge ID: %s)"
63
  msgstr ""
64
 
65
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:462
66
+ #: includes/class-wc-gateway-stripe.php:687
67
  #: includes/compat/class-wc-stripe-sepa-subs-compat.php:134
68
  #: includes/compat/class-wc-stripe-subs-compat.php:96
 
69
  msgid "Payment processing failed. Please retry."
70
  msgstr ""
71
 
72
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:474
73
  #. translators: transaction id
74
  msgid ""
75
  "Stripe charge authorized (Charge ID: %s). Process order to take payment, or "
76
  "cancel to remove the pre-authorization."
77
  msgstr ""
78
 
79
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:700
80
  msgid "Invalid payment method. Please input a new card number."
81
  msgstr ""
82
 
83
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:948
84
  #. translators: 1) dollar amount 2) transaction id 3) refund message
85
  msgid "Refunded %1$s - Refund ID: %2$s - Reason: %3$s"
86
  msgstr ""
87
 
88
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:948
89
  msgid "Pre-Authorization Released"
90
  msgstr ""
91
 
92
+ #: includes/abstracts/abstract-wc-stripe-payment-gateway.php:966
93
  msgid "There was a problem adding the card."
94
  msgstr ""
95
 
96
+ #: includes/admin/class-wc-stripe-admin-notices.php:118
97
  #. translators: 1) int version 2) int version
98
  msgid ""
99
  "WooCommerce Stripe - The minimum PHP version required for this plugin is "
100
  "%1$s. You are running %2$s."
101
  msgstr ""
102
 
103
+ #: includes/admin/class-wc-stripe-admin-notices.php:129
104
  #. translators: 1) int version 2) int version
105
  msgid ""
106
  "WooCommerce Stripe - The minimum WooCommerce version required for this "
107
  "plugin is %1$s. You are running %2$s."
108
  msgstr ""
109
 
110
+ #: includes/admin/class-wc-stripe-admin-notices.php:139
111
  msgid "WooCommerce Stripe - cURL is not installed."
112
  msgstr ""
113
 
114
+ #: includes/admin/class-wc-stripe-admin-notices.php:149
115
  #. translators: 1) link
116
  msgid ""
117
  "Stripe is almost ready. To get started, <a href=\"%s\">set your Stripe "
118
  "account keys</a>."
119
  msgstr ""
120
 
121
+ #: includes/admin/class-wc-stripe-admin-notices.php:161
122
  #. translators: 1) link
123
  msgid ""
124
  "Stripe is in test mode however your test keys may not be valid. Test keys "
126
  "<a href=\"%s\">set your Stripe account keys</a>."
127
  msgstr ""
128
 
129
+ #: includes/admin/class-wc-stripe-admin-notices.php:171
130
  #. translators: 1) link
131
  msgid ""
132
  "Stripe is in live mode however your test keys may not be valid. Live keys "
134
  "<a href=\"%s\">set your Stripe account keys</a>."
135
  msgstr ""
136
 
137
+ #: includes/admin/class-wc-stripe-admin-notices.php:180
138
  #. translators: 1) link 2) link
139
  msgid ""
140
  "Stripe is enabled, but the <a href=\"%1$s\">force SSL option</a> is "
143
  "certificate</a> - Stripe will only work in test mode."
144
  msgstr ""
145
 
146
+ #: includes/admin/class-wc-stripe-admin-notices.php:203
147
  msgid "%s is enabled - it requires store currency to be set to %s"
148
  msgstr ""
149
 
150
+ #: includes/admin/class-wc-stripe-admin-notices.php:217
151
  msgid "Action failed. Please refresh the page and retry."
152
  msgstr ""
153
 
154
+ #: includes/admin/class-wc-stripe-admin-notices.php:221
155
  msgid "Cheatin&#8217; huh?"
156
  msgstr ""
157
 
167
 
168
  #: includes/admin/stripe-alipay-settings.php:17
169
  #: includes/admin/stripe-bancontact-settings.php:17
 
170
  #: includes/admin/stripe-eps-settings.php:13
171
  #: includes/admin/stripe-giropay-settings.php:17
172
  #: includes/admin/stripe-ideal-settings.php:17
182
 
183
  #: includes/admin/stripe-alipay-settings.php:21
184
  #: includes/admin/stripe-bancontact-settings.php:21
 
185
  #: includes/admin/stripe-eps-settings.php:17
186
  #: includes/admin/stripe-giropay-settings.php:21
187
  #: includes/admin/stripe-ideal-settings.php:21
199
 
200
  #: includes/admin/stripe-alipay-settings.php:28
201
  #: includes/admin/stripe-bancontact-settings.php:28
 
202
  #: includes/admin/stripe-eps-settings.php:24
203
  #: includes/admin/stripe-giropay-settings.php:28
204
  #: includes/admin/stripe-ideal-settings.php:28
212
 
213
  #: includes/admin/stripe-alipay-settings.php:30
214
  #: includes/admin/stripe-bancontact-settings.php:30
 
215
  #: includes/admin/stripe-eps-settings.php:26
216
  #: includes/admin/stripe-giropay-settings.php:30
217
  #: includes/admin/stripe-ideal-settings.php:30
229
 
230
  #: includes/admin/stripe-alipay-settings.php:35
231
  #: includes/admin/stripe-bancontact-settings.php:35
 
232
  #: includes/admin/stripe-eps-settings.php:31
233
  #: includes/admin/stripe-giropay-settings.php:35
234
  #: includes/admin/stripe-ideal-settings.php:35
242
 
243
  #: includes/admin/stripe-alipay-settings.php:37
244
  #: includes/admin/stripe-bancontact-settings.php:37
 
245
  #: includes/admin/stripe-eps-settings.php:33
246
  #: includes/admin/stripe-giropay-settings.php:37
247
  #: includes/admin/stripe-ideal-settings.php:37
259
 
260
  #: includes/admin/stripe-alipay-settings.php:42
261
  #: includes/admin/stripe-bancontact-settings.php:42
 
262
  #: includes/admin/stripe-giropay-settings.php:42
263
  #: includes/admin/stripe-ideal-settings.php:42
264
  #: includes/admin/stripe-multibanco-settings.php:38
291
  msgid "You will be redirected to Bancontact."
292
  msgstr ""
293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  #: includes/admin/stripe-eps-settings.php:9
295
  msgid "Relevant Payer Geography: Austria"
296
  msgstr ""
512
  msgstr ""
513
 
514
  #: includes/admin/stripe-settings.php:102
515
+ msgid "Stripe Modal Checkout"
516
  msgstr ""
517
 
518
  #: includes/admin/stripe-settings.php:103
522
  #: includes/admin/stripe-settings.php:105
523
  msgid ""
524
  "If enabled, this option shows a \"pay\" button and modal credit card form "
525
+ "on the checkout, instead of credit card fields directly on the page. We "
526
+ "recommend you leave this disabled and use the embedded form as that is the "
527
+ "preferred method."
528
  msgstr ""
529
 
530
  #: includes/admin/stripe-settings.php:110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
531
  msgid "Stripe Checkout Image"
532
  msgstr ""
533
 
534
+ #: includes/admin/stripe-settings.php:111
535
  msgid ""
536
  "Optionally enter the URL to a 128x128px image of your brand or product. "
537
  "e.g. "
538
  "<code>https://yoursite.com/wp-content/uploads/2013/09/yourimage.jpg</code>"
539
  msgstr ""
540
 
541
+ #: includes/admin/stripe-settings.php:117
542
  msgid "Stripe Checkout Description"
543
  msgstr ""
544
 
545
+ #: includes/admin/stripe-settings.php:119
546
  msgid "Shows a description of your store on Stripe Modal Checkout."
547
  msgstr ""
548
 
549
+ #: includes/admin/stripe-settings.php:124
550
  msgid "Payment Request Buttons"
551
  msgstr ""
552
 
553
+ #: includes/admin/stripe-settings.php:126
554
  #. translators: 1) br tag 2) opening anchor tag 3) closing anchor tag
555
  msgid ""
556
  "Enable Payment Request Buttons. (Apple Pay/Chrome Payment Request API) "
557
  "%1$sBy using Apple Pay, you agree to %2$s and %3$s's terms of service."
558
  msgstr ""
559
 
560
+ #: includes/admin/stripe-settings.php:128
561
  msgid ""
562
  "If enabled, users will be able to pay using Apple Pay or Chrome Payment "
563
  "Request if supported by the browser."
564
  msgstr ""
565
 
566
+ #: includes/admin/stripe-settings.php:133
567
  msgid "Payment Request Button Type"
568
  msgstr ""
569
 
570
+ #: includes/admin/stripe-settings.php:134
571
  msgid "Button Type"
572
  msgstr ""
573
 
574
+ #: includes/admin/stripe-settings.php:136
575
  msgid "Select the button type you would like to show."
576
  msgstr ""
577
 
578
+ #: includes/admin/stripe-settings.php:140
579
  msgid "Default"
580
  msgstr ""
581
 
582
+ #: includes/admin/stripe-settings.php:141
583
  msgid "Buy"
584
  msgstr ""
585
 
586
+ #: includes/admin/stripe-settings.php:142
587
  msgid "Donate"
588
  msgstr ""
589
 
590
+ #: includes/admin/stripe-settings.php:146
591
  msgid "Payment Request Button Theme"
592
  msgstr ""
593
 
594
+ #: includes/admin/stripe-settings.php:147
595
  msgid "Button Theme"
596
  msgstr ""
597
 
598
+ #: includes/admin/stripe-settings.php:149
599
  msgid "Select the button theme you would like to show."
600
  msgstr ""
601
 
602
+ #: includes/admin/stripe-settings.php:153
603
  msgid "Dark"
604
  msgstr ""
605
 
606
+ #: includes/admin/stripe-settings.php:154
607
  msgid "Light"
608
  msgstr ""
609
 
610
+ #: includes/admin/stripe-settings.php:155
611
  msgid "Light-Outline"
612
  msgstr ""
613
 
614
+ #: includes/admin/stripe-settings.php:159
615
  msgid "Payment Request Button Height"
616
  msgstr ""
617
 
618
+ #: includes/admin/stripe-settings.php:160
619
  msgid "Button Height"
620
  msgstr ""
621
 
622
+ #: includes/admin/stripe-settings.php:162
623
  msgid ""
624
  "Enter the height you would like the button to be in pixels. Width will "
625
  "always be 100%."
626
  msgstr ""
627
 
628
+ #: includes/admin/stripe-settings.php:167
629
  msgid "Saved Cards"
630
  msgstr ""
631
 
632
+ #: includes/admin/stripe-settings.php:168
633
  msgid "Enable Payment via Saved Cards"
634
  msgstr ""
635
 
636
+ #: includes/admin/stripe-settings.php:170
637
  msgid ""
638
  "If enabled, users will be able to pay with a saved card during checkout. "
639
  "Card details are saved on Stripe servers, not on your store."
640
  msgstr ""
641
 
642
+ #: includes/admin/stripe-settings.php:175
643
  msgid "Logging"
644
  msgstr ""
645
 
646
+ #: includes/admin/stripe-settings.php:176
647
  msgid "Log debug messages"
648
  msgstr ""
649
 
650
+ #: includes/admin/stripe-settings.php:178
651
  msgid "Save debug messages to the WooCommerce System Status log."
652
  msgstr ""
653
 
673
  msgid "You will be redirected to SOFORT."
674
  msgstr ""
675
 
676
+ #: includes/class-wc-gateway-stripe.php:116
677
  msgid "Stripe"
678
  msgstr ""
679
 
680
+ #: includes/class-wc-gateway-stripe.php:118
681
  #. translators: 1) link to Stripe register page 2) link to Stripe api keys page
682
  msgid ""
683
  "Stripe works by adding payment fields on the checkout and then sending the "
686
  "your Stripe account keys</a>."
687
  msgstr ""
688
 
689
+ #: includes/class-wc-gateway-stripe.php:162
690
  msgid "Continue to payment"
691
  msgstr ""
692
 
693
+ #: includes/class-wc-gateway-stripe.php:224
694
  #. translators: 1) Opening anchor tag 2) closing anchor tag
695
  msgid ""
696
  "If your billing address has been changed for saved payment methods, be sure "
697
  "to remove any %1$ssaved payment methods%2$s on file and re-add them."
698
  msgstr ""
699
 
700
+ #: includes/class-wc-gateway-stripe.php:284
701
  msgid "Add Card"
702
  msgstr ""
703
 
704
+ #: includes/class-wc-gateway-stripe.php:290
705
  msgid "Change Payment Method"
706
  msgstr ""
707
 
708
+ #: includes/class-wc-gateway-stripe.php:318
709
  #. translators: link to Stripe testing page
710
  msgid ""
711
  "TEST MODE ENABLED. In test mode, you can use the card number "
714
  "card numbers."
715
  msgstr ""
716
 
717
+ #: includes/class-wc-gateway-stripe.php:361
718
  msgid "Credit or debit card"
719
  msgstr ""
720
 
721
+ #: includes/class-wc-gateway-stripe.php:369
722
  msgid "Card Number"
723
  msgstr ""
724
 
725
+ #: includes/class-wc-gateway-stripe.php:380
726
  msgid "Expiry Date"
727
  msgstr ""
728
 
729
+ #: includes/class-wc-gateway-stripe.php:388
730
  msgid "Card Code (CVC)"
731
  msgstr ""
732
 
733
+ #: includes/class-wc-gateway-stripe.php:459
734
  msgid "Please accept the terms and conditions first"
735
  msgstr ""
736
 
737
+ #: includes/class-wc-gateway-stripe.php:460
738
  msgid "Please fill in required checkout fields first"
739
  msgstr ""
740
 
741
+ #: includes/class-wc-gateway-stripe.php:478
742
+ #: includes/class-wc-gateway-stripe.php:682
743
  #: includes/compat/class-wc-stripe-subs-compat.php:91
744
  msgid ""
745
  "Sorry, we're not accepting prepaid cards at this time. Your credit card has "
746
  "not been charge. Please try with alternative payment method."
747
  msgstr ""
748
 
749
+ #: includes/class-wc-gateway-stripe.php:479
750
  msgid "Please enter your IBAN account name."
751
  msgstr ""
752
 
753
+ #: includes/class-wc-gateway-stripe.php:480
754
  msgid "Please enter your IBAN account number."
755
  msgstr ""
756
 
757
+ #: includes/class-wc-gateway-stripe.php:574
758
  msgid "Place Order"
759
  msgstr ""
760
 
761
+ #: includes/class-wc-gateway-stripe.php:763
762
  #: includes/class-wc-stripe-order-handler.php:140
763
  #: includes/class-wc-stripe-webhook-handler.php:186
764
  #: includes/payment-methods/class-wc-gateway-stripe-sepa.php:348
765
  msgid "This card is no longer available and has been removed."
766
  msgstr ""
767
 
768
+ #: includes/class-wc-gateway-stripe.php:782
769
  #: includes/class-wc-stripe-order-handler.php:158
770
  #: includes/class-wc-stripe-webhook-handler.php:205
771
  #: includes/compat/class-wc-stripe-sepa-subs-compat.php:222
776
  "later."
777
  msgstr ""
778
 
779
+ #: includes/class-wc-gateway-stripe.php:863
780
  #. translators: error message
781
  msgid "This represents the fee Stripe collects for the transaction."
782
  msgstr ""
783
 
784
+ #: includes/class-wc-gateway-stripe.php:864
785
  msgid "Stripe Fee:"
786
  msgstr ""
787
 
788
+ #: includes/class-wc-gateway-stripe.php:900
789
  msgid ""
790
  "This represents the net total that will be credited to your Stripe bank "
791
  "account. This may be in the currency that is set in your Stripe account."
792
  msgstr ""
793
 
794
+ #: includes/class-wc-gateway-stripe.php:901
795
  msgid "Stripe Payout:"
796
  msgstr ""
797
 
824
  "the issue. (Logging must be enabled to see recorded logs)"
825
  msgstr ""
826
 
827
+ #: includes/class-wc-stripe-customer.php:188
828
  msgid "Unable to add payment source."
829
  msgstr ""
830
 
907
  msgid "Unable to capture charge! %s"
908
  msgstr ""
909
 
910
+ #: includes/class-wc-stripe-payment-tokens.php:175
911
  msgid "SEPA IBAN"
912
  msgstr ""
913
 
1017
  msgstr ""
1018
 
1019
  #: includes/payment-methods/class-wc-gateway-stripe-alipay.php:60
1020
+ #: woocommerce-gateway-stripe.php:247
1021
  msgid "Stripe Alipay"
1022
  msgstr ""
1023
 
1024
  #: includes/payment-methods/class-wc-gateway-stripe-alipay.php:62
1025
  #: includes/payment-methods/class-wc-gateway-stripe-bancontact.php:62
 
1026
  #: includes/payment-methods/class-wc-gateway-stripe-eps.php:62
1027
  #: includes/payment-methods/class-wc-gateway-stripe-giropay.php:62
1028
  #: includes/payment-methods/