Version Description
- 2018-05-31 =
- Fix - Radio buttons on checkout on some themes are not aligned properly.
- Fix - False negative on SSL warning notice in admin.
See changelog for all versions.
=
Download this release
Release Info
| Developer | royho |
| Plugin | |
| Version | 4.1.6 |
| Comparing to | |
| See all releases | |
Code changes from version 4.1.5 to 4.1.6
- assets/css/stripe-storefront-styles.css +29 -0
- assets/css/stripe-styles.css +43 -45
- assets/css/stripe-twentyseventeen-styles.css +31 -0
- changelog.txt +4 -0
- includes/admin/class-wc-stripe-admin-notices.php +2 -2
- includes/class-wc-gateway-stripe.php +13 -0
- languages/woocommerce-gateway-stripe.pot +17 -17
- readme.txt +4 -10
- woocommerce-gateway-stripe.php +2 -2
assets/css/stripe-storefront-styles.css
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.woocommerce-checkout #payment .payment_method_stripe label[for=payment_method_stripe] { display: block; padding-left: 1.41575em; }
|
| 2 |
+
#add_payment_method #payment .payment_method_stripe label[for=payment_method_stripe] { display: block; padding-left: 1.41575em; }
|
| 3 |
+
|
| 4 |
+
.woocommerce-checkout #payment .payment_method_stripe_bancontact label[for=payment_method_stripe_bancontact] { display: block; padding-left: 1.41575em; }
|
| 5 |
+
#add_payment_method #payment .payment_method_stripe_bancontact label[for=payment_method_stripe_bancontact] { display: block; padding-left: 1.41575em; }
|
| 6 |
+
|
| 7 |
+
.woocommerce-checkout #payment .payment_method_stripe_alipay label[for=payment_method_stripe_alipay] { display: block; padding-left: 1.41575em; }
|
| 8 |
+
#add_payment_method #payment .payment_method_stripe_alipay label[for=payment_method_stripe_alipay] { display: block; padding-left: 1.41575em; }
|
| 9 |
+
|
| 10 |
+
.woocommerce-checkout #payment .payment_method_stripe_eps label[for=payment_method_stripe_eps] { display: block; padding-left: 1.41575em; }
|
| 11 |
+
#add_payment_method #payment .payment_method_stripe_eps label[for=payment_method_stripe_eps] { display: block; padding-left: 1.41575em; }
|
| 12 |
+
|
| 13 |
+
.woocommerce-checkout #payment .payment_method_stripe_giropay label[for=payment_method_stripe_giropay] { display: block; padding-left: 1.41575em; }
|
| 14 |
+
#add_payment_method #payment .payment_method_stripe_giropay label[for=payment_method_stripe_giropay] { display: block; padding-left: 1.41575em; }
|
| 15 |
+
|
| 16 |
+
.woocommerce-checkout #payment .payment_method_stripe_ideal label[for=payment_method_stripe_ideal] { display: block; padding-left: 1.41575em; }
|
| 17 |
+
#add_payment_method #payment .payment_method_stripe_ideal label[for=payment_method_stripe_ideal] { display: block; padding-left: 1.41575em; }
|
| 18 |
+
|
| 19 |
+
.woocommerce-checkout #payment .payment_method_stripe_multibanco label[for=payment_method_stripe_multibanco] { display: block; padding-left: 1.41575em; }
|
| 20 |
+
#add_payment_method #payment .payment_method_stripe_multibanco label[for=payment_method_stripe_multibanco] { display: block; padding-left: 1.41575em; }
|
| 21 |
+
|
| 22 |
+
.woocommerce-checkout #payment .payment_method_stripe_p24 label[for=payment_method_stripe_p24] { display: block; padding-left: 1.41575em; }
|
| 23 |
+
#add_payment_method #payment .payment_method_stripe_p24 label[for=payment_method_stripe_p24] { display: block; padding-left: 1.41575em; }
|
| 24 |
+
|
| 25 |
+
.woocommerce-checkout #payment .payment_method_stripe_sepa label[for=payment_method_stripe_sepa] { display: block; padding-left: 1.41575em; }
|
| 26 |
+
#add_payment_method #payment .payment_method_stripe_sepa label[for=payment_method_stripe_sepa] { display: block; padding-left: 1.41575em; }
|
| 27 |
+
|
| 28 |
+
.woocommerce-checkout #payment .payment_method_stripe_sofort label[for=payment_method_stripe_sofort] { display: block; padding-left: 1.41575em; }
|
| 29 |
+
#add_payment_method #payment .payment_method_stripe_sofort label[for=payment_method_stripe_sofort] { display: block; padding-left: 1.41575em; }
|
assets/css/stripe-styles.css
CHANGED
|
@@ -1,13 +1,15 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
| 2 |
#add_payment_method li { clear: right; }
|
| 3 |
#add_payment_method #wc-stripe_sepa-form { padding: 10px; }
|
| 4 |
-
form#order_review #payment_method_stripe { margin: 0; }
|
| 5 |
form#order_review #payment_method_stripe_sepa { margin: 25px 0 25px 25px; }
|
| 6 |
form#order_review .payment_methods label { margin-left: 10px; }
|
| 7 |
form#order_review li { clear: right; }
|
| 8 |
form#order_review #wc-stripe_sepa-form { padding: 10px; }
|
| 9 |
-
.
|
| 10 |
-
|
| 11 |
.woocommerce-checkout #payment .payment_method_stripe,
|
| 12 |
#add_payment_method #payment .payment_method_stripe { position: relative; }
|
| 13 |
|
|
@@ -39,64 +41,64 @@ form#order_review #wc-stripe_sepa-form { padding: 10px; }
|
|
| 39 |
#add_payment_method #payment .payment_method_stripe_sofort { position: relative; }
|
| 40 |
|
| 41 |
.woocommerce-checkout #payment input#payment_method_stripe,
|
| 42 |
-
#add_payment_method #payment input#payment_method_stripe { position: absolute; }
|
| 43 |
|
| 44 |
.woocommerce-checkout #payment input#payment_method_stripe_bancontact,
|
| 45 |
-
#add_payment_method #payment input#payment_method_stripe_bancontact { position: absolute; }
|
| 46 |
|
| 47 |
.woocommerce-checkout #payment input#payment_method_stripe_alipay,
|
| 48 |
-
#add_payment_method #payment input#payment_method_stripe_alipay { position: absolute; }
|
| 49 |
|
| 50 |
.woocommerce-checkout #payment input#payment_method_stripe_eps,
|
| 51 |
-
#add_payment_method #payment input#payment_method_stripe_eps { position: absolute; }
|
| 52 |
|
| 53 |
.woocommerce-checkout #payment input#payment_method_stripe_giropay,
|
| 54 |
-
#add_payment_method #payment input#payment_method_stripe_giropay { position: absolute; }
|
| 55 |
|
| 56 |
.woocommerce-checkout #payment input#payment_method_stripe_ideal,
|
| 57 |
-
#add_payment_method #payment input#payment_method_stripe_ideal { position: absolute; }
|
| 58 |
|
| 59 |
.woocommerce-checkout #payment input#payment_method_stripe_multibanco,
|
| 60 |
-
#add_payment_method #payment input#payment_method_stripe_multibanco { position: absolute; }
|
| 61 |
|
| 62 |
.woocommerce-checkout #payment input#payment_method_stripe_p24,
|
| 63 |
-
#add_payment_method #payment input#payment_method_stripe_p24 { position: absolute; }
|
| 64 |
|
| 65 |
.woocommerce-checkout #payment input#payment_method_stripe_sepa,
|
| 66 |
-
#add_payment_method #payment input#payment_method_stripe_sepa { position: absolute; }
|
| 67 |
|
| 68 |
.woocommerce-checkout #payment input#payment_method_stripe_sofort,
|
| 69 |
-
#add_payment_method #payment input#payment_method_stripe_sofort { position: absolute; }
|
| 70 |
|
| 71 |
-
.woocommerce-checkout #payment .payment_method_stripe label[for=payment_method_stripe]
|
| 72 |
-
#add_payment_method #payment .payment_method_stripe label[for=payment_method_stripe] { display: block; }
|
| 73 |
|
| 74 |
-
.woocommerce-checkout #payment .payment_method_stripe_bancontact label[for=payment_method_stripe_bancontact]
|
| 75 |
-
#add_payment_method #payment .payment_method_stripe_bancontact label[for=payment_method_stripe_bancontact] { display: block; }
|
| 76 |
|
| 77 |
-
.woocommerce-checkout #payment .payment_method_stripe_alipay label[for=payment_method_stripe_alipay]
|
| 78 |
-
#add_payment_method #payment .payment_method_stripe_alipay label[for=payment_method_stripe_alipay] { display: block; }
|
| 79 |
|
| 80 |
-
.woocommerce-checkout #payment .payment_method_stripe_eps label[for=payment_method_stripe_eps]
|
| 81 |
-
#add_payment_method #payment .payment_method_stripe_eps label[for=payment_method_stripe_eps] { display: block; }
|
| 82 |
|
| 83 |
-
.woocommerce-checkout #payment .payment_method_stripe_giropay label[for=payment_method_stripe_giropay]
|
| 84 |
-
#add_payment_method #payment .payment_method_stripe_giropay label[for=payment_method_stripe_giropay] { display: block; }
|
| 85 |
|
| 86 |
-
.woocommerce-checkout #payment .payment_method_stripe_ideal label[for=payment_method_stripe_ideal]
|
| 87 |
-
#add_payment_method #payment .payment_method_stripe_ideal label[for=payment_method_stripe_ideal] { display: block; }
|
| 88 |
|
| 89 |
-
.woocommerce-checkout #payment .payment_method_stripe_multibanco label[for=payment_method_stripe_multibanco]
|
| 90 |
-
#add_payment_method #payment .payment_method_stripe_multibanco label[for=payment_method_stripe_multibanco] { display: block; }
|
| 91 |
|
| 92 |
-
.woocommerce-checkout #payment .payment_method_stripe_p24 label[for=payment_method_stripe_p24]
|
| 93 |
-
#add_payment_method #payment .payment_method_stripe_p24 label[for=payment_method_stripe_p24] { display: block; }
|
| 94 |
|
| 95 |
-
.woocommerce-checkout #payment .payment_method_stripe_sepa label[for=payment_method_stripe_sepa]
|
| 96 |
-
#add_payment_method #payment .payment_method_stripe_sepa label[for=payment_method_stripe_sepa] { display: block; }
|
| 97 |
|
| 98 |
.woocommerce-checkout #payment .payment_method_stripe_sofort label[for=payment_method_stripe_sofort],
|
| 99 |
-
#add_payment_method #payment .payment_method_stripe_sofort label[for=payment_method_stripe_sofort] { display: block; }
|
| 100 |
|
| 101 |
.woocommerce-checkout #payment ul.payment_methods li img.stripe-icon,
|
| 102 |
#add_payment_method #payment ul.payment_methods li img.stripe-icon { float: right; max-width: 40px; padding-left: 3px; margin: 0; }
|
|
@@ -129,32 +131,28 @@ form#order_review #wc-stripe_sepa-form { padding: 10px; }
|
|
| 129 |
#add_payment_method #payment ul.payment_methods li img.stripe-giropay-icon { max-width: 50px; }
|
| 130 |
|
| 131 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-credit-card-brand,
|
| 132 |
-
#add_payment_method #payment ul.payment_methods li .stripe-credit-card-brand { position: absolute; top:
|
| 133 |
|
| 134 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-visa-brand,
|
| 135 |
-
#add_payment_method #payment ul.payment_methods li .stripe-visa-brand { position: absolute; top:
|
| 136 |
|
| 137 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-amex-brand,
|
| 138 |
-
#add_payment_method #payment ul.payment_methods li .stripe-amex-brand { position: absolute; top:
|
| 139 |
|
| 140 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-diners-brand,
|
| 141 |
-
#add_payment_method #payment ul.payment_methods li .stripe-diners-brand { position: absolute; top:
|
| 142 |
|
| 143 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-discover-brand,
|
| 144 |
-
#add_payment_method #payment ul.payment_methods li .stripe-discover-brand { position: absolute; top:
|
| 145 |
|
| 146 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-jcb-brand,
|
| 147 |
-
#add_payment_method #payment ul.payment_methods li .stripe-jcb-brand { position: absolute; top:
|
| 148 |
|
| 149 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-maestro-brand,
|
| 150 |
-
#add_payment_method #payment ul.payment_methods li .stripe-maestro-brand { position: absolute; top:
|
| 151 |
|
| 152 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-mastercard-brand,
|
| 153 |
-
#add_payment_method #payment ul.payment_methods li .stripe-mastercard-brand { position: absolute; top:
|
| 154 |
|
| 155 |
.woocommerce-checkout #payment ul.payment_methods .stripe-card-group,
|
| 156 |
#add_payment_method #payment ul.payment_methods .stripe-card-group { position: relative; }
|
| 157 |
-
|
| 158 |
-
.woocommerce-SavedPaymentMethods.wc-saved-payment-methods label { display: inline; }
|
| 159 |
-
|
| 160 |
-
.woocommerce-PaymentMethods.payment_methods { list-style-type: none; }
|
| 1 |
+
.wc-stripe-elements-field { border:1px solid #ddd; margin:5px 0; padding:5px; background-color:#fff; outline:0; }
|
| 2 |
+
|
| 3 |
+
#add_payment_method .woocommerce-PaymentMethod label { margin-left: 10px; }
|
| 4 |
#add_payment_method li { clear: right; }
|
| 5 |
#add_payment_method #wc-stripe_sepa-form { padding: 10px; }
|
| 6 |
+
form#order_review #payment_method_stripe { margin: 25px 0 25px 25px; }
|
| 7 |
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 |
+
.wc_payment_method .payment_box label { display: inline; }
|
| 12 |
+
|
| 13 |
.woocommerce-checkout #payment .payment_method_stripe,
|
| 14 |
#add_payment_method #payment .payment_method_stripe { position: relative; }
|
| 15 |
|
| 41 |
#add_payment_method #payment .payment_method_stripe_sofort { position: relative; }
|
| 42 |
|
| 43 |
.woocommerce-checkout #payment input#payment_method_stripe,
|
| 44 |
+
#add_payment_method #payment input#payment_method_stripe { position: absolute; top: 6px; }
|
| 45 |
|
| 46 |
.woocommerce-checkout #payment input#payment_method_stripe_bancontact,
|
| 47 |
+
#add_payment_method #payment input#payment_method_stripe_bancontact { position: absolute; top: 6px; }
|
| 48 |
|
| 49 |
.woocommerce-checkout #payment input#payment_method_stripe_alipay,
|
| 50 |
+
#add_payment_method #payment input#payment_method_stripe_alipay { position: absolute; top: 6px; }
|
| 51 |
|
| 52 |
.woocommerce-checkout #payment input#payment_method_stripe_eps,
|
| 53 |
+
#add_payment_method #payment input#payment_method_stripe_eps { position: absolute; top: 6px; }
|
| 54 |
|
| 55 |
.woocommerce-checkout #payment input#payment_method_stripe_giropay,
|
| 56 |
+
#add_payment_method #payment input#payment_method_stripe_giropay { position: absolute; top: 6px; }
|
| 57 |
|
| 58 |
.woocommerce-checkout #payment input#payment_method_stripe_ideal,
|
| 59 |
+
#add_payment_method #payment input#payment_method_stripe_ideal { position: absolute; top: 6px; }
|
| 60 |
|
| 61 |
.woocommerce-checkout #payment input#payment_method_stripe_multibanco,
|
| 62 |
+
#add_payment_method #payment input#payment_method_stripe_multibanco { position: absolute; top: 6px; }
|
| 63 |
|
| 64 |
.woocommerce-checkout #payment input#payment_method_stripe_p24,
|
| 65 |
+
#add_payment_method #payment input#payment_method_stripe_p24 { position: absolute; top: 6px; }
|
| 66 |
|
| 67 |
.woocommerce-checkout #payment input#payment_method_stripe_sepa,
|
| 68 |
+
#add_payment_method #payment input#payment_method_stripe_sepa { position: absolute; top: 6px; }
|
| 69 |
|
| 70 |
.woocommerce-checkout #payment input#payment_method_stripe_sofort,
|
| 71 |
+
#add_payment_method #payment input#payment_method_stripe_sofort { position: absolute; top: 6px; }
|
| 72 |
|
| 73 |
+
.woocommerce-checkout #payment .payment_method_stripe label[for=payment_method_stripe] { display: block; padding-left: 32px; }
|
| 74 |
+
#add_payment_method #payment .payment_method_stripe label[for=payment_method_stripe] { display: block; padding-left: 20px; }
|
| 75 |
|
| 76 |
+
.woocommerce-checkout #payment .payment_method_stripe_bancontact label[for=payment_method_stripe_bancontact] { display: block; padding-left: 32px; }
|
| 77 |
+
#add_payment_method #payment .payment_method_stripe_bancontact label[for=payment_method_stripe_bancontact] { display: block; padding-left: 20px; }
|
| 78 |
|
| 79 |
+
.woocommerce-checkout #payment .payment_method_stripe_alipay label[for=payment_method_stripe_alipay] { display: block; padding-left: 32px; }
|
| 80 |
+
#add_payment_method #payment .payment_method_stripe_alipay label[for=payment_method_stripe_alipay] { display: block; padding-left: 20px; }
|
| 81 |
|
| 82 |
+
.woocommerce-checkout #payment .payment_method_stripe_eps label[for=payment_method_stripe_eps] { display: block; padding-left: 32px; }
|
| 83 |
+
#add_payment_method #payment .payment_method_stripe_eps label[for=payment_method_stripe_eps] { display: block; padding-left: 20px; }
|
| 84 |
|
| 85 |
+
.woocommerce-checkout #payment .payment_method_stripe_giropay label[for=payment_method_stripe_giropay] { display: block; padding-left: 32px; }
|
| 86 |
+
#add_payment_method #payment .payment_method_stripe_giropay label[for=payment_method_stripe_giropay] { display: block; padding-left: 20px; }
|
| 87 |
|
| 88 |
+
.woocommerce-checkout #payment .payment_method_stripe_ideal label[for=payment_method_stripe_ideal] { display: block; padding-left: 32px; }
|
| 89 |
+
#add_payment_method #payment .payment_method_stripe_ideal label[for=payment_method_stripe_ideal] { display: block; padding-left: 20px; }
|
| 90 |
|
| 91 |
+
.woocommerce-checkout #payment .payment_method_stripe_multibanco label[for=payment_method_stripe_multibanco] { display: block; padding-left: 32px; }
|
| 92 |
+
#add_payment_method #payment .payment_method_stripe_multibanco label[for=payment_method_stripe_multibanco] { display: block; padding-left: 20px; }
|
| 93 |
|
| 94 |
+
.woocommerce-checkout #payment .payment_method_stripe_p24 label[for=payment_method_stripe_p24] { display: block; padding-left: 32px; }
|
| 95 |
+
#add_payment_method #payment .payment_method_stripe_p24 label[for=payment_method_stripe_p24] { display: block; padding-left: 20px; }
|
| 96 |
|
| 97 |
+
.woocommerce-checkout #payment .payment_method_stripe_sepa label[for=payment_method_stripe_sepa] { display: block; padding-left: 32px; }
|
| 98 |
+
#add_payment_method #payment .payment_method_stripe_sepa label[for=payment_method_stripe_sepa] { display: block; padding-left: 20px; }
|
| 99 |
|
| 100 |
.woocommerce-checkout #payment .payment_method_stripe_sofort label[for=payment_method_stripe_sofort],
|
| 101 |
+
#add_payment_method #payment .payment_method_stripe_sofort label[for=payment_method_stripe_sofort] { display: block; padding-left: 32px; }
|
| 102 |
|
| 103 |
.woocommerce-checkout #payment ul.payment_methods li img.stripe-icon,
|
| 104 |
#add_payment_method #payment ul.payment_methods li img.stripe-icon { float: right; max-width: 40px; padding-left: 3px; margin: 0; }
|
| 131 |
#add_payment_method #payment ul.payment_methods li img.stripe-giropay-icon { max-width: 50px; }
|
| 132 |
|
| 133 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-credit-card-brand,
|
| 134 |
+
#add_payment_method #payment ul.payment_methods li .stripe-credit-card-brand { position: absolute; top: 50%; margin-top: -10px; right: 10px; background: no-repeat url( '../images/credit-card.svg' ); display: block; width: 30px; height: 24px; }
|
| 135 |
|
| 136 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-visa-brand,
|
| 137 |
+
#add_payment_method #payment ul.payment_methods li .stripe-visa-brand { position: absolute; top: 50%; margin-top: -10px; right: 10px; background: no-repeat url( '../images/visa.svg' ); display: block; width: 30px; height: 24px; }
|
| 138 |
|
| 139 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-amex-brand,
|
| 140 |
+
#add_payment_method #payment ul.payment_methods li .stripe-amex-brand { position: absolute; top: 50%; margin-top: -10px; right: 10px; background: no-repeat url( '../images/amex.svg' ); display: block; width: 30px; height: 24px; }
|
| 141 |
|
| 142 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-diners-brand,
|
| 143 |
+
#add_payment_method #payment ul.payment_methods li .stripe-diners-brand { position: absolute; top: 50%; margin-top: -10px; right: 10px; background: no-repeat url( '../images/diners.svg' ); display: block; width: 30px; height: 24px; }
|
| 144 |
|
| 145 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-discover-brand,
|
| 146 |
+
#add_payment_method #payment ul.payment_methods li .stripe-discover-brand { position: absolute; top: 50%; margin-top: -10px; right: 10px; background: no-repeat url( '../images/discover.svg' ); display: block; width: 30px; height: 24px; }
|
| 147 |
|
| 148 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-jcb-brand,
|
| 149 |
+
#add_payment_method #payment ul.payment_methods li .stripe-jcb-brand { position: absolute; top: 50%; margin-top: -10px; right: 10px; background: no-repeat url( '../images/jcb.svg' ); display: block; width: 30px; height: 24px; }
|
| 150 |
|
| 151 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-maestro-brand,
|
| 152 |
+
#add_payment_method #payment ul.payment_methods li .stripe-maestro-brand { position: absolute; top: 50%; margin-top: -10px; right: 10px; background: no-repeat url( '../images/maestro.svg' ); display: block; width: 30px; height: 24px; }
|
| 153 |
|
| 154 |
.woocommerce-checkout #payment ul.payment_methods li .stripe-mastercard-brand,
|
| 155 |
+
#add_payment_method #payment ul.payment_methods li .stripe-mastercard-brand { position: absolute; top: 50%; margin-top: -10px right: 10px; background: no-repeat url( '../images/mastercard.svg' ); display: block; width: 30px; height: 24px; }
|
| 156 |
|
| 157 |
.woocommerce-checkout #payment ul.payment_methods .stripe-card-group,
|
| 158 |
#add_payment_method #payment ul.payment_methods .stripe-card-group { position: relative; }
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/stripe-twentyseventeen-styles.css
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.woocommerce-checkout #payment .payment_method_stripe label[for=payment_method_stripe] { display: block; padding-left:0; }
|
| 2 |
+
#add_payment_method #payment .payment_method_stripe label[for=payment_method_stripe] { display: block; padding-left: 20px; }
|
| 3 |
+
|
| 4 |
+
.woocommerce-checkout #payment .payment_method_stripe_bancontact label[for=payment_method_stripe_bancontact] { display: block; padding-left:0; }
|
| 5 |
+
#add_payment_method #payment .payment_method_stripe_bancontact label[for=payment_method_stripe_bancontact] { display: block; padding-left: 20px; }
|
| 6 |
+
|
| 7 |
+
.woocommerce-checkout #payment .payment_method_stripe_alipay label[for=payment_method_stripe_alipay] { display: block; padding-left:0; }
|
| 8 |
+
#add_payment_method #payment .payment_method_stripe_alipay label[for=payment_method_stripe_alipay] { display: block; padding-left: 20px; }
|
| 9 |
+
|
| 10 |
+
.woocommerce-checkout #payment .payment_method_stripe_eps label[for=payment_method_stripe_eps] { display: block; padding-left:0; }
|
| 11 |
+
#add_payment_method #payment .payment_method_stripe_eps label[for=payment_method_stripe_eps] { display: block; padding-left: 20px; }
|
| 12 |
+
|
| 13 |
+
.woocommerce-checkout #payment .payment_method_stripe_giropay label[for=payment_method_stripe_giropay] { display: block; padding-left:0; }
|
| 14 |
+
#add_payment_method #payment .payment_method_stripe_giropay label[for=payment_method_stripe_giropay] { display: block; padding-left: 20px; }
|
| 15 |
+
|
| 16 |
+
.woocommerce-checkout #payment .payment_method_stripe_ideal label[for=payment_method_stripe_ideal] { display: block; padding-left:0; }
|
| 17 |
+
#add_payment_method #payment .payment_method_stripe_ideal label[for=payment_method_stripe_ideal] { display: block; padding-left: 20px; }
|
| 18 |
+
|
| 19 |
+
.woocommerce-checkout #payment .payment_method_stripe_multibanco label[for=payment_method_stripe_multibanco] { display: block; padding-left:0; }
|
| 20 |
+
#add_payment_method #payment .payment_method_stripe_multibanco label[for=payment_method_stripe_multibanco] { display: block; padding-left: 20px; }
|
| 21 |
+
|
| 22 |
+
.woocommerce-checkout #payment .payment_method_stripe_p24 label[for=payment_method_stripe_p24] { display: block; padding-left:0; }
|
| 23 |
+
#add_payment_method #payment .payment_method_stripe_p24 label[for=payment_method_stripe_p24] { display: block; padding-left: 20px; }
|
| 24 |
+
|
| 25 |
+
.woocommerce-checkout #payment .payment_method_stripe_sepa label[for=payment_method_stripe_sepa] { display: block; padding-left:0; }
|
| 26 |
+
#add_payment_method #payment .payment_method_stripe_sepa label[for=payment_method_stripe_sepa] { display: block; padding-left: 20px; }
|
| 27 |
+
|
| 28 |
+
.woocommerce-checkout #payment .payment_method_stripe_sofort label[for=payment_method_stripe_sofort] { display: block; padding-left:0; }
|
| 29 |
+
#add_payment_method #payment .payment_method_stripe_sofort label[for=payment_method_stripe_sofort] { display: block; padding-left: 20px; }
|
| 30 |
+
|
| 31 |
+
.woocommerce-PaymentMethods li { list-style-type: none; }
|
changelog.txt
CHANGED
|
@@ -1,5 +1,9 @@
|
|
| 1 |
*** Changelog ***
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
= 4.1.5 - 2018-05-28 =
|
| 4 |
* Tweak - Refactor initialization of plugin.
|
| 5 |
* Tweak - Webhook failed handler now handles all payment methods.
|
| 1 |
*** Changelog ***
|
| 2 |
|
| 3 |
+
= 4.1.6 - 2018-05-31 =
|
| 4 |
+
* Fix - Radio buttons on checkout on some themes are not aligned properly.
|
| 5 |
+
* Fix - False negative on SSL warning notice in admin.
|
| 6 |
+
|
| 7 |
= 4.1.5 - 2018-05-28 =
|
| 8 |
* Tweak - Refactor initialization of plugin.
|
| 9 |
* Tweak - Webhook failed handler now handles all payment methods.
|
includes/admin/class-wc-stripe-admin-notices.php
CHANGED
|
@@ -175,9 +175,9 @@ class WC_Stripe_Admin_Notices {
|
|
| 175 |
|
| 176 |
if ( empty( $show_ssl_notice ) ) {
|
| 177 |
// Show message if enabled and FORCE SSL is disabled and WordpressHTTPS plugin is not detected.
|
| 178 |
-
if (
|
| 179 |
/* translators: 1) link */
|
| 180 |
-
$this->add_admin_notice( 'ssl', 'notice notice-warning', sprintf( __( 'Stripe is enabled, but a SSL certificate is not detected. Your checkout may not be secure! Please ensure your server has a valid <a href="%1$s" target="_blank">SSL certificate</a>
|
| 181 |
}
|
| 182 |
}
|
| 183 |
}
|
| 175 |
|
| 176 |
if ( empty( $show_ssl_notice ) ) {
|
| 177 |
// Show message if enabled and FORCE SSL is disabled and WordpressHTTPS plugin is not detected.
|
| 178 |
+
if ( ! wc_checkout_is_https() ) {
|
| 179 |
/* translators: 1) link */
|
| 180 |
+
$this->add_admin_notice( 'ssl', 'notice notice-warning', sprintf( __( 'Stripe is enabled, but a SSL certificate is not detected. Your checkout may not be secure! Please ensure your server has a valid <a href="%1$s" target="_blank">SSL certificate</a>', 'woocommerce-gateway-stripe' ), 'https://en.wikipedia.org/wiki/Transport_Layer_Security' ), true );
|
| 181 |
}
|
| 182 |
}
|
| 183 |
}
|
includes/class-wc-gateway-stripe.php
CHANGED
|
@@ -446,10 +446,23 @@ class WC_Gateway_Stripe extends WC_Stripe_Payment_Gateway {
|
|
| 446 |
WC_Stripe_Logger::log( 'Stripe live mode requires SSL.' );
|
| 447 |
}
|
| 448 |
|
|
|
|
|
|
|
| 449 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
| 450 |
|
| 451 |
wp_register_style( 'stripe_styles', plugins_url( 'assets/css/stripe-styles.css', WC_STRIPE_MAIN_FILE ), array(), WC_STRIPE_VERSION );
|
| 452 |
wp_enqueue_style( 'stripe_styles' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
wp_register_script( 'stripe_checkout', 'https://checkout.stripe.com/checkout.js', '', WC_STRIPE_VERSION, true );
|
| 454 |
wp_register_script( 'stripe', 'https://js.stripe.com/v3/', '', '3.0', true );
|
| 455 |
wp_register_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe' . $suffix . '.js', WC_STRIPE_MAIN_FILE ), array( 'jquery-payment', 'stripe' ), WC_STRIPE_VERSION, true );
|
| 446 |
WC_Stripe_Logger::log( 'Stripe live mode requires SSL.' );
|
| 447 |
}
|
| 448 |
|
| 449 |
+
$current_theme = wp_get_theme();
|
| 450 |
+
|
| 451 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
| 452 |
|
| 453 |
wp_register_style( 'stripe_styles', plugins_url( 'assets/css/stripe-styles.css', WC_STRIPE_MAIN_FILE ), array(), WC_STRIPE_VERSION );
|
| 454 |
wp_enqueue_style( 'stripe_styles' );
|
| 455 |
+
|
| 456 |
+
if ( 'storefront' === $current_theme->get_template() ) {
|
| 457 |
+
wp_register_style( 'stripe_storefront_styles', plugins_url( 'assets/css/stripe-storefront-styles.css', WC_STRIPE_MAIN_FILE ), array(), WC_STRIPE_VERSION );
|
| 458 |
+
wp_enqueue_style( 'stripe_storefront_styles' );
|
| 459 |
+
}
|
| 460 |
+
|
| 461 |
+
if ( 'twentyseventeen' === $current_theme->get_template() ) {
|
| 462 |
+
wp_register_style( 'stripe_twentyseventeen_styles', plugins_url( 'assets/css/stripe-twentyseventeen-styles.css', WC_STRIPE_MAIN_FILE ), array(), WC_STRIPE_VERSION );
|
| 463 |
+
wp_enqueue_style( 'stripe_twentyseventeen_styles' );
|
| 464 |
+
}
|
| 465 |
+
|
| 466 |
wp_register_script( 'stripe_checkout', 'https://checkout.stripe.com/checkout.js', '', WC_STRIPE_VERSION, true );
|
| 467 |
wp_register_script( 'stripe', 'https://js.stripe.com/v3/', '', '3.0', true );
|
| 468 |
wp_register_script( 'woocommerce_stripe', plugins_url( 'assets/js/stripe' . $suffix . '.js', WC_STRIPE_MAIN_FILE ), array( 'jquery-payment', 'stripe' ), WC_STRIPE_VERSION, true );
|
languages/woocommerce-gateway-stripe.pot
CHANGED
|
@@ -2,10 +2,10 @@
|
|
| 2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway package.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: WooCommerce Stripe Gateway 4.1.
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://github.com/woocommerce/woocommerce-gateway-stripe/issues\n"
|
| 8 |
-
"POT-Creation-Date: 2018-05-
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -63,7 +63,7 @@ msgid "Stripe charge complete (Charge ID: %s)"
|
|
| 63 |
msgstr ""
|
| 64 |
|
| 65 |
#: includes/abstracts/abstract-wc-stripe-payment-gateway.php:464
|
| 66 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 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."
|
|
@@ -139,7 +139,7 @@ msgstr ""
|
|
| 139 |
msgid ""
|
| 140 |
"Stripe is enabled, but a SSL certificate is not detected. Your checkout may "
|
| 141 |
"not be secure! Please ensure your server has a valid <a href=\"%1$s\" "
|
| 142 |
-
"target=\"_blank\">SSL certificate</a>
|
| 143 |
msgstr ""
|
| 144 |
|
| 145 |
#: includes/admin/class-wc-stripe-admin-notices.php:203
|
|
@@ -821,42 +821,42 @@ msgstr ""
|
|
| 821 |
msgid "Card Code (CVC)"
|
| 822 |
msgstr ""
|
| 823 |
|
| 824 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 825 |
msgid "Please accept the terms and conditions first"
|
| 826 |
msgstr ""
|
| 827 |
|
| 828 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 829 |
msgid "Please fill in required checkout fields first"
|
| 830 |
msgstr ""
|
| 831 |
|
| 832 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 833 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 834 |
#: includes/compat/class-wc-stripe-subs-compat.php:91
|
| 835 |
msgid ""
|
| 836 |
"Sorry, we're not accepting prepaid cards at this time. Your credit card has "
|
| 837 |
"not been charge. Please try with alternative payment method."
|
| 838 |
msgstr ""
|
| 839 |
|
| 840 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 841 |
msgid "Please enter your IBAN account name."
|
| 842 |
msgstr ""
|
| 843 |
|
| 844 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 845 |
msgid "Please enter your IBAN account number."
|
| 846 |
msgstr ""
|
| 847 |
|
| 848 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 849 |
msgid "Place Order"
|
| 850 |
msgstr ""
|
| 851 |
|
| 852 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 853 |
#: includes/class-wc-stripe-order-handler.php:140
|
| 854 |
#: includes/class-wc-stripe-webhook-handler.php:187
|
| 855 |
#: includes/payment-methods/class-wc-gateway-stripe-sepa.php:348
|
| 856 |
msgid "This card is no longer available and has been removed."
|
| 857 |
msgstr ""
|
| 858 |
|
| 859 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 860 |
#: includes/class-wc-stripe-order-handler.php:158
|
| 861 |
#: includes/class-wc-stripe-webhook-handler.php:206
|
| 862 |
#: includes/compat/class-wc-stripe-sepa-subs-compat.php:222
|
|
@@ -867,22 +867,22 @@ msgid ""
|
|
| 867 |
"later."
|
| 868 |
msgstr ""
|
| 869 |
|
| 870 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 871 |
#. translators: error message
|
| 872 |
msgid "This represents the fee Stripe collects for the transaction."
|
| 873 |
msgstr ""
|
| 874 |
|
| 875 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 876 |
msgid "Stripe Fee:"
|
| 877 |
msgstr ""
|
| 878 |
|
| 879 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 880 |
msgid ""
|
| 881 |
"This represents the net total that will be credited to your Stripe bank "
|
| 882 |
"account. This may be in the currency that is set in your Stripe account."
|
| 883 |
msgstr ""
|
| 884 |
|
| 885 |
-
#: includes/class-wc-gateway-stripe.php:
|
| 886 |
msgid "Stripe Payout:"
|
| 887 |
msgstr ""
|
| 888 |
|
| 2 |
# This file is distributed under the same license as the WooCommerce Stripe Gateway package.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: WooCommerce Stripe Gateway 4.1.6\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://github.com/woocommerce/woocommerce-gateway-stripe/issues\n"
|
| 8 |
+
"POT-Creation-Date: 2018-05-31 19:36:20+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 63 |
msgstr ""
|
| 64 |
|
| 65 |
#: includes/abstracts/abstract-wc-stripe-payment-gateway.php:464
|
| 66 |
+
#: includes/class-wc-gateway-stripe.php:703
|
| 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."
|
| 139 |
msgid ""
|
| 140 |
"Stripe is enabled, but a SSL certificate is not detected. Your checkout may "
|
| 141 |
"not be secure! Please ensure your server has a valid <a href=\"%1$s\" "
|
| 142 |
+
"target=\"_blank\">SSL certificate</a>"
|
| 143 |
msgstr ""
|
| 144 |
|
| 145 |
#: includes/admin/class-wc-stripe-admin-notices.php:203
|
| 821 |
msgid "Card Code (CVC)"
|
| 822 |
msgstr ""
|
| 823 |
|
| 824 |
+
#: includes/class-wc-gateway-stripe.php:472
|
| 825 |
msgid "Please accept the terms and conditions first"
|
| 826 |
msgstr ""
|
| 827 |
|
| 828 |
+
#: includes/class-wc-gateway-stripe.php:473
|
| 829 |
msgid "Please fill in required checkout fields first"
|
| 830 |
msgstr ""
|
| 831 |
|
| 832 |
+
#: includes/class-wc-gateway-stripe.php:491
|
| 833 |
+
#: includes/class-wc-gateway-stripe.php:698
|
| 834 |
#: includes/compat/class-wc-stripe-subs-compat.php:91
|
| 835 |
msgid ""
|
| 836 |
"Sorry, we're not accepting prepaid cards at this time. Your credit card has "
|
| 837 |
"not been charge. Please try with alternative payment method."
|
| 838 |
msgstr ""
|
| 839 |
|
| 840 |
+
#: includes/class-wc-gateway-stripe.php:492
|
| 841 |
msgid "Please enter your IBAN account name."
|
| 842 |
msgstr ""
|
| 843 |
|
| 844 |
+
#: includes/class-wc-gateway-stripe.php:493
|
| 845 |
msgid "Please enter your IBAN account number."
|
| 846 |
msgstr ""
|
| 847 |
|
| 848 |
+
#: includes/class-wc-gateway-stripe.php:587
|
| 849 |
msgid "Place Order"
|
| 850 |
msgstr ""
|
| 851 |
|
| 852 |
+
#: includes/class-wc-gateway-stripe.php:785
|
| 853 |
#: includes/class-wc-stripe-order-handler.php:140
|
| 854 |
#: includes/class-wc-stripe-webhook-handler.php:187
|
| 855 |
#: includes/payment-methods/class-wc-gateway-stripe-sepa.php:348
|
| 856 |
msgid "This card is no longer available and has been removed."
|
| 857 |
msgstr ""
|
| 858 |
|
| 859 |
+
#: includes/class-wc-gateway-stripe.php:804
|
| 860 |
#: includes/class-wc-stripe-order-handler.php:158
|
| 861 |
#: includes/class-wc-stripe-webhook-handler.php:206
|
| 862 |
#: includes/compat/class-wc-stripe-sepa-subs-compat.php:222
|
| 867 |
"later."
|
| 868 |
msgstr ""
|
| 869 |
|
| 870 |
+
#: includes/class-wc-gateway-stripe.php:881
|
| 871 |
#. translators: error message
|
| 872 |
msgid "This represents the fee Stripe collects for the transaction."
|
| 873 |
msgstr ""
|
| 874 |
|
| 875 |
+
#: includes/class-wc-gateway-stripe.php:882
|
| 876 |
msgid "Stripe Fee:"
|
| 877 |
msgstr ""
|
| 878 |
|
| 879 |
+
#: includes/class-wc-gateway-stripe.php:918
|
| 880 |
msgid ""
|
| 881 |
"This represents the net total that will be credited to your Stripe bank "
|
| 882 |
"account. This may be in the currency that is set in your Stripe account."
|
| 883 |
msgstr ""
|
| 884 |
|
| 885 |
+
#: includes/class-wc-gateway-stripe.php:919
|
| 886 |
msgid "Stripe Payout:"
|
| 887 |
msgstr ""
|
| 888 |
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: credit card, stripe, apple pay, payment request, google pay, sepa, sofort,
|
|
| 4 |
Requires at least: 4.4
|
| 5 |
Tested up to: 4.9
|
| 6 |
Requires PHP: 5.6
|
| 7 |
-
Stable tag: 4.1.
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
|
@@ -101,15 +101,9 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
| 101 |
|
| 102 |
== Changelog ==
|
| 103 |
|
| 104 |
-
= 4.1.
|
| 105 |
-
*
|
| 106 |
-
*
|
| 107 |
-
* Tweak - Make sure 3DS object is in pending status before redirecting.
|
| 108 |
-
* Tweak - CSS styling.
|
| 109 |
-
* Add - Username to the description field of the Stripe customer when created.
|
| 110 |
-
* Add - GDPR retention setting and logic.
|
| 111 |
-
* Fix - Payment request payments were redirected to Pay Order when it should be Order Received.
|
| 112 |
-
* Update - Stripe API version to 2018-05-21.
|
| 113 |
|
| 114 |
[See changelog for all versions](https://raw.githubusercontent.com/woothemes/woocommerce-gateway-stripe/master/changelog.txt).
|
| 115 |
|
| 4 |
Requires at least: 4.4
|
| 5 |
Tested up to: 4.9
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 4.1.6
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
Attributions: thorsten-stripe
|
| 101 |
|
| 102 |
== Changelog ==
|
| 103 |
|
| 104 |
+
= 4.1.6 - 2018-05-31 =
|
| 105 |
+
* Fix - Radio buttons on checkout on some themes are not aligned properly.
|
| 106 |
+
* Fix - False negative on SSL warning notice in admin.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
[See changelog for all versions](https://raw.githubusercontent.com/woothemes/woocommerce-gateway-stripe/master/changelog.txt).
|
| 109 |
|
woocommerce-gateway-stripe.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Description: Take credit card payments on your store using Stripe.
|
| 6 |
* Author: WooCommerce
|
| 7 |
* Author URI: https://woocommerce.com/
|
| 8 |
-
* Version: 4.1.
|
| 9 |
* Requires at least: 4.4
|
| 10 |
* Tested up to: 4.9
|
| 11 |
* WC requires at least: 2.6
|
|
@@ -44,7 +44,7 @@ function woocommerce_gateway_stripe_init() {
|
|
| 44 |
/**
|
| 45 |
* Required minimums and constants
|
| 46 |
*/
|
| 47 |
-
define( 'WC_STRIPE_VERSION', '4.1.
|
| 48 |
define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
|
| 49 |
define( 'WC_STRIPE_MIN_WC_VER', '2.6.0' );
|
| 50 |
define( 'WC_STRIPE_MAIN_FILE', __FILE__ );
|
| 5 |
* Description: Take credit card payments on your store using Stripe.
|
| 6 |
* Author: WooCommerce
|
| 7 |
* Author URI: https://woocommerce.com/
|
| 8 |
+
* Version: 4.1.6
|
| 9 |
* Requires at least: 4.4
|
| 10 |
* Tested up to: 4.9
|
| 11 |
* WC requires at least: 2.6
|
| 44 |
/**
|
| 45 |
* Required minimums and constants
|
| 46 |
*/
|
| 47 |
+
define( 'WC_STRIPE_VERSION', '4.1.6' );
|
| 48 |
define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' );
|
| 49 |
define( 'WC_STRIPE_MIN_WC_VER', '2.6.0' );
|
| 50 |
define( 'WC_STRIPE_MAIN_FILE', __FILE__ );
|
