Payment Plugins for Stripe WooCommerce - Version 3.3.15

Version Description

  • Added - France and Ireland to Klarna
  • Added -Notice in capture modal if the capture amount is less than the order total. This notice is a reminder that merchants should update the order line items if the capture amount is less than the order amount as it leads to better accounting.
  • Added - OXXO voucher expiration days option
  • Added - Option to include OXXO voucher link in order on-hold email sent to customer.
  • Updated - WeChat redirect to thank you page after qrcode is scanned and user clicks "complete order".
Download this release

Release Info

Developer mr.clayton
Plugin Icon wp plugin Payment Plugins for Stripe WooCommerce
Version 3.3.15
Comparing to
See all releases

Code changes from version 3.3.14 to 3.3.15

Files changed (35) hide show
  1. assets/css/stripe-rtl.css +3 -2
  2. assets/css/stripe.css +3 -2
  3. assets/css/stripe.min-rtl.css +1 -1
  4. assets/css/stripe.min.css +1 -1
  5. assets/js/admin/meta-boxes-order.js +30 -7
  6. assets/js/frontend/afterpay.js +7 -3
  7. assets/js/frontend/afterpay.min.js +1 -1
  8. assets/js/frontend/applepay-checkout.js +1 -0
  9. assets/js/frontend/applepay-checkout.min.js +1 -1
  10. assets/js/frontend/googlepay-checkout.js +1 -0
  11. assets/js/frontend/googlepay-checkout.min.js +1 -1
  12. assets/js/frontend/local-payment.js +9 -4
  13. assets/js/frontend/local-payment.min.js +1 -1
  14. assets/js/frontend/mini-cart.js +5 -1
  15. assets/js/frontend/mini-cart.min.js +1 -1
  16. assets/js/frontend/payment-request.js +1 -0
  17. assets/js/frontend/payment-request.min.js +1 -1
  18. i18n/languages/woo-stripe-payment.pot +84 -54
  19. includes/abstract/abstract-wc-payment-gateway-stripe.php +2 -6
  20. includes/admin/class-wc-stripe-admin-assets.php +0 -4
  21. includes/admin/class-wc-stripe-admin-menus.php +2 -4
  22. includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php +6 -2
  23. includes/class-stripe.php +1 -1
  24. includes/class-wc-stripe-gateway.php +8 -4
  25. includes/class-wc-stripe-payment-intent.php +5 -4
  26. includes/class-wc-stripe-redirect-handler.php +20 -1
  27. includes/class-wc-stripe-rest-api.php +20 -11
  28. includes/controllers/class-wc-stripe-controller-order-actions.php +2 -1
  29. includes/gateways/class-wc-payment-gateway-stripe-afterpay.php +2 -1
  30. includes/gateways/class-wc-payment-gateway-stripe-klarna.php +2 -2
  31. includes/gateways/class-wc-payment-gateway-stripe-oxxo.php +87 -1
  32. includes/gateways/class-wc-payment-gateway-stripe-wechat.php +3 -1
  33. readme.txt +10 -2
  34. stripe-payments.php +2 -2
  35. vendor/composer/installed.php +2 -2
assets/css/stripe-rtl.css CHANGED
@@ -396,14 +396,15 @@ li.payment_method_stripe_ach label:first-of-type img {
396
  min-height: 32px;
397
  }
398
 
399
- .gpay-button-container .gpay-button:hover {
 
400
  background-origin: content-box;
401
  background-position: center center;
402
  background-repeat: no-repeat;
403
  background-size: contain;
404
  }
405
 
406
- .gpay-button:active {
407
  background-origin: content-box;
408
  background-position: center center;
409
  background-repeat: no-repeat;
396
  min-height: 32px;
397
  }
398
 
399
+ .gpay-button-container .gpay-button:hover,
400
+ .wc-stripe-checkout-banner-gateway .gpay-button:hover {
401
  background-origin: content-box;
402
  background-position: center center;
403
  background-repeat: no-repeat;
404
  background-size: contain;
405
  }
406
 
407
+ .gpay-button:active{
408
  background-origin: content-box;
409
  background-position: center center;
410
  background-repeat: no-repeat;
assets/css/stripe.css CHANGED
@@ -396,14 +396,15 @@ li.payment_method_stripe_ach label:first-of-type img {
396
  min-height: 32px;
397
  }
398
 
399
- .gpay-button-container .gpay-button:hover {
 
400
  background-origin: content-box;
401
  background-position: center center;
402
  background-repeat: no-repeat;
403
  background-size: contain;
404
  }
405
 
406
- .gpay-button:active {
407
  background-origin: content-box;
408
  background-position: center center;
409
  background-repeat: no-repeat;
396
  min-height: 32px;
397
  }
398
 
399
+ .gpay-button-container .gpay-button:hover,
400
+ .wc-stripe-checkout-banner-gateway .gpay-button:hover {
401
  background-origin: content-box;
402
  background-position: center center;
403
  background-repeat: no-repeat;
404
  background-size: contain;
405
  }
406
 
407
+ .gpay-button:active{
408
  background-origin: content-box;
409
  background-position: center center;
410
  background-repeat: no-repeat;
assets/css/stripe.min-rtl.css CHANGED
@@ -1 +1 @@
1
- .wc-stripe-card-icons-container,.wc-stripe-paymentRequest-icons-container{float:left;display:inline-block}ul.payment_methods li[class*=payment_method]{margin:0;padding:0}li[class*=payment_method] input[type=radio]{margin:0 5px 0 10px}li[class*=payment_method] input[type=radio]+label:not(.wc-stripe-label-payment-type){margin:0}.woocommerce-checkout #payment ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2),ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2){margin:0}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon{max-width:43px;max-height:26px;width:43px;height:26px;float:none;display:inline}li.payment_method_stripe_payment_request .wc-stripe-paymentRequest-icons-container img:not(.gpay){width:25px;height:25px;max-width:25px;max-height:25px}ul.payment_methods label[for*=payment_method_stripe]:after{clear:left;content:"";display:block}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon:nth-child(2n+2){margin:0 2px}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon.open.visa{padding-top:2px}ul.payment_methods li[class*=payment_method_stripe_] label>img:first-of-type{float:left!important}.wc-stripe_cc-new-method-container{margin-bottom:1em}.wc-stripe_cc-container .StripeElement{box-sizing:border-box;height:40px;padding:10px 12px;border-radius:4px;background-color:#fff;-webkit-transition:box-shadow 150ms ease;transition:box-shadow 150ms ease}input.wc-stripe-klarna-category,input.wc-stripe-payment-type{display:none!important}body .wfacp_main_form.woocommerce .wc-stripe-save-source label.checkbox{padding:0!important}input[type=radio]+label.wc-stripe-label-payment-type,label.wc-stripe-label-klarna-category,label.wc-stripe-label-payment-type{margin-bottom:1em;display:block;padding:0!important;color:#000}.theme-flatsome div.wc-stripe-saved-methods-container{margin:0 0 1em 0}label.wc-stripe-label-klarna-category:before,label.wc-stripe-label-payment-type:before{content:"";display:inline-block;width:11px;height:11px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5em;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}input.wc-stripe-klarna-category:checked+label.wc-stripe-label-klarna-category:before,input.wc-stripe-payment-type:checked+label.wc-stripe-label-payment-type:before{background:#000}label.wc-stripe-label-payment-type:after{content:none!important;display:none!important}.wc-stripe-saved-methods-container .select2-container .select2-selection--single .select2-selection__rendered{padding-right:8px}.select2-results__options li.wc-stripe-select2-container,.wc-stripe-saved-methods-container .select2-container .select2-selection--single .wc-stripe-select2-container{display:flex;align-items:center;height:42px;line-height:42px!important}.select2-container .select2-selection--single .wc-stripe-select2-container:before,.select2-results__options li.wc-stripe-select2-container:before{content:'';background-repeat:no-repeat;background-size:40px 24px;width:40px;height:42px;display:inline-block;margin-left:8px;background-position:center}.select2-container .select2-selection--single .wc-stripe-select2-container.visa:before,.select2-results__options li.wc-stripe-select2-container.visa:before{background-image:url(../img/cards/visa.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.americanexpress:before,.select2-results__options li.wc-stripe-select2-container.americanexpress:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.amex:before,.select2-results__options li.wc-stripe-select2-container.amex:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.discover:before,.select2-results__options li.wc-stripe-select2-container.discover:before{background-image:url(../img/cards/discover.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.dinersclub:before,.select2-results__options li.wc-stripe-select2-container.dinersclub:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.diners:before,.select2-results__options li.wc-stripe-select2-container.diners:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.jcb:before,.select2-results__options li.wc-stripe-select2-container.jcb:before{background-image:url(../img/cards/jcb.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.stripe_sepa:before,.select2-results__options li.wc-stripe-select2-container.stripe_sepa:before{background-image:url(../img/sepa.svg)}.select2-results__options li.wc-stripe-select2-container.wc-stripe-ach:before{display:none}#wc-stripe-card-element{margin-bottom:1em}.wc-stripe_cc-new-method-container .wc-stripe-save-source{display:flex;align-items:center;justify-content:flex-start}.wc-stripe_cc-container .wc-stripe-save-source .save-source-label{display:block;padding:0;margin:0 5px 0 0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]{opacity:0;position:absolute;width:20px;height:20px}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{position:relative}.wc-stripe_cc-container .save-source-checkbox{height:20px;width:20px;position:relative;background-color:#fff;display:block;border-radius:3px;border:1px solid #bababa}.wc-stripe_cc-container .save-source-checkbox:after{content:"";position:absolute;top:0;right:0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]:checked+.save-source-checkbox:after{right:6px;top:2px;width:7px;height:12px;border:solid #2196f3;border-width:0 0 3px 3px;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}li.payment_method_stripe_applepay,li.payment_method_stripe_googlepay,li.payment_method_stripe_payment_request{display:none}#payment #place_order.wc-stripe-hide,#place_order.wc-stripe-hide,.woocommerce-checkout-review-order #payment #place_order.wc-stripe-hide{position:absolute!important;z-index:-1000!important;height:0!important;padding:0!important;opacity:0!important}.wc-stripe-product-checkout-container{display:none;width:100%}.wc-stripe-product-checkout-container.bottom{margin-top:1em}.wc-stripe-product-checkout-container.top{margin-bottom:1em}.wc-stripe-product-checkout-container.active{display:block}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods{list-style:none;margin:0;padding:0}.wc-stripe-cart-checkout-container{margin:0;padding:0;clear:both}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods{margin-bottom:1.5em}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_],.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]{margin:0 0 1em 0;list-style:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_]:last-child,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]:last-child{margin:0}.wc_stripe_cart_payment_methods .gpay-button,.wc_stripe_cart_payment_methods .gpay-card-info-container,.wc_stripe_product_payment_methods .gpay-button,.wc_stripe_product_payment_methods .gpay-card-info-container{width:100%!important;margin:0}.wc_stripe_product_payment_methods .disabled{opacity:.45}.stripe_cart_gateway_active .checkout-button,.woocommerce-cart .stripe_cart_gateway_active .wc-proceed-to-checkout .checkout-button{margin-bottom:0}.wc-stripe-cart-or{margin:1em 0;text-align:center}li.wc-stripe-payment-method.or{display:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:block;margin:15px 0}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or p{margin:0}li[class*=payment_method_stripe_].active~li.wc-stripe-payment-method.or{display:block;margin:0}li.payment_method_stripe_applepay label:first-of-type img{width:49px;max-height:32px}li.payment_method_stripe_googlepay label:first-of-type img{width:48px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_standard],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_standard]{width:60px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_round_outline],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_round_outline]{width:56px;max-height:30px}li.payment_method_stripe_ach label:first-of-type img{width:32px;height:32px;min-width:32px;min-height:32px}.gpay-button-container .gpay-button:hover{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:active{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:focus{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}@supports (-webkit-appearance:-apple-pay-button){.apple-pay-button{display:block;-webkit-appearance:-apple-pay-button!important;width:100%;max-width:100%;min-width:200px;height:40px;max-height:40px}.apple-pay-button-black{-apple-pay-button-style:#000}.apple-pay-button-white{-apple-pay-button-style:#fff}.apple-pay-button-white-with-line{-apple-pay-button-style:white-outline}.applepay-top-container .apple-pay-button{max-width:240px}.woocommerce-checkout-payment .apple-pay-button{max-width:240px}body.single-product div.product form.cart .wc_stripe_product_payment_methods .apple-pay-button{max-width:100%}}.wc-stripe-banner-checkout{display:none;padding:20px 15px 0 15px;border:1px solid #d1d1d1;border-width:0 0 1px;position:relative;margin:1em 0}.wc-stripe-banner-checkout.active{display:block}.wc-stripe-banner-checkout span.banner-title{position:absolute;display:flex;align-items:center;top:-13px;left:0;right:0;background:0 0;white-space:nowrap;font-size:16px}.wc-stripe-banner-checkout span.banner-title:after,.wc-stripe-banner-checkout span.banner-title:before{content:' ';height:1px;background:#d1d1d1;display:block;width:50%}.wc-stripe-banner-checkout span.banner-title:before{margin-left:8px}.wc-stripe-banner-checkout span.banner-title:after{margin-right:8px}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways{list-style:none;margin:0;padding:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway{margin:0 0 20px 0;display:none}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-card-info-container{margin:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-card-info-container{width:100%}.wc_stripe_cart_payment_methods .payment_method_stripe_payment_request .StripeElement,.wc_stripe_product_payment_methods .payment_method_stripe_payment_request .StripeElement{padding:0;width:100%}.woocommerce-checkout #wc-stripe-payment-request-container.StripeElement{width:240px;padding:0}.wc-stripe-checkout-banner-gateway #wc-stripe-payment-request-banner.StripeElement{width:100%}ul.payment_methods li.payment_method_stripe_p24 img{max-width:90px;width:90px;max-height:45px}ul.payment_methods li.payment_method_stripe_ideal img{max-width:38px;width:38px;max-height:35px}ul.payment_methods li.payment_method_stripe_fpx img{max-width:75px;width:75px;max-height:25px}ul.payment_methods li.payment_method_stripe_klarna img{max-width:72px;width:72px;max-height:20px}ul.payment_methods li.payment_method_stripe_klarna img[src*=klarna_pink]{width:56px;height:32px;max-height:32px}ul.payment_methods li.payment_method_stripe_giropay img{max-width:65px;width:65px;max-height:28px}ul.payment_methods li.payment_method_stripe_eps img{max-width:70px;width:70px;max-height:46px}ul.payment_methods li.payment_method_stripe_multibanco img{max-width:48px;width:48px;max-height:48px}ul.payment_methods li.payment_method_stripe_sepa img{max-width:67px;width:67px;max-height:18px}ul.payment_methods li.payment_method_stripe_sofort img{max-width:70px;width:70px;max-height:21px}label[for=payment_method_stripe_bancontact] img,ul.payment_methods li.payment_method_stripe_bancontact img{width:60px;height:42px;max-width:60px;max-height:42px}ul.payment_methods li.payment_method_stripe_wechat label img{max-width:82px;width:82px;max-height:23px}ul.payment_methods li.payment_method_stripe_alipay img{max-width:72px;width:72px;height:36px;max-height:36px}ul.payment_methods li.payment_method_stripe_grabpay img{max-width:95px;width:95px;max-height:28px}#wc-stripe-card-element{width:100%}li.banner_payment_method_stripe_payment_request .StripeElement{padding:0}.single-product .blockMsg{border:none!important;background-color:transparent!important}#wc-stripe-card{position:absolute!important;top:50%;left:8px;transform:translatey(-50%);width:23px;height:15px;padding:0;border:none}#wc-stripe-card.active{width:32px;height:20px}input[id=stripe-postal-code]:focus{outline:0;background:0 0;border:none;box-shadow:none}div.postalCode:focus{outline:0;border:none}li[class*=payment_method_stripe] .select2-container .select2-selection--single{height:42px;padding:0 5px}li[class*=payment_method_stripe] .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;top:1px;left:1px;transform:translateY(0)}.blockUI.blockMsg{font-size:20px;white-space:nowrap}#wc-stripe-payment-request-container.disabled{opacity:.45}.wc-stripe-paymentRequest-icons-container img{float:none}.select2-container .select2-selection--single .wc-stripe-select2-container.wc-stripe-ach:before{display:none}ul.wc_stripe_cart_payment_methods li.wc-stripe-payment-method button,ul.wc_stripe_checkout_banner_gateways li button,ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_] button{margin:0}ul.payment_methods li[class*=payment_method]{margin:0;padding:10px 0}ul.payment_methods li[class*=payment_method] input[name=payment_method]{margin:0 5px 0 10px;float:none}ul.payment_methods li[class*=payment_method]>input[name=payment_method]+label{padding-top:0;padding-left:0;padding-bottom:0}ul.payment_methods{list-style:none}ul.payment_methods li[class*=payment_method_stripe_] .wc-stripe_cc-new-method-container label:before{display:none}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{padding:0!important;margin:0}div[id*=wc_stripe_local_payment_stripe_].StripeElement{border:1px solid #eee;border-radius:4px}#payment .payment_methods li #wc_stripe_local_payment_stripe_wechat img,#wc_stripe_local_payment_stripe_wechat img{max-height:100%;float:none}.qrcode-message{margin:10px 0 0 0}#wc_stripe_local_payment_stripe_becs,#wc_stripe_local_payment_stripe_sepa{padding:10px 12px;box-shadow:0 1px 3px 0 #e6ebf1}.wc-stripe-local-desc.stripe_becs,.wc-stripe-local-desc.stripe_sepa{margin:10px 0}.wc-stripe-clear{clear:both;height:0;visibility:hidden}.wc-stripe-gateway-desc p{margin:0}#wc_stripe_local_payment_stripe_klarna,li[class*=payment_method_stripe_] div.wc-stripe-gateway-container.has_tokens{margin-top:10px}.wc-stripe-gateway-desc{margin-top:10px}#wc-stripe-card-element.StripeElement--webkit-autofill{background-color:transparent!important}#wc_stripe_local_payment_stripe_klarna .stripe-klarna-categories{list-style:none;margin:0;padding:10px}li.payment_method_stripe_alipay,li.payment_method_stripe_bancontact,li.payment_method_stripe_becs,li.payment_method_stripe_eps,li.payment_method_stripe_fpx,li.payment_method_stripe_giropay,li.payment_method_stripe_ideal,li.payment_method_stripe_klarna,li.payment_method_stripe_multibanco,li.payment_method_stripe_p24,li.payment_method_stripe_sepa,li.payment_method_stripe_sofort,li.payment_method_stripe_wechat{display:none}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods{list-style:none;margin:0;padding:0}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods li{margin:0}.widget_shopping_cart_content a.wc-stripe-applepay-mini-cart,.widget_shopping_cart_content a.wc-stripe-gpay-mini-cart,.widget_shopping_cart_content a.wc-stripe-payment-request-mini-cart{background:0 0;padding:0;border:none}a.wc-stripe-gpay-mini-cart .gpay-button,a.wc-stripe-gpay-mini-cart .gpay-card-info-container a.wc-stripe-applepay-mini-cart .apple-pay-button{width:100%;margin:0}.wc-stripe-payment-request-mini-cart.StripeElement{padding:0;background:0 0;border:none;width:100%}.wc-stripe-payment-request-mini-cart.StripeElement .__PrivateStripeElement{width:100%}.widget_shopping_cart_content .wc-stripe-overlay{display:none!important;position:absolute;background:rgba(255,255,255,.75);height:100%;width:100%;z-index:-1}.widget_shopping_cart_content .wc-stripe-overlay.active{display:block!important;z-index:9999}.wc-stripe-klarna-loader{display:flex;justify-content:center;position:relative;width:100%;height:30px;box-sizing:border-box;transform:scale(.65)}.wc-stripe-klarna-loader div{box-sizing:border-box;display:block;position:absolute;box-sizing:border-box;width:30px;height:30px;border:3px solid #000;border-radius:50%;animation:klarna-payments-loader 1.3s cubic-bezier(.5,0,.5,1) infinite;border-color:#000 transparent transparent transparent}.wc-stripe-klarna-loader div:nth-child(1){animation-delay:-.45s}.wc-stripe-klarna-loader div:nth-child(2){animation-delay:-.3s}.wc-stripe-klarna-loader div:nth-child(3){animation-delay:-.15s}@keyframes klarna-payments-loader{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}li.payment_method_stripe_alipay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_applepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_bancontact.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_eps.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_giropay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_googlepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_grabpay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_multibanco.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_oxxo.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_p24.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_payment_request.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_sofort.wc-stripe-no-desc .payment_box.wc-stripe-no-methods{padding:0;margin:0}.wc-stripe-shortcode-cart-buttons .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:none}label[for=payment_method_stripe_afterpay]>#wc-stripe-afterpay-msg{display:inline-block}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .__PrivateStripeElement p,#wc-stripe-afterpay-product-msg .__PrivateStripeElement p,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p{margin-bottom:0!important;margin-top:0!important}#wc-stripe-afterpay-cart-msg .__PrivateStripeElement p .AfterpayMessage-logo,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p .AfterpayMessage-logo{vertical-align:middle}.payment_method_stripe_afterpay #wc_stripe_local_payment_stripe_afterpay.ineligible{display:none}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite{text-align:center;max-width:320px;margin:0 auto;padding:10px 0}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite img{display:inline-block}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite p{font-size:14px;margin-top:10px}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg{text-align:right}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .AfterpayMessage-logoSvg,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .AfterpayMessage-logoSvg{min-width:64px;max-width:90px}#wc-stripe-afterpay-cart-container td{border:none}#wc-stripe-afterpay-cart-container td::before{content:''}.AfterpayMessage-logoSvg{display:inline-block}#wc-stripe-afterpay-product-msg{font-size:14px}#wc-stripe-afterpay-product-msg .AfterpayMessage-logoSvg{max-width:80px;min-width:64px}.wc-stripe-afterpay-minicart-msg{font-size:.8em}.afterpay-ineligible,.payment_method_stripe_afterpay.afterpay-ineligible{display:none}.woocommerce-mini-cart__buttons .gpay-card-info-container{min-width:100%}.woocommerce-mini-cart__buttons .gpay-card-info-container{margin:0}.wc-stripe-boleto__description{margin-top:10px}.wc-stripe-boleto__description div{display:flex;align-items:center}.wc-stripe-boleto__description div label{margin:0}.wc-stripe-klarna__testmode{margin-top:10px}.wc-stripe-klarna__testmode label{display:inline-block}
1
+ .wc-stripe-card-icons-container,.wc-stripe-paymentRequest-icons-container{float:left;display:inline-block}ul.payment_methods li[class*=payment_method]{margin:0;padding:0}li[class*=payment_method] input[type=radio]{margin:0 5px 0 10px}li[class*=payment_method] input[type=radio]+label:not(.wc-stripe-label-payment-type){margin:0}.woocommerce-checkout #payment ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2),ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2){margin:0}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon{max-width:43px;max-height:26px;width:43px;height:26px;float:none;display:inline}li.payment_method_stripe_payment_request .wc-stripe-paymentRequest-icons-container img:not(.gpay){width:25px;height:25px;max-width:25px;max-height:25px}ul.payment_methods label[for*=payment_method_stripe]:after{clear:left;content:"";display:block}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon:nth-child(2n+2){margin:0 2px}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon.open.visa{padding-top:2px}ul.payment_methods li[class*=payment_method_stripe_] label>img:first-of-type{float:left!important}.wc-stripe_cc-new-method-container{margin-bottom:1em}.wc-stripe_cc-container .StripeElement{box-sizing:border-box;height:40px;padding:10px 12px;border-radius:4px;background-color:#fff;-webkit-transition:box-shadow 150ms ease;transition:box-shadow 150ms ease}input.wc-stripe-klarna-category,input.wc-stripe-payment-type{display:none!important}body .wfacp_main_form.woocommerce .wc-stripe-save-source label.checkbox{padding:0!important}input[type=radio]+label.wc-stripe-label-payment-type,label.wc-stripe-label-klarna-category,label.wc-stripe-label-payment-type{margin-bottom:1em;display:block;padding:0!important;color:#000}.theme-flatsome div.wc-stripe-saved-methods-container{margin:0 0 1em 0}label.wc-stripe-label-klarna-category:before,label.wc-stripe-label-payment-type:before{content:"";display:inline-block;width:11px;height:11px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5em;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}input.wc-stripe-klarna-category:checked+label.wc-stripe-label-klarna-category:before,input.wc-stripe-payment-type:checked+label.wc-stripe-label-payment-type:before{background:#000}label.wc-stripe-label-payment-type:after{content:none!important;display:none!important}.wc-stripe-saved-methods-container .select2-container .select2-selection--single .select2-selection__rendered{padding-right:8px}.select2-results__options li.wc-stripe-select2-container,.wc-stripe-saved-methods-container .select2-container .select2-selection--single .wc-stripe-select2-container{display:flex;align-items:center;height:42px;line-height:42px!important}.select2-container .select2-selection--single .wc-stripe-select2-container:before,.select2-results__options li.wc-stripe-select2-container:before{content:'';background-repeat:no-repeat;background-size:40px 24px;width:40px;height:42px;display:inline-block;margin-left:8px;background-position:center}.select2-container .select2-selection--single .wc-stripe-select2-container.visa:before,.select2-results__options li.wc-stripe-select2-container.visa:before{background-image:url(../img/cards/visa.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.americanexpress:before,.select2-results__options li.wc-stripe-select2-container.americanexpress:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.amex:before,.select2-results__options li.wc-stripe-select2-container.amex:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.discover:before,.select2-results__options li.wc-stripe-select2-container.discover:before{background-image:url(../img/cards/discover.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.dinersclub:before,.select2-results__options li.wc-stripe-select2-container.dinersclub:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.diners:before,.select2-results__options li.wc-stripe-select2-container.diners:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.jcb:before,.select2-results__options li.wc-stripe-select2-container.jcb:before{background-image:url(../img/cards/jcb.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.stripe_sepa:before,.select2-results__options li.wc-stripe-select2-container.stripe_sepa:before{background-image:url(../img/sepa.svg)}.select2-results__options li.wc-stripe-select2-container.wc-stripe-ach:before{display:none}#wc-stripe-card-element{margin-bottom:1em}.wc-stripe_cc-new-method-container .wc-stripe-save-source{display:flex;align-items:center;justify-content:flex-start}.wc-stripe_cc-container .wc-stripe-save-source .save-source-label{display:block;padding:0;margin:0 5px 0 0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]{opacity:0;position:absolute;width:20px;height:20px}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{position:relative}.wc-stripe_cc-container .save-source-checkbox{height:20px;width:20px;position:relative;background-color:#fff;display:block;border-radius:3px;border:1px solid #bababa}.wc-stripe_cc-container .save-source-checkbox:after{content:"";position:absolute;top:0;right:0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]:checked+.save-source-checkbox:after{right:6px;top:2px;width:7px;height:12px;border:solid #2196f3;border-width:0 0 3px 3px;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}li.payment_method_stripe_applepay,li.payment_method_stripe_googlepay,li.payment_method_stripe_payment_request{display:none}#payment #place_order.wc-stripe-hide,#place_order.wc-stripe-hide,.woocommerce-checkout-review-order #payment #place_order.wc-stripe-hide{position:absolute!important;z-index:-1000!important;height:0!important;padding:0!important;opacity:0!important}.wc-stripe-product-checkout-container{display:none;width:100%}.wc-stripe-product-checkout-container.bottom{margin-top:1em}.wc-stripe-product-checkout-container.top{margin-bottom:1em}.wc-stripe-product-checkout-container.active{display:block}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods{list-style:none;margin:0;padding:0}.wc-stripe-cart-checkout-container{margin:0;padding:0;clear:both}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods{margin-bottom:1.5em}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_],.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]{margin:0 0 1em 0;list-style:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_]:last-child,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]:last-child{margin:0}.wc_stripe_cart_payment_methods .gpay-button,.wc_stripe_cart_payment_methods .gpay-card-info-container,.wc_stripe_product_payment_methods .gpay-button,.wc_stripe_product_payment_methods .gpay-card-info-container{width:100%!important;margin:0}.wc_stripe_product_payment_methods .disabled{opacity:.45}.stripe_cart_gateway_active .checkout-button,.woocommerce-cart .stripe_cart_gateway_active .wc-proceed-to-checkout .checkout-button{margin-bottom:0}.wc-stripe-cart-or{margin:1em 0;text-align:center}li.wc-stripe-payment-method.or{display:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:block;margin:15px 0}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or p{margin:0}li[class*=payment_method_stripe_].active~li.wc-stripe-payment-method.or{display:block;margin:0}li.payment_method_stripe_applepay label:first-of-type img{width:49px;max-height:32px}li.payment_method_stripe_googlepay label:first-of-type img{width:48px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_standard],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_standard]{width:60px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_round_outline],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_round_outline]{width:56px;max-height:30px}li.payment_method_stripe_ach label:first-of-type img{width:32px;height:32px;min-width:32px;min-height:32px}.gpay-button-container .gpay-button:hover,.wc-stripe-checkout-banner-gateway .gpay-button:hover{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:active{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:focus{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}@supports (-webkit-appearance:-apple-pay-button){.apple-pay-button{display:block;-webkit-appearance:-apple-pay-button!important;width:100%;max-width:100%;min-width:200px;height:40px;max-height:40px}.apple-pay-button-black{-apple-pay-button-style:#000}.apple-pay-button-white{-apple-pay-button-style:#fff}.apple-pay-button-white-with-line{-apple-pay-button-style:white-outline}.applepay-top-container .apple-pay-button{max-width:240px}.woocommerce-checkout-payment .apple-pay-button{max-width:240px}body.single-product div.product form.cart .wc_stripe_product_payment_methods .apple-pay-button{max-width:100%}}.wc-stripe-banner-checkout{display:none;padding:20px 15px 0 15px;border:1px solid #d1d1d1;border-width:0 0 1px;position:relative;margin:1em 0}.wc-stripe-banner-checkout.active{display:block}.wc-stripe-banner-checkout span.banner-title{position:absolute;display:flex;align-items:center;top:-13px;left:0;right:0;background:0 0;white-space:nowrap;font-size:16px}.wc-stripe-banner-checkout span.banner-title:after,.wc-stripe-banner-checkout span.banner-title:before{content:' ';height:1px;background:#d1d1d1;display:block;width:50%}.wc-stripe-banner-checkout span.banner-title:before{margin-left:8px}.wc-stripe-banner-checkout span.banner-title:after{margin-right:8px}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways{list-style:none;margin:0;padding:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway{margin:0 0 20px 0;display:none}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-card-info-container{margin:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-card-info-container{width:100%}.wc_stripe_cart_payment_methods .payment_method_stripe_payment_request .StripeElement,.wc_stripe_product_payment_methods .payment_method_stripe_payment_request .StripeElement{padding:0;width:100%}.woocommerce-checkout #wc-stripe-payment-request-container.StripeElement{width:240px;padding:0}.wc-stripe-checkout-banner-gateway #wc-stripe-payment-request-banner.StripeElement{width:100%}ul.payment_methods li.payment_method_stripe_p24 img{max-width:90px;width:90px;max-height:45px}ul.payment_methods li.payment_method_stripe_ideal img{max-width:38px;width:38px;max-height:35px}ul.payment_methods li.payment_method_stripe_fpx img{max-width:75px;width:75px;max-height:25px}ul.payment_methods li.payment_method_stripe_klarna img{max-width:72px;width:72px;max-height:20px}ul.payment_methods li.payment_method_stripe_klarna img[src*=klarna_pink]{width:56px;height:32px;max-height:32px}ul.payment_methods li.payment_method_stripe_giropay img{max-width:65px;width:65px;max-height:28px}ul.payment_methods li.payment_method_stripe_eps img{max-width:70px;width:70px;max-height:46px}ul.payment_methods li.payment_method_stripe_multibanco img{max-width:48px;width:48px;max-height:48px}ul.payment_methods li.payment_method_stripe_sepa img{max-width:67px;width:67px;max-height:18px}ul.payment_methods li.payment_method_stripe_sofort img{max-width:70px;width:70px;max-height:21px}label[for=payment_method_stripe_bancontact] img,ul.payment_methods li.payment_method_stripe_bancontact img{width:60px;height:42px;max-width:60px;max-height:42px}ul.payment_methods li.payment_method_stripe_wechat label img{max-width:82px;width:82px;max-height:23px}ul.payment_methods li.payment_method_stripe_alipay img{max-width:72px;width:72px;height:36px;max-height:36px}ul.payment_methods li.payment_method_stripe_grabpay img{max-width:95px;width:95px;max-height:28px}#wc-stripe-card-element{width:100%}li.banner_payment_method_stripe_payment_request .StripeElement{padding:0}.single-product .blockMsg{border:none!important;background-color:transparent!important}#wc-stripe-card{position:absolute!important;top:50%;left:8px;transform:translatey(-50%);width:23px;height:15px;padding:0;border:none}#wc-stripe-card.active{width:32px;height:20px}input[id=stripe-postal-code]:focus{outline:0;background:0 0;border:none;box-shadow:none}div.postalCode:focus{outline:0;border:none}li[class*=payment_method_stripe] .select2-container .select2-selection--single{height:42px;padding:0 5px}li[class*=payment_method_stripe] .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;top:1px;left:1px;transform:translateY(0)}.blockUI.blockMsg{font-size:20px;white-space:nowrap}#wc-stripe-payment-request-container.disabled{opacity:.45}.wc-stripe-paymentRequest-icons-container img{float:none}.select2-container .select2-selection--single .wc-stripe-select2-container.wc-stripe-ach:before{display:none}ul.wc_stripe_cart_payment_methods li.wc-stripe-payment-method button,ul.wc_stripe_checkout_banner_gateways li button,ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_] button{margin:0}ul.payment_methods li[class*=payment_method]{margin:0;padding:10px 0}ul.payment_methods li[class*=payment_method] input[name=payment_method]{margin:0 5px 0 10px;float:none}ul.payment_methods li[class*=payment_method]>input[name=payment_method]+label{padding-top:0;padding-left:0;padding-bottom:0}ul.payment_methods{list-style:none}ul.payment_methods li[class*=payment_method_stripe_] .wc-stripe_cc-new-method-container label:before{display:none}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{padding:0!important;margin:0}div[id*=wc_stripe_local_payment_stripe_].StripeElement{border:1px solid #eee;border-radius:4px}#payment .payment_methods li #wc_stripe_local_payment_stripe_wechat img,#wc_stripe_local_payment_stripe_wechat img{max-height:100%;float:none}.qrcode-message{margin:10px 0 0 0}#wc_stripe_local_payment_stripe_becs,#wc_stripe_local_payment_stripe_sepa{padding:10px 12px;box-shadow:0 1px 3px 0 #e6ebf1}.wc-stripe-local-desc.stripe_becs,.wc-stripe-local-desc.stripe_sepa{margin:10px 0}.wc-stripe-clear{clear:both;height:0;visibility:hidden}.wc-stripe-gateway-desc p{margin:0}#wc_stripe_local_payment_stripe_klarna,li[class*=payment_method_stripe_] div.wc-stripe-gateway-container.has_tokens{margin-top:10px}.wc-stripe-gateway-desc{margin-top:10px}#wc-stripe-card-element.StripeElement--webkit-autofill{background-color:transparent!important}#wc_stripe_local_payment_stripe_klarna .stripe-klarna-categories{list-style:none;margin:0;padding:10px}li.payment_method_stripe_alipay,li.payment_method_stripe_bancontact,li.payment_method_stripe_becs,li.payment_method_stripe_eps,li.payment_method_stripe_fpx,li.payment_method_stripe_giropay,li.payment_method_stripe_ideal,li.payment_method_stripe_klarna,li.payment_method_stripe_multibanco,li.payment_method_stripe_p24,li.payment_method_stripe_sepa,li.payment_method_stripe_sofort,li.payment_method_stripe_wechat{display:none}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods{list-style:none;margin:0;padding:0}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods li{margin:0}.widget_shopping_cart_content a.wc-stripe-applepay-mini-cart,.widget_shopping_cart_content a.wc-stripe-gpay-mini-cart,.widget_shopping_cart_content a.wc-stripe-payment-request-mini-cart{background:0 0;padding:0;border:none}a.wc-stripe-gpay-mini-cart .gpay-button,a.wc-stripe-gpay-mini-cart .gpay-card-info-container a.wc-stripe-applepay-mini-cart .apple-pay-button{width:100%;margin:0}.wc-stripe-payment-request-mini-cart.StripeElement{padding:0;background:0 0;border:none;width:100%}.wc-stripe-payment-request-mini-cart.StripeElement .__PrivateStripeElement{width:100%}.widget_shopping_cart_content .wc-stripe-overlay{display:none!important;position:absolute;background:rgba(255,255,255,.75);height:100%;width:100%;z-index:-1}.widget_shopping_cart_content .wc-stripe-overlay.active{display:block!important;z-index:9999}.wc-stripe-klarna-loader{display:flex;justify-content:center;position:relative;width:100%;height:30px;box-sizing:border-box;transform:scale(.65)}.wc-stripe-klarna-loader div{box-sizing:border-box;display:block;position:absolute;box-sizing:border-box;width:30px;height:30px;border:3px solid #000;border-radius:50%;animation:klarna-payments-loader 1.3s cubic-bezier(.5,0,.5,1) infinite;border-color:#000 transparent transparent transparent}.wc-stripe-klarna-loader div:nth-child(1){animation-delay:-.45s}.wc-stripe-klarna-loader div:nth-child(2){animation-delay:-.3s}.wc-stripe-klarna-loader div:nth-child(3){animation-delay:-.15s}@keyframes klarna-payments-loader{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}li.payment_method_stripe_alipay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_applepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_bancontact.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_eps.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_giropay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_googlepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_grabpay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_multibanco.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_oxxo.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_p24.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_payment_request.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_sofort.wc-stripe-no-desc .payment_box.wc-stripe-no-methods{padding:0;margin:0}.wc-stripe-shortcode-cart-buttons .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:none}label[for=payment_method_stripe_afterpay]>#wc-stripe-afterpay-msg{display:inline-block}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .__PrivateStripeElement p,#wc-stripe-afterpay-product-msg .__PrivateStripeElement p,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p{margin-bottom:0!important;margin-top:0!important}#wc-stripe-afterpay-cart-msg .__PrivateStripeElement p .AfterpayMessage-logo,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p .AfterpayMessage-logo{vertical-align:middle}.payment_method_stripe_afterpay #wc_stripe_local_payment_stripe_afterpay.ineligible{display:none}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite{text-align:center;max-width:320px;margin:0 auto;padding:10px 0}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite img{display:inline-block}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite p{font-size:14px;margin-top:10px}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg{text-align:right}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .AfterpayMessage-logoSvg,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .AfterpayMessage-logoSvg{min-width:64px;max-width:90px}#wc-stripe-afterpay-cart-container td{border:none}#wc-stripe-afterpay-cart-container td::before{content:''}.AfterpayMessage-logoSvg{display:inline-block}#wc-stripe-afterpay-product-msg{font-size:14px}#wc-stripe-afterpay-product-msg .AfterpayMessage-logoSvg{max-width:80px;min-width:64px}.wc-stripe-afterpay-minicart-msg{font-size:.8em}.afterpay-ineligible,.payment_method_stripe_afterpay.afterpay-ineligible{display:none}.woocommerce-mini-cart__buttons .gpay-card-info-container{min-width:100%}.woocommerce-mini-cart__buttons .gpay-card-info-container{margin:0}.wc-stripe-boleto__description{margin-top:10px}.wc-stripe-boleto__description div{display:flex;align-items:center}.wc-stripe-boleto__description div label{margin:0}.wc-stripe-klarna__testmode{margin-top:10px}.wc-stripe-klarna__testmode label{display:inline-block}
assets/css/stripe.min.css CHANGED
@@ -1 +1 @@
1
- .wc-stripe-card-icons-container,.wc-stripe-paymentRequest-icons-container{float:right;display:inline-block}ul.payment_methods li[class*=payment_method]{margin:0;padding:0}li[class*=payment_method] input[type=radio]{margin:0 10px 0 5px}li[class*=payment_method] input[type=radio]+label:not(.wc-stripe-label-payment-type){margin:0}.woocommerce-checkout #payment ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2),ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2){margin:0}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon{max-width:43px;max-height:26px;width:43px;height:26px;float:none;display:inline}li.payment_method_stripe_payment_request .wc-stripe-paymentRequest-icons-container img:not(.gpay){width:25px;height:25px;max-width:25px;max-height:25px}ul.payment_methods label[for*=payment_method_stripe]:after{clear:right;content:"";display:block}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon:nth-child(2n+2){margin:0 2px}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon.open.visa{padding-top:2px}ul.payment_methods li[class*=payment_method_stripe_] label>img:first-of-type{float:right!important}.wc-stripe_cc-new-method-container{margin-bottom:1em}.wc-stripe_cc-container .StripeElement{box-sizing:border-box;height:40px;padding:10px 12px;border-radius:4px;background-color:#fff;-webkit-transition:box-shadow 150ms ease;transition:box-shadow 150ms ease}input.wc-stripe-klarna-category,input.wc-stripe-payment-type{display:none!important}body .wfacp_main_form.woocommerce .wc-stripe-save-source label.checkbox{padding:0!important}input[type=radio]+label.wc-stripe-label-payment-type,label.wc-stripe-label-klarna-category,label.wc-stripe-label-payment-type{margin-bottom:1em;display:block;padding:0!important;color:#000}.theme-flatsome div.wc-stripe-saved-methods-container{margin:0 0 1em 0}label.wc-stripe-label-klarna-category:before,label.wc-stripe-label-payment-type:before{content:"";display:inline-block;width:11px;height:11px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5em;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}input.wc-stripe-klarna-category:checked+label.wc-stripe-label-klarna-category:before,input.wc-stripe-payment-type:checked+label.wc-stripe-label-payment-type:before{background:#000}label.wc-stripe-label-payment-type:after{content:none!important;display:none!important}.wc-stripe-saved-methods-container .select2-container .select2-selection--single .select2-selection__rendered{padding-left:8px}.select2-results__options li.wc-stripe-select2-container,.wc-stripe-saved-methods-container .select2-container .select2-selection--single .wc-stripe-select2-container{display:flex;align-items:center;height:42px;line-height:42px!important}.select2-container .select2-selection--single .wc-stripe-select2-container:before,.select2-results__options li.wc-stripe-select2-container:before{content:'';background-repeat:no-repeat;background-size:40px 24px;width:40px;height:42px;display:inline-block;margin-right:8px;background-position:center}.select2-container .select2-selection--single .wc-stripe-select2-container.visa:before,.select2-results__options li.wc-stripe-select2-container.visa:before{background-image:url(../img/cards/visa.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.americanexpress:before,.select2-results__options li.wc-stripe-select2-container.americanexpress:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.amex:before,.select2-results__options li.wc-stripe-select2-container.amex:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.discover:before,.select2-results__options li.wc-stripe-select2-container.discover:before{background-image:url(../img/cards/discover.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.dinersclub:before,.select2-results__options li.wc-stripe-select2-container.dinersclub:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.diners:before,.select2-results__options li.wc-stripe-select2-container.diners:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.jcb:before,.select2-results__options li.wc-stripe-select2-container.jcb:before{background-image:url(../img/cards/jcb.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.stripe_sepa:before,.select2-results__options li.wc-stripe-select2-container.stripe_sepa:before{background-image:url(../img/sepa.svg)}.select2-results__options li.wc-stripe-select2-container.wc-stripe-ach:before{display:none}#wc-stripe-card-element{margin-bottom:1em}.wc-stripe_cc-new-method-container .wc-stripe-save-source{display:flex;align-items:center;justify-content:flex-start}.wc-stripe_cc-container .wc-stripe-save-source .save-source-label{display:block;padding:0;margin:0 0 0 5px}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]{opacity:0;position:absolute;width:20px;height:20px}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{position:relative}.wc-stripe_cc-container .save-source-checkbox{height:20px;width:20px;position:relative;background-color:#fff;display:block;border-radius:3px;border:1px solid #bababa}.wc-stripe_cc-container .save-source-checkbox:after{content:"";position:absolute;top:0;left:0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]:checked+.save-source-checkbox:after{left:6px;top:2px;width:7px;height:12px;border:solid #2196f3;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}li.payment_method_stripe_applepay,li.payment_method_stripe_googlepay,li.payment_method_stripe_payment_request{display:none}#payment #place_order.wc-stripe-hide,#place_order.wc-stripe-hide,.woocommerce-checkout-review-order #payment #place_order.wc-stripe-hide{position:absolute!important;z-index:-1000!important;height:0!important;padding:0!important;opacity:0!important}.wc-stripe-product-checkout-container{display:none;width:100%}.wc-stripe-product-checkout-container.bottom{margin-top:1em}.wc-stripe-product-checkout-container.top{margin-bottom:1em}.wc-stripe-product-checkout-container.active{display:block}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods{list-style:none;margin:0;padding:0}.wc-stripe-cart-checkout-container{margin:0;padding:0;clear:both}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods{margin-bottom:1.5em}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_],.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]{margin:0 0 1em 0;list-style:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_]:last-child,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]:last-child{margin:0}.wc_stripe_cart_payment_methods .gpay-button,.wc_stripe_cart_payment_methods .gpay-card-info-container,.wc_stripe_product_payment_methods .gpay-button,.wc_stripe_product_payment_methods .gpay-card-info-container{width:100%!important;margin:0}.wc_stripe_product_payment_methods .disabled{opacity:.45}.stripe_cart_gateway_active .checkout-button,.woocommerce-cart .stripe_cart_gateway_active .wc-proceed-to-checkout .checkout-button{margin-bottom:0}.wc-stripe-cart-or{margin:1em 0;text-align:center}li.wc-stripe-payment-method.or{display:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:block;margin:15px 0}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or p{margin:0}li[class*=payment_method_stripe_].active~li.wc-stripe-payment-method.or{display:block;margin:0}li.payment_method_stripe_applepay label:first-of-type img{width:49px;max-height:32px}li.payment_method_stripe_googlepay label:first-of-type img{width:48px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_standard],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_standard]{width:60px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_round_outline],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_round_outline]{width:56px;max-height:30px}li.payment_method_stripe_ach label:first-of-type img{width:32px;height:32px;min-width:32px;min-height:32px}.gpay-button-container .gpay-button:hover{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:active{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:focus{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}@supports (-webkit-appearance:-apple-pay-button){.apple-pay-button{display:block;-webkit-appearance:-apple-pay-button!important;width:100%;max-width:100%;min-width:200px;height:40px;max-height:40px}.apple-pay-button-black{-apple-pay-button-style:#000}.apple-pay-button-white{-apple-pay-button-style:#fff}.apple-pay-button-white-with-line{-apple-pay-button-style:white-outline}.applepay-top-container .apple-pay-button{max-width:240px}.woocommerce-checkout-payment .apple-pay-button{max-width:240px}body.single-product div.product form.cart .wc_stripe_product_payment_methods .apple-pay-button{max-width:100%}}.wc-stripe-banner-checkout{display:none;padding:20px 15px 0 15px;border:1px solid #d1d1d1;border-width:0 0 1px;position:relative;margin:1em 0}.wc-stripe-banner-checkout.active{display:block}.wc-stripe-banner-checkout span.banner-title{position:absolute;display:flex;align-items:center;top:-13px;right:0;left:0;background:0 0;white-space:nowrap;font-size:16px}.wc-stripe-banner-checkout span.banner-title:after,.wc-stripe-banner-checkout span.banner-title:before{content:' ';height:1px;background:#d1d1d1;display:block;width:50%}.wc-stripe-banner-checkout span.banner-title:before{margin-right:8px}.wc-stripe-banner-checkout span.banner-title:after{margin-left:8px}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways{list-style:none;margin:0;padding:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway{margin:0 0 20px 0;display:none}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-card-info-container{margin:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-card-info-container{width:100%}.wc_stripe_cart_payment_methods .payment_method_stripe_payment_request .StripeElement,.wc_stripe_product_payment_methods .payment_method_stripe_payment_request .StripeElement{padding:0;width:100%}.woocommerce-checkout #wc-stripe-payment-request-container.StripeElement{width:240px;padding:0}.wc-stripe-checkout-banner-gateway #wc-stripe-payment-request-banner.StripeElement{width:100%}ul.payment_methods li.payment_method_stripe_p24 img{max-width:90px;width:90px;max-height:45px}ul.payment_methods li.payment_method_stripe_ideal img{max-width:38px;width:38px;max-height:35px}ul.payment_methods li.payment_method_stripe_fpx img{max-width:75px;width:75px;max-height:25px}ul.payment_methods li.payment_method_stripe_klarna img{max-width:72px;width:72px;max-height:20px}ul.payment_methods li.payment_method_stripe_klarna img[src*=klarna_pink]{width:56px;height:32px;max-height:32px}ul.payment_methods li.payment_method_stripe_giropay img{max-width:65px;width:65px;max-height:28px}ul.payment_methods li.payment_method_stripe_eps img{max-width:70px;width:70px;max-height:46px}ul.payment_methods li.payment_method_stripe_multibanco img{max-width:48px;width:48px;max-height:48px}ul.payment_methods li.payment_method_stripe_sepa img{max-width:67px;width:67px;max-height:18px}ul.payment_methods li.payment_method_stripe_sofort img{max-width:70px;width:70px;max-height:21px}label[for=payment_method_stripe_bancontact] img,ul.payment_methods li.payment_method_stripe_bancontact img{width:60px;height:42px;max-width:60px;max-height:42px}ul.payment_methods li.payment_method_stripe_wechat label img{max-width:82px;width:82px;max-height:23px}ul.payment_methods li.payment_method_stripe_alipay img{max-width:72px;width:72px;height:36px;max-height:36px}ul.payment_methods li.payment_method_stripe_grabpay img{max-width:95px;width:95px;max-height:28px}#wc-stripe-card-element{width:100%}li.banner_payment_method_stripe_payment_request .StripeElement{padding:0}.single-product .blockMsg{border:none!important;background-color:transparent!important}#wc-stripe-card{position:absolute!important;top:50%;right:8px;transform:translatey(-50%);width:23px;height:15px;padding:0;border:none}#wc-stripe-card.active{width:32px;height:20px}input[id=stripe-postal-code]:focus{outline:0;background:0 0;border:none;box-shadow:none}div.postalCode:focus{outline:0;border:none}li[class*=payment_method_stripe] .select2-container .select2-selection--single{height:42px;padding:0 5px}li[class*=payment_method_stripe] .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;top:1px;right:1px;transform:translateY(0)}.blockUI.blockMsg{font-size:20px;white-space:nowrap}#wc-stripe-payment-request-container.disabled{opacity:.45}.wc-stripe-paymentRequest-icons-container img{float:none}.select2-container .select2-selection--single .wc-stripe-select2-container.wc-stripe-ach:before{display:none}ul.wc_stripe_cart_payment_methods li.wc-stripe-payment-method button,ul.wc_stripe_checkout_banner_gateways li button,ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_] button{margin:0}ul.payment_methods li[class*=payment_method]{margin:0;padding:10px 0}ul.payment_methods li[class*=payment_method] input[name=payment_method]{margin:0 10px 0 5px;float:none}ul.payment_methods li[class*=payment_method]>input[name=payment_method]+label{padding-top:0;padding-right:0;padding-bottom:0}ul.payment_methods{list-style:none}ul.payment_methods li[class*=payment_method_stripe_] .wc-stripe_cc-new-method-container label:before{display:none}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{padding:0!important;margin:0}div[id*=wc_stripe_local_payment_stripe_].StripeElement{border:1px solid #eee;border-radius:4px}#payment .payment_methods li #wc_stripe_local_payment_stripe_wechat img,#wc_stripe_local_payment_stripe_wechat img{max-height:100%;float:none}.qrcode-message{margin:10px 0 0 0}#wc_stripe_local_payment_stripe_becs,#wc_stripe_local_payment_stripe_sepa{padding:10px 12px;box-shadow:0 1px 3px 0 #e6ebf1}.wc-stripe-local-desc.stripe_becs,.wc-stripe-local-desc.stripe_sepa{margin:10px 0}.wc-stripe-clear{clear:both;height:0;visibility:hidden}.wc-stripe-gateway-desc p{margin:0}#wc_stripe_local_payment_stripe_klarna,li[class*=payment_method_stripe_] div.wc-stripe-gateway-container.has_tokens{margin-top:10px}.wc-stripe-gateway-desc{margin-top:10px}#wc-stripe-card-element.StripeElement--webkit-autofill{background-color:transparent!important}#wc_stripe_local_payment_stripe_klarna .stripe-klarna-categories{list-style:none;margin:0;padding:10px}li.payment_method_stripe_alipay,li.payment_method_stripe_bancontact,li.payment_method_stripe_becs,li.payment_method_stripe_eps,li.payment_method_stripe_fpx,li.payment_method_stripe_giropay,li.payment_method_stripe_ideal,li.payment_method_stripe_klarna,li.payment_method_stripe_multibanco,li.payment_method_stripe_p24,li.payment_method_stripe_sepa,li.payment_method_stripe_sofort,li.payment_method_stripe_wechat{display:none}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods{list-style:none;margin:0;padding:0}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods li{margin:0}.widget_shopping_cart_content a.wc-stripe-applepay-mini-cart,.widget_shopping_cart_content a.wc-stripe-gpay-mini-cart,.widget_shopping_cart_content a.wc-stripe-payment-request-mini-cart{background:0 0;padding:0;border:none}a.wc-stripe-gpay-mini-cart .gpay-button,a.wc-stripe-gpay-mini-cart .gpay-card-info-container a.wc-stripe-applepay-mini-cart .apple-pay-button{width:100%;margin:0}.wc-stripe-payment-request-mini-cart.StripeElement{padding:0;background:0 0;border:none;width:100%}.wc-stripe-payment-request-mini-cart.StripeElement .__PrivateStripeElement{width:100%}.widget_shopping_cart_content .wc-stripe-overlay{display:none!important;position:absolute;background:rgba(255,255,255,.75);height:100%;width:100%;z-index:-1}.widget_shopping_cart_content .wc-stripe-overlay.active{display:block!important;z-index:9999}.wc-stripe-klarna-loader{display:flex;justify-content:center;position:relative;width:100%;height:30px;box-sizing:border-box;transform:scale(.65)}.wc-stripe-klarna-loader div{box-sizing:border-box;display:block;position:absolute;box-sizing:border-box;width:30px;height:30px;border:3px solid #000;border-radius:50%;animation:klarna-payments-loader 1.3s cubic-bezier(.5,0,.5,1) infinite;border-color:#000 transparent transparent transparent}.wc-stripe-klarna-loader div:nth-child(1){animation-delay:-.45s}.wc-stripe-klarna-loader div:nth-child(2){animation-delay:-.3s}.wc-stripe-klarna-loader div:nth-child(3){animation-delay:-.15s}@keyframes klarna-payments-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}li.payment_method_stripe_alipay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_applepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_bancontact.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_eps.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_giropay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_googlepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_grabpay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_multibanco.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_oxxo.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_p24.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_payment_request.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_sofort.wc-stripe-no-desc .payment_box.wc-stripe-no-methods{padding:0;margin:0}.wc-stripe-shortcode-cart-buttons .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:none}label[for=payment_method_stripe_afterpay]>#wc-stripe-afterpay-msg{display:inline-block}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .__PrivateStripeElement p,#wc-stripe-afterpay-product-msg .__PrivateStripeElement p,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p{margin-bottom:0!important;margin-top:0!important}#wc-stripe-afterpay-cart-msg .__PrivateStripeElement p .AfterpayMessage-logo,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p .AfterpayMessage-logo{vertical-align:middle}.payment_method_stripe_afterpay #wc_stripe_local_payment_stripe_afterpay.ineligible{display:none}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite{text-align:center;max-width:320px;margin:0 auto;padding:10px 0}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite img{display:inline-block}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite p{font-size:14px;margin-top:10px}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg{text-align:left}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .AfterpayMessage-logoSvg,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .AfterpayMessage-logoSvg{min-width:64px;max-width:90px}#wc-stripe-afterpay-cart-container td{border:none}#wc-stripe-afterpay-cart-container td::before{content:''}.AfterpayMessage-logoSvg{display:inline-block}#wc-stripe-afterpay-product-msg{font-size:14px}#wc-stripe-afterpay-product-msg .AfterpayMessage-logoSvg{max-width:80px;min-width:64px}.wc-stripe-afterpay-minicart-msg{font-size:.8em}.afterpay-ineligible,.payment_method_stripe_afterpay.afterpay-ineligible{display:none}.woocommerce-mini-cart__buttons .gpay-card-info-container{min-width:100%}.woocommerce-mini-cart__buttons .gpay-card-info-container{margin:0}.wc-stripe-boleto__description{margin-top:10px}.wc-stripe-boleto__description div{display:flex;align-items:center}.wc-stripe-boleto__description div label{margin:0}.wc-stripe-klarna__testmode{margin-top:10px}.wc-stripe-klarna__testmode label{display:inline-block}
1
+ .wc-stripe-card-icons-container,.wc-stripe-paymentRequest-icons-container{float:right;display:inline-block}ul.payment_methods li[class*=payment_method]{margin:0;padding:0}li[class*=payment_method] input[type=radio]{margin:0 10px 0 5px}li[class*=payment_method] input[type=radio]+label:not(.wc-stripe-label-payment-type){margin:0}.woocommerce-checkout #payment ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2),ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2){margin:0}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon{max-width:43px;max-height:26px;width:43px;height:26px;float:none;display:inline}li.payment_method_stripe_payment_request .wc-stripe-paymentRequest-icons-container img:not(.gpay){width:25px;height:25px;max-width:25px;max-height:25px}ul.payment_methods label[for*=payment_method_stripe]:after{clear:right;content:"";display:block}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon:nth-child(2n+2){margin:0 2px}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon.open.visa{padding-top:2px}ul.payment_methods li[class*=payment_method_stripe_] label>img:first-of-type{float:right!important}.wc-stripe_cc-new-method-container{margin-bottom:1em}.wc-stripe_cc-container .StripeElement{box-sizing:border-box;height:40px;padding:10px 12px;border-radius:4px;background-color:#fff;-webkit-transition:box-shadow 150ms ease;transition:box-shadow 150ms ease}input.wc-stripe-klarna-category,input.wc-stripe-payment-type{display:none!important}body .wfacp_main_form.woocommerce .wc-stripe-save-source label.checkbox{padding:0!important}input[type=radio]+label.wc-stripe-label-payment-type,label.wc-stripe-label-klarna-category,label.wc-stripe-label-payment-type{margin-bottom:1em;display:block;padding:0!important;color:#000}.theme-flatsome div.wc-stripe-saved-methods-container{margin:0 0 1em 0}label.wc-stripe-label-klarna-category:before,label.wc-stripe-label-payment-type:before{content:"";display:inline-block;width:11px;height:11px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5em;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}input.wc-stripe-klarna-category:checked+label.wc-stripe-label-klarna-category:before,input.wc-stripe-payment-type:checked+label.wc-stripe-label-payment-type:before{background:#000}label.wc-stripe-label-payment-type:after{content:none!important;display:none!important}.wc-stripe-saved-methods-container .select2-container .select2-selection--single .select2-selection__rendered{padding-left:8px}.select2-results__options li.wc-stripe-select2-container,.wc-stripe-saved-methods-container .select2-container .select2-selection--single .wc-stripe-select2-container{display:flex;align-items:center;height:42px;line-height:42px!important}.select2-container .select2-selection--single .wc-stripe-select2-container:before,.select2-results__options li.wc-stripe-select2-container:before{content:'';background-repeat:no-repeat;background-size:40px 24px;width:40px;height:42px;display:inline-block;margin-right:8px;background-position:center}.select2-container .select2-selection--single .wc-stripe-select2-container.visa:before,.select2-results__options li.wc-stripe-select2-container.visa:before{background-image:url(../img/cards/visa.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.americanexpress:before,.select2-results__options li.wc-stripe-select2-container.americanexpress:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.amex:before,.select2-results__options li.wc-stripe-select2-container.amex:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.discover:before,.select2-results__options li.wc-stripe-select2-container.discover:before{background-image:url(../img/cards/discover.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.dinersclub:before,.select2-results__options li.wc-stripe-select2-container.dinersclub:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.diners:before,.select2-results__options li.wc-stripe-select2-container.diners:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.jcb:before,.select2-results__options li.wc-stripe-select2-container.jcb:before{background-image:url(../img/cards/jcb.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.stripe_sepa:before,.select2-results__options li.wc-stripe-select2-container.stripe_sepa:before{background-image:url(../img/sepa.svg)}.select2-results__options li.wc-stripe-select2-container.wc-stripe-ach:before{display:none}#wc-stripe-card-element{margin-bottom:1em}.wc-stripe_cc-new-method-container .wc-stripe-save-source{display:flex;align-items:center;justify-content:flex-start}.wc-stripe_cc-container .wc-stripe-save-source .save-source-label{display:block;padding:0;margin:0 0 0 5px}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]{opacity:0;position:absolute;width:20px;height:20px}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{position:relative}.wc-stripe_cc-container .save-source-checkbox{height:20px;width:20px;position:relative;background-color:#fff;display:block;border-radius:3px;border:1px solid #bababa}.wc-stripe_cc-container .save-source-checkbox:after{content:"";position:absolute;top:0;left:0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]:checked+.save-source-checkbox:after{left:6px;top:2px;width:7px;height:12px;border:solid #2196f3;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}li.payment_method_stripe_applepay,li.payment_method_stripe_googlepay,li.payment_method_stripe_payment_request{display:none}#payment #place_order.wc-stripe-hide,#place_order.wc-stripe-hide,.woocommerce-checkout-review-order #payment #place_order.wc-stripe-hide{position:absolute!important;z-index:-1000!important;height:0!important;padding:0!important;opacity:0!important}.wc-stripe-product-checkout-container{display:none;width:100%}.wc-stripe-product-checkout-container.bottom{margin-top:1em}.wc-stripe-product-checkout-container.top{margin-bottom:1em}.wc-stripe-product-checkout-container.active{display:block}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods{list-style:none;margin:0;padding:0}.wc-stripe-cart-checkout-container{margin:0;padding:0;clear:both}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods{margin-bottom:1.5em}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_],.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]{margin:0 0 1em 0;list-style:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_]:last-child,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]:last-child{margin:0}.wc_stripe_cart_payment_methods .gpay-button,.wc_stripe_cart_payment_methods .gpay-card-info-container,.wc_stripe_product_payment_methods .gpay-button,.wc_stripe_product_payment_methods .gpay-card-info-container{width:100%!important;margin:0}.wc_stripe_product_payment_methods .disabled{opacity:.45}.stripe_cart_gateway_active .checkout-button,.woocommerce-cart .stripe_cart_gateway_active .wc-proceed-to-checkout .checkout-button{margin-bottom:0}.wc-stripe-cart-or{margin:1em 0;text-align:center}li.wc-stripe-payment-method.or{display:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:block;margin:15px 0}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or p{margin:0}li[class*=payment_method_stripe_].active~li.wc-stripe-payment-method.or{display:block;margin:0}li.payment_method_stripe_applepay label:first-of-type img{width:49px;max-height:32px}li.payment_method_stripe_googlepay label:first-of-type img{width:48px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_standard],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_standard]{width:60px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_round_outline],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_round_outline]{width:56px;max-height:30px}li.payment_method_stripe_ach label:first-of-type img{width:32px;height:32px;min-width:32px;min-height:32px}.gpay-button-container .gpay-button:hover,.wc-stripe-checkout-banner-gateway .gpay-button:hover{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:active{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:focus{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}@supports (-webkit-appearance:-apple-pay-button){.apple-pay-button{display:block;-webkit-appearance:-apple-pay-button!important;width:100%;max-width:100%;min-width:200px;height:40px;max-height:40px}.apple-pay-button-black{-apple-pay-button-style:#000}.apple-pay-button-white{-apple-pay-button-style:#fff}.apple-pay-button-white-with-line{-apple-pay-button-style:white-outline}.applepay-top-container .apple-pay-button{max-width:240px}.woocommerce-checkout-payment .apple-pay-button{max-width:240px}body.single-product div.product form.cart .wc_stripe_product_payment_methods .apple-pay-button{max-width:100%}}.wc-stripe-banner-checkout{display:none;padding:20px 15px 0 15px;border:1px solid #d1d1d1;border-width:0 0 1px;position:relative;margin:1em 0}.wc-stripe-banner-checkout.active{display:block}.wc-stripe-banner-checkout span.banner-title{position:absolute;display:flex;align-items:center;top:-13px;right:0;left:0;background:0 0;white-space:nowrap;font-size:16px}.wc-stripe-banner-checkout span.banner-title:after,.wc-stripe-banner-checkout span.banner-title:before{content:' ';height:1px;background:#d1d1d1;display:block;width:50%}.wc-stripe-banner-checkout span.banner-title:before{margin-right:8px}.wc-stripe-banner-checkout span.banner-title:after{margin-left:8px}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways{list-style:none;margin:0;padding:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway{margin:0 0 20px 0;display:none}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-card-info-container{margin:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-card-info-container{width:100%}.wc_stripe_cart_payment_methods .payment_method_stripe_payment_request .StripeElement,.wc_stripe_product_payment_methods .payment_method_stripe_payment_request .StripeElement{padding:0;width:100%}.woocommerce-checkout #wc-stripe-payment-request-container.StripeElement{width:240px;padding:0}.wc-stripe-checkout-banner-gateway #wc-stripe-payment-request-banner.StripeElement{width:100%}ul.payment_methods li.payment_method_stripe_p24 img{max-width:90px;width:90px;max-height:45px}ul.payment_methods li.payment_method_stripe_ideal img{max-width:38px;width:38px;max-height:35px}ul.payment_methods li.payment_method_stripe_fpx img{max-width:75px;width:75px;max-height:25px}ul.payment_methods li.payment_method_stripe_klarna img{max-width:72px;width:72px;max-height:20px}ul.payment_methods li.payment_method_stripe_klarna img[src*=klarna_pink]{width:56px;height:32px;max-height:32px}ul.payment_methods li.payment_method_stripe_giropay img{max-width:65px;width:65px;max-height:28px}ul.payment_methods li.payment_method_stripe_eps img{max-width:70px;width:70px;max-height:46px}ul.payment_methods li.payment_method_stripe_multibanco img{max-width:48px;width:48px;max-height:48px}ul.payment_methods li.payment_method_stripe_sepa img{max-width:67px;width:67px;max-height:18px}ul.payment_methods li.payment_method_stripe_sofort img{max-width:70px;width:70px;max-height:21px}label[for=payment_method_stripe_bancontact] img,ul.payment_methods li.payment_method_stripe_bancontact img{width:60px;height:42px;max-width:60px;max-height:42px}ul.payment_methods li.payment_method_stripe_wechat label img{max-width:82px;width:82px;max-height:23px}ul.payment_methods li.payment_method_stripe_alipay img{max-width:72px;width:72px;height:36px;max-height:36px}ul.payment_methods li.payment_method_stripe_grabpay img{max-width:95px;width:95px;max-height:28px}#wc-stripe-card-element{width:100%}li.banner_payment_method_stripe_payment_request .StripeElement{padding:0}.single-product .blockMsg{border:none!important;background-color:transparent!important}#wc-stripe-card{position:absolute!important;top:50%;right:8px;transform:translatey(-50%);width:23px;height:15px;padding:0;border:none}#wc-stripe-card.active{width:32px;height:20px}input[id=stripe-postal-code]:focus{outline:0;background:0 0;border:none;box-shadow:none}div.postalCode:focus{outline:0;border:none}li[class*=payment_method_stripe] .select2-container .select2-selection--single{height:42px;padding:0 5px}li[class*=payment_method_stripe] .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;top:1px;right:1px;transform:translateY(0)}.blockUI.blockMsg{font-size:20px;white-space:nowrap}#wc-stripe-payment-request-container.disabled{opacity:.45}.wc-stripe-paymentRequest-icons-container img{float:none}.select2-container .select2-selection--single .wc-stripe-select2-container.wc-stripe-ach:before{display:none}ul.wc_stripe_cart_payment_methods li.wc-stripe-payment-method button,ul.wc_stripe_checkout_banner_gateways li button,ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_] button{margin:0}ul.payment_methods li[class*=payment_method]{margin:0;padding:10px 0}ul.payment_methods li[class*=payment_method] input[name=payment_method]{margin:0 10px 0 5px;float:none}ul.payment_methods li[class*=payment_method]>input[name=payment_method]+label{padding-top:0;padding-right:0;padding-bottom:0}ul.payment_methods{list-style:none}ul.payment_methods li[class*=payment_method_stripe_] .wc-stripe_cc-new-method-container label:before{display:none}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{padding:0!important;margin:0}div[id*=wc_stripe_local_payment_stripe_].StripeElement{border:1px solid #eee;border-radius:4px}#payment .payment_methods li #wc_stripe_local_payment_stripe_wechat img,#wc_stripe_local_payment_stripe_wechat img{max-height:100%;float:none}.qrcode-message{margin:10px 0 0 0}#wc_stripe_local_payment_stripe_becs,#wc_stripe_local_payment_stripe_sepa{padding:10px 12px;box-shadow:0 1px 3px 0 #e6ebf1}.wc-stripe-local-desc.stripe_becs,.wc-stripe-local-desc.stripe_sepa{margin:10px 0}.wc-stripe-clear{clear:both;height:0;visibility:hidden}.wc-stripe-gateway-desc p{margin:0}#wc_stripe_local_payment_stripe_klarna,li[class*=payment_method_stripe_] div.wc-stripe-gateway-container.has_tokens{margin-top:10px}.wc-stripe-gateway-desc{margin-top:10px}#wc-stripe-card-element.StripeElement--webkit-autofill{background-color:transparent!important}#wc_stripe_local_payment_stripe_klarna .stripe-klarna-categories{list-style:none;margin:0;padding:10px}li.payment_method_stripe_alipay,li.payment_method_stripe_bancontact,li.payment_method_stripe_becs,li.payment_method_stripe_eps,li.payment_method_stripe_fpx,li.payment_method_stripe_giropay,li.payment_method_stripe_ideal,li.payment_method_stripe_klarna,li.payment_method_stripe_multibanco,li.payment_method_stripe_p24,li.payment_method_stripe_sepa,li.payment_method_stripe_sofort,li.payment_method_stripe_wechat{display:none}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods{list-style:none;margin:0;padding:0}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods li{margin:0}.widget_shopping_cart_content a.wc-stripe-applepay-mini-cart,.widget_shopping_cart_content a.wc-stripe-gpay-mini-cart,.widget_shopping_cart_content a.wc-stripe-payment-request-mini-cart{background:0 0;padding:0;border:none}a.wc-stripe-gpay-mini-cart .gpay-button,a.wc-stripe-gpay-mini-cart .gpay-card-info-container a.wc-stripe-applepay-mini-cart .apple-pay-button{width:100%;margin:0}.wc-stripe-payment-request-mini-cart.StripeElement{padding:0;background:0 0;border:none;width:100%}.wc-stripe-payment-request-mini-cart.StripeElement .__PrivateStripeElement{width:100%}.widget_shopping_cart_content .wc-stripe-overlay{display:none!important;position:absolute;background:rgba(255,255,255,.75);height:100%;width:100%;z-index:-1}.widget_shopping_cart_content .wc-stripe-overlay.active{display:block!important;z-index:9999}.wc-stripe-klarna-loader{display:flex;justify-content:center;position:relative;width:100%;height:30px;box-sizing:border-box;transform:scale(.65)}.wc-stripe-klarna-loader div{box-sizing:border-box;display:block;position:absolute;box-sizing:border-box;width:30px;height:30px;border:3px solid #000;border-radius:50%;animation:klarna-payments-loader 1.3s cubic-bezier(.5,0,.5,1) infinite;border-color:#000 transparent transparent transparent}.wc-stripe-klarna-loader div:nth-child(1){animation-delay:-.45s}.wc-stripe-klarna-loader div:nth-child(2){animation-delay:-.3s}.wc-stripe-klarna-loader div:nth-child(3){animation-delay:-.15s}@keyframes klarna-payments-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}li.payment_method_stripe_alipay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_applepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_bancontact.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_eps.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_giropay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_googlepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_grabpay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_multibanco.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_oxxo.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_p24.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_payment_request.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_sofort.wc-stripe-no-desc .payment_box.wc-stripe-no-methods{padding:0;margin:0}.wc-stripe-shortcode-cart-buttons .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:none}label[for=payment_method_stripe_afterpay]>#wc-stripe-afterpay-msg{display:inline-block}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .__PrivateStripeElement p,#wc-stripe-afterpay-product-msg .__PrivateStripeElement p,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p{margin-bottom:0!important;margin-top:0!important}#wc-stripe-afterpay-cart-msg .__PrivateStripeElement p .AfterpayMessage-logo,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p .AfterpayMessage-logo{vertical-align:middle}.payment_method_stripe_afterpay #wc_stripe_local_payment_stripe_afterpay.ineligible{display:none}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite{text-align:center;max-width:320px;margin:0 auto;padding:10px 0}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite img{display:inline-block}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite p{font-size:14px;margin-top:10px}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg{text-align:left}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .AfterpayMessage-logoSvg,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .AfterpayMessage-logoSvg{min-width:64px;max-width:90px}#wc-stripe-afterpay-cart-container td{border:none}#wc-stripe-afterpay-cart-container td::before{content:''}.AfterpayMessage-logoSvg{display:inline-block}#wc-stripe-afterpay-product-msg{font-size:14px}#wc-stripe-afterpay-product-msg .AfterpayMessage-logoSvg{max-width:80px;min-width:64px}.wc-stripe-afterpay-minicart-msg{font-size:.8em}.afterpay-ineligible,.payment_method_stripe_afterpay.afterpay-ineligible{display:none}.woocommerce-mini-cart__buttons .gpay-card-info-container{min-width:100%}.woocommerce-mini-cart__buttons .gpay-card-info-container{margin:0}.wc-stripe-boleto__description{margin-top:10px}.wc-stripe-boleto__description div{display:flex;align-items:center}.wc-stripe-boleto__description div label{margin:0}.wc-stripe-klarna__testmode{margin-top:10px}.wc-stripe-klarna__testmode label{display:inline-block}
assets/js/admin/meta-boxes-order.js CHANGED
@@ -12,11 +12,34 @@
12
  }
13
 
14
  MetaBox.prototype.initialize = function () {
15
- $(document.body).on('click', '.do-stripe-transaction-view',
16
- this.render_charge_view.bind(this)).on('click',
17
- '.do-api-capture', this.do_api_capture.bind(this)).on('click',
18
- '.do-api-cancel', this.do_api_cancel.bind(this)).on('click', '.wc-stripe-pay-order', this.open_pay_order_modal.bind(this)).on(
19
- 'change', '#customer_user', this.fetch_payment_methods.bind(this));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
  /**
@@ -24,9 +47,9 @@
24
  */
25
  MetaBox.prototype.render_charge_view = function (e) {
26
  e.preventDefault();
27
- var $icon = $(e.target);
28
- $icon.addClass('disabled');
29
  if (!$icon.data('charge')) {
 
30
  $.when($.ajax({
31
  method: 'GET',
32
  dataType: 'json',
12
  }
13
 
14
  MetaBox.prototype.initialize = function () {
15
+ $(document.body).on('click', '.do-stripe-transaction-view', this.render_charge_view.bind(this))
16
+ .on('click', '.do-api-capture', this.do_api_capture.bind(this))
17
+ .on('click', '.do-api-cancel', this.do_api_cancel.bind(this))
18
+ .on('click', '.wc-stripe-pay-order', this.open_pay_order_modal.bind(this))
19
+ .on('change', '#customer_user', this.fetch_payment_methods.bind(this))
20
+ .on('order-totals-recalculate-success', this.clear_transaction_data.bind(this))
21
+ .on('keyup', '[name="capture_amount"]', this.validate_capture_amount.bind(this))
22
+ .on('items_saved', this.clear_transaction_data.bind(this))
23
+ }
24
+
25
+ MetaBox.prototype.clear_transaction_data = function () {
26
+ $('.do-stripe-transaction-view').data('charge', null);
27
+ }
28
+
29
+ MetaBox.prototype.validate_capture_amount = function (e) {
30
+ var value = $(e.currentTarget).val();
31
+ value = parseFloat(value);
32
+ if (!Number.isNaN(value)) {
33
+ var data = $('.do-stripe-transaction-view').data('charge');
34
+ if (data && value < parseFloat(data.order_total)) {
35
+ if (typeof woocommerce_admin !== 'undefined') {
36
+ woocommerce_admin.capture_notice = this.params.messages.capture_amount;
37
+ $(document.body).triggerHandler('wc_add_error_tip', [$(e.currentTarget), 'capture_notice']);
38
+ }
39
+ } else {
40
+ $(document.body).triggerHandler('wc_remove_error_tip', [$(e.currentTarget), 'capture_notice']);
41
+ }
42
+ }
43
  }
44
 
45
  /**
47
  */
48
  MetaBox.prototype.render_charge_view = function (e) {
49
  e.preventDefault();
50
+ var $icon = $(e.currentTarget);
 
51
  if (!$icon.data('charge')) {
52
+ $icon.addClass('disabled');
53
  $.when($.ajax({
54
  method: 'GET',
55
  dataType: 'json',
assets/js/frontend/afterpay.js CHANGED
@@ -3,6 +3,10 @@
3
  function Utils() {
4
  }
5
 
 
 
 
 
6
  /**
7
  * Product page integration
8
  * @constructor
@@ -16,7 +20,7 @@
16
  AfterpayProduct.prototype = $.extend({}, wc_stripe.BaseGateway.prototype, wc_stripe.ProductGateway.prototype, Utils.prototype, wc_stripe.Afterpay.prototype);
17
 
18
  AfterpayProduct.prototype.initialize = function () {
19
- if (!this.msgElement) {
20
  this.create_element();
21
  this.mount_message();
22
  this.add_eligibility('#wc-stripe-afterpay-product-msg', this.get_product_price());
@@ -74,7 +78,7 @@
74
  AfterpayCart.prototype = $.extend({}, wc_stripe.BaseGateway.prototype, wc_stripe.CartGateway.prototype, Utils.prototype, wc_stripe.Afterpay.prototype);
75
 
76
  AfterpayCart.prototype.initialize = function () {
77
- if (!this.msgElement && $(this.container).length) {
78
  this.create_element();
79
  this.mount_message();
80
  this.add_eligibility('#wc-stripe-afterpay-cart-container', this.get_total_price());
@@ -104,7 +108,7 @@
104
  }
105
 
106
  AfterpayCart.prototype.updated_html = function () {
107
- if (!$(this.container).length) {
108
  return;
109
  }
110
  this.mount_message(true);
3
  function Utils() {
4
  }
5
 
6
+ Utils.prototype.is_currency_supported = function () {
7
+ return this.params.currencies.indexOf(this.get_currency()) > -1;
8
+ }
9
+
10
  /**
11
  * Product page integration
12
  * @constructor
20
  AfterpayProduct.prototype = $.extend({}, wc_stripe.BaseGateway.prototype, wc_stripe.ProductGateway.prototype, Utils.prototype, wc_stripe.Afterpay.prototype);
21
 
22
  AfterpayProduct.prototype.initialize = function () {
23
+ if (!this.msgElement && this.is_currency_supported()) {
24
  this.create_element();
25
  this.mount_message();
26
  this.add_eligibility('#wc-stripe-afterpay-product-msg', this.get_product_price());
78
  AfterpayCart.prototype = $.extend({}, wc_stripe.BaseGateway.prototype, wc_stripe.CartGateway.prototype, Utils.prototype, wc_stripe.Afterpay.prototype);
79
 
80
  AfterpayCart.prototype.initialize = function () {
81
+ if (!this.msgElement && $(this.container).length && this.is_currency_supported()) {
82
  this.create_element();
83
  this.mount_message();
84
  this.add_eligibility('#wc-stripe-afterpay-cart-container', this.get_total_price());
108
  }
109
 
110
  AfterpayCart.prototype.updated_html = function () {
111
+ if (!$(this.container).length || !this.is_currency_supported()) {
112
  return;
113
  }
114
  this.mount_message(true);
assets/js/frontend/afterpay.min.js CHANGED
@@ -1 +1 @@
1
- !function(a,e){function t(){}function i(t){e.BaseGateway.call(this,t),e.ProductGateway.call(this),a(document.body).on("change",'[name="quantity"]',this.mount_message.bind(this,!0))}function r(t){e.BaseGateway.call(this,t),e.CartGateway.call(this)}(i.prototype=a.extend({},e.BaseGateway.prototype,e.ProductGateway.prototype,t.prototype,e.Afterpay.prototype)).initialize=function(){this.msgElement||(this.create_element(),this.mount_message(),this.add_eligibility("#wc-stripe-afterpay-product-msg",this.get_product_price()))},i.prototype.get_product_price=function(t){var e=(e=a('[name="quantity"]').val())||0;return t?this.get_product_data().price*Math.pow(10,2)*parseInt(e):this.get_product_data().price*parseInt(e)},i.prototype.create_element=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",a.extend({},this.params.msg_options,{amount:this.get_product_price(!0),currency:this.get_currency()}))},i.prototype.mount_message=function(t){t&&this.msgElement&&this.msgElement.update({amount:this.get_product_price(!0),currency:this.get_currency(),isEligible:this.is_eligible(this.get_product_price())}),a("#wc-stripe-afterpay-product-msg").length||(a(".summary .price").length?a(".summary .price").append('<div id="wc-stripe-afterpay-product-msg"></div>'):a(".price").length&&a(a(".price")[0]).append('<div id="wc-stripe-afterpay-product-msg"></div>')),this.msgElement.mount("#wc-stripe-afterpay-product-msg")},(r.prototype=a.extend({},e.BaseGateway.prototype,e.CartGateway.prototype,t.prototype,e.Afterpay.prototype)).initialize=function(){!this.msgElement&&a(this.container).length&&(this.create_element(),this.mount_message(),this.add_eligibility("#wc-stripe-afterpay-cart-container",this.get_total_price()))},r.prototype.create_element=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",a.extend({},this.params.msg_options,{amount:this.get_total_price_cents(),currency:this.get_currency()}))},r.prototype.mount_message=function(t){t&&this.msgElement&&this.msgElement.update({amount:this.get_total_price_cents(),currency:this.get_currency(),isEligible:this.is_eligible(parseFloat(this.get_total_price()))}),a("#wc-stripe-afterpay-cart-container").length||a(".cart_totals table.shop_table > tbody").append('<tr id="wc-stripe-afterpay-cart-container"><td colspan="2"><div id="wc-stripe-afterpay-cart-msg"></div></td></tr>'),this.msgElement.mount("#wc-stripe-afterpay-cart-msg")},r.prototype.updated_html=function(){a(this.container).length&&(this.mount_message(!0),this.add_eligibility("#wc-stripe-afterpay-cart-container",this.get_total_price()))},"undefined"!=typeof wc_stripe_afterpay_product_params?new i(wc_stripe_afterpay_product_params):"undefined"!=typeof wc_stripe_afterpay_cart_params&&new r(wc_stripe_afterpay_cart_params)}(jQuery,window.wc_stripe);
1
+ !function(r,e){function t(){}function i(t){e.BaseGateway.call(this,t),e.ProductGateway.call(this),r(document.body).on("change",'[name="quantity"]',this.mount_message.bind(this,!0))}function a(t){e.BaseGateway.call(this,t),e.CartGateway.call(this)}t.prototype.is_currency_supported=function(){return-1<this.params.currencies.indexOf(this.get_currency())},(i.prototype=r.extend({},e.BaseGateway.prototype,e.ProductGateway.prototype,t.prototype,e.Afterpay.prototype)).initialize=function(){!this.msgElement&&this.is_currency_supported()&&(this.create_element(),this.mount_message(),this.add_eligibility("#wc-stripe-afterpay-product-msg",this.get_product_price()))},i.prototype.get_product_price=function(t){var e=(e=r('[name="quantity"]').val())||0;return t?this.get_product_data().price*Math.pow(10,2)*parseInt(e):this.get_product_data().price*parseInt(e)},i.prototype.create_element=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",r.extend({},this.params.msg_options,{amount:this.get_product_price(!0),currency:this.get_currency()}))},i.prototype.mount_message=function(t){t&&this.msgElement&&this.msgElement.update({amount:this.get_product_price(!0),currency:this.get_currency(),isEligible:this.is_eligible(this.get_product_price())}),r("#wc-stripe-afterpay-product-msg").length||(r(".summary .price").length?r(".summary .price").append('<div id="wc-stripe-afterpay-product-msg"></div>'):r(".price").length&&r(r(".price")[0]).append('<div id="wc-stripe-afterpay-product-msg"></div>')),this.msgElement.mount("#wc-stripe-afterpay-product-msg")},(a.prototype=r.extend({},e.BaseGateway.prototype,e.CartGateway.prototype,t.prototype,e.Afterpay.prototype)).initialize=function(){!this.msgElement&&r(this.container).length&&this.is_currency_supported()&&(this.create_element(),this.mount_message(),this.add_eligibility("#wc-stripe-afterpay-cart-container",this.get_total_price()))},a.prototype.create_element=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",r.extend({},this.params.msg_options,{amount:this.get_total_price_cents(),currency:this.get_currency()}))},a.prototype.mount_message=function(t){t&&this.msgElement&&this.msgElement.update({amount:this.get_total_price_cents(),currency:this.get_currency(),isEligible:this.is_eligible(parseFloat(this.get_total_price()))}),r("#wc-stripe-afterpay-cart-container").length||r(".cart_totals table.shop_table > tbody").append('<tr id="wc-stripe-afterpay-cart-container"><td colspan="2"><div id="wc-stripe-afterpay-cart-msg"></div></td></tr>'),this.msgElement.mount("#wc-stripe-afterpay-cart-msg")},a.prototype.updated_html=function(){r(this.container).length&&this.is_currency_supported()&&(this.mount_message(!0),this.add_eligibility("#wc-stripe-afterpay-cart-container",this.get_total_price()))},"undefined"!=typeof wc_stripe_afterpay_product_params?new i(wc_stripe_afterpay_product_params):"undefined"!=typeof wc_stripe_afterpay_cart_params&&new a(wc_stripe_afterpay_cart_params)}(jQuery,window.wc_stripe);
assets/js/frontend/applepay-checkout.js CHANGED
@@ -55,6 +55,7 @@
55
  if ($(e.target).is('.banner-checkout')) {
56
  this.set_payment_method(this.gateway_id);
57
  this.set_use_new_option(true);
 
58
  }
59
  wc_stripe.ApplePay.prototype.start.apply(this, arguments);
60
  }
55
  if ($(e.target).is('.banner-checkout')) {
56
  this.set_payment_method(this.gateway_id);
57
  this.set_use_new_option(true);
58
+ $('[name="terms"]').prop('checked', true);
59
  }
60
  wc_stripe.ApplePay.prototype.start.apply(this, arguments);
61
  }
assets/js/frontend/applepay-checkout.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,i){function t(){i.BaseGateway.call(this,wc_stripe_applepay_checkout_params)}(t.prototype=e.extend({},i.BaseGateway.prototype,i.CheckoutGateway.prototype,i.ApplePay.prototype)).initialize=function(){i.CheckoutGateway.call(this),e("form.checkout").on("change",".form-row:not(.address-field) .input-text",this.update_payment_request.bind(this)),e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){i.ApplePay.prototype.canMakePayment.apply(this,arguments).then(function(){var t;this.banner_enabled()&&((t=e(this.params.button)).addClass("banner-checkout"),t.on("click",this.start.bind(this)),e(this.banner_container).empty().append(t),e(this.banner_container).show().parent().parent().addClass("active"))}.bind(this))},t.prototype.append_button=function(){e("#place_order").after(this.$button),this.trigger_payment_method_selected()},t.prototype.updated_checkout=function(){e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},t.prototype.start=function(t){e(t.target).is(".banner-checkout")&&(this.set_payment_method(this.gateway_id),this.set_use_new_option(!0)),i.ApplePay.prototype.start.apply(this,arguments)},t.prototype.on_token_received=function(){i.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.payment_request_options.requestShipping&&this.maybe_set_ship_to_different(),this.fields.toFormFields({update_shipping_method:!1}),this.checkout_fields_valid()&&this.get_form().submit()},t.prototype.update_payment_request=function(){e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},new t}(jQuery,window.wc_stripe);
1
+ !function(e,i){function t(){i.BaseGateway.call(this,wc_stripe_applepay_checkout_params)}(t.prototype=e.extend({},i.BaseGateway.prototype,i.CheckoutGateway.prototype,i.ApplePay.prototype)).initialize=function(){i.CheckoutGateway.call(this),e("form.checkout").on("change",".form-row:not(.address-field) .input-text",this.update_payment_request.bind(this)),e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){i.ApplePay.prototype.canMakePayment.apply(this,arguments).then(function(){var t;this.banner_enabled()&&((t=e(this.params.button)).addClass("banner-checkout"),t.on("click",this.start.bind(this)),e(this.banner_container).empty().append(t),e(this.banner_container).show().parent().parent().addClass("active"))}.bind(this))},t.prototype.append_button=function(){e("#place_order").after(this.$button),this.trigger_payment_method_selected()},t.prototype.updated_checkout=function(){e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},t.prototype.start=function(t){e(t.target).is(".banner-checkout")&&(this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),e('[name="terms"]').prop("checked",!0)),i.ApplePay.prototype.start.apply(this,arguments)},t.prototype.on_token_received=function(){i.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.payment_request_options.requestShipping&&this.maybe_set_ship_to_different(),this.fields.toFormFields({update_shipping_method:!1}),this.checkout_fields_valid()&&this.get_form().submit()},t.prototype.update_payment_request=function(){e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},new t}(jQuery,window.wc_stripe);
assets/js/frontend/googlepay-checkout.js CHANGED
@@ -63,6 +63,7 @@
63
  GPay.prototype.banner_checkout = function () {
64
  this.set_payment_method(this.gateway_id);
65
  this.set_use_new_option(true);
 
66
  wc_stripe.GooglePay.prototype.start.apply(this, arguments);
67
  }
68
 
63
  GPay.prototype.banner_checkout = function () {
64
  this.set_payment_method(this.gateway_id);
65
  this.set_use_new_option(true);
66
+ $('[name="terms"]').prop('checked', true);
67
  wc_stripe.GooglePay.prototype.start.apply(this, arguments);
68
  }
69
 
assets/js/frontend/googlepay-checkout.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){function i(){this.can_pay=!1,t.BaseGateway.call(this,wc_stripe_googlepay_checkout_params),t.CheckoutGateway.call(this),window.addEventListener("hashchange",this.hashchange.bind(this)),this.has3DSecureParams()}(i.prototype=e.extend({},t.BaseGateway.prototype,t.CheckoutGateway.prototype,t.GooglePay.prototype)).initialize=function(){e(this.container).length&&(this.createPaymentsClient(),this.isReadyToPay().then(function(){var t;e(this.container).show(),this.banner_enabled()&&(t=e(this.paymentsClient.createButton({onClick:this.banner_checkout.bind(this),buttonColor:this.params.button_color,buttonType:this.params.button_style})),e(this.banner_container).show().parent().parent().addClass("active"),e(this.banner_container).empty().append(t))}.bind(this)))},i.prototype.create_button=function(){t.GooglePay.prototype.create_button.apply(this,arguments),e("#place_order").after(this.$button),this.trigger_payment_method_selected()},i.prototype.updated_checkout=function(){this.initialize()},i.prototype.banner_checkout=function(){this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),t.GooglePay.prototype.start.apply(this,arguments)},i.prototype.on_token_received=function(){t.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.payment_request_options.shippingAddressRequired&&this.maybe_set_ship_to_different(),this.fields.toFormFields({update_shipping_method:!1}),this.checkout_fields_valid()&&this.get_form().submit()},i.prototype.payment_data_updated=function(t){this.populate_billing_fields(t.address),this.fields.toFormFields({update_shipping_method:!1})},new i}(jQuery,window.wc_stripe);
1
+ !function(e,t){function i(){this.can_pay=!1,t.BaseGateway.call(this,wc_stripe_googlepay_checkout_params),t.CheckoutGateway.call(this),window.addEventListener("hashchange",this.hashchange.bind(this)),this.has3DSecureParams()}(i.prototype=e.extend({},t.BaseGateway.prototype,t.CheckoutGateway.prototype,t.GooglePay.prototype)).initialize=function(){e(this.container).length&&(this.createPaymentsClient(),this.isReadyToPay().then(function(){var t;e(this.container).show(),this.banner_enabled()&&(t=e(this.paymentsClient.createButton({onClick:this.banner_checkout.bind(this),buttonColor:this.params.button_color,buttonType:this.params.button_style})),e(this.banner_container).show().parent().parent().addClass("active"),e(this.banner_container).empty().append(t))}.bind(this)))},i.prototype.create_button=function(){t.GooglePay.prototype.create_button.apply(this,arguments),e("#place_order").after(this.$button),this.trigger_payment_method_selected()},i.prototype.updated_checkout=function(){this.initialize()},i.prototype.banner_checkout=function(){this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),e('[name="terms"]').prop("checked",!0),t.GooglePay.prototype.start.apply(this,arguments)},i.prototype.on_token_received=function(){t.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.payment_request_options.shippingAddressRequired&&this.maybe_set_ship_to_different(),this.fields.toFormFields({update_shipping_method:!1}),this.checkout_fields_valid()&&this.get_form().submit()},i.prototype.payment_data_updated=function(t){this.populate_billing_fields(t.address),this.fields.toFormFields({update_shipping_method:!1})},new i}(jQuery,window.wc_stripe);
assets/js/frontend/local-payment.js CHANGED
@@ -366,8 +366,9 @@
366
  }
367
  }
368
 
369
- WeChat.prototype.place_order = function () {
370
- if (this.get_form().is('.wechat')) {
 
371
  window.location = this.qrcode.redirect;
372
  } else {
373
  LocalPayment.prototype.place_order.apply(this, arguments);
@@ -387,9 +388,13 @@
387
  return args;
388
  }
389
 
 
 
 
 
390
  Afterpay.prototype.updated_checkout = function () {
391
  this.maybe_hide_gateway();
392
- if (this.has_gateway_data()) {
393
  this.add_eligibility(this.container, parseFloat(this.get_total_price()));
394
  // re-insert the messaging
395
  // create new elements object since country code could have changed
@@ -399,7 +404,7 @@
399
  }
400
 
401
  Afterpay.prototype.initialize = function () {
402
- if (this.has_gateway_data()) {
403
  this.add_eligibility(this.container, parseFloat(this.get_total_price()));
404
  this.initialize_messaging();
405
  }
366
  }
367
  }
368
 
369
+ WeChat.prototype.place_order = function (e) {
370
+ if (this.qrcode && this.payment_token_received) {
371
+ e.preventDefault();
372
  window.location = this.qrcode.redirect;
373
  } else {
374
  LocalPayment.prototype.place_order.apply(this, arguments);
388
  return args;
389
  }
390
 
391
+ Afterpay.prototype.is_currency_supported = function () {
392
+ return this.params.currencies.indexOf(this.get_currency()) > -1;
393
+ }
394
+
395
  Afterpay.prototype.updated_checkout = function () {
396
  this.maybe_hide_gateway();
397
+ if (this.has_gateway_data() && this.is_currency_supported()) {
398
  this.add_eligibility(this.container, parseFloat(this.get_total_price()));
399
  // re-insert the messaging
400
  // create new elements object since country code could have changed
404
  }
405
 
406
  Afterpay.prototype.initialize = function () {
407
+ if (this.has_gateway_data() && this.is_currency_supported()) {
408
  this.add_eligibility(this.container, parseFloat(this.get_total_price()));
409
  this.initialize_messaging();
410
  }
assets/js/frontend/local-payment.min.js CHANGED
@@ -1 +1 @@
1
- !function(o,i){function e(t){i.BaseGateway.call(this,t),i.CheckoutGateway.call(this),o(document.body).on("click","#place_order",this.place_order.bind(this)),this.is_current_page("order_pay")&&o("#order_review").on("submit",this.process_order_pay.bind(this)),this.maybe_hide_gateway()}function t(t){this.elementType="idealBank",this.confirmation_method="confirmIdealPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function n(t){this.elementType="p24Bank",this.confirmation_method="confirmP24Payment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function a(t){this.elementType="iban",e.call(this,t)}function r(t){this.confirmation_method="confirmKlarnaPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function s(t){this.elementType="fpxBank",this.confirmation_method="confirmFpxPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function h(t){e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function p(t){this.elementType="auBankAccount",this.confirmation_method="confirmAuBecsDebitPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function c(t){this.confirmation_method="confirmGrabPayPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function d(t){this.confirmation_method="confirmAfterpayClearpayPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function _(t){this.confirmation_method="confirmBoletoPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function l(t){this.confirmation_method="confirmOxxoPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}(e.prototype=o.extend({},i.BaseGateway.prototype,i.CheckoutGateway.prototype)).initialize=function(){this.mount_button()},e.prototype.elementType=null,e.prototype.is_active=function(){return o("#wc_stripe_local_payment_"+this.gateway_id).data("active")},e.prototype.maybe_hide_gateway=function(){this.is_active()?o(this.container).show():o(this.container).hide()},e.prototype.createSource=function(){return new Promise(function(e,t){var i=function(t){t.error?this.submit_error(t.error):(this.payment_token_received=!0,this.set_nonce(t.source.id),this.get_form().submit()),e()}.bind(this);if(null!=this.elementType)if(this.confirmation_method)if(this.confirmation_obj)this.processConfirmation(this.confirmation_obj);else{if(!this.isValidElement())return this.submit_error({code:"empty_element_"+this.params.local_payment_type,message:wc_stripe_messages.empty_element});this.payment_token_received=!0,this.get_form().submit()}else this.stripe.createSource(this.element,this.getSourceArgs()).then(i)["catch"](function(t){this.submit_error(t.message)}.bind(this));else this.payment_token_received=!0,this.get_form().submit()}.bind(this))},e.prototype.place_order=function(t){this.is_gateway_selected()&&(this.payment_token_received||this.is_saved_method_selected()||(t.preventDefault(),this.createSource()))},e.prototype.process_order_pay=function(t){var e;this.is_gateway_selected()&&(t.preventDefault(),(e=this.get_form().serializeArray()).push({name:"_wpnonce",value:this.params.rest_nonce}),e.push({name:"order_id",value:this.params.order_id}),t=window.location.search,this.params.routes.order_pay.match(/\?/)&&(t="&"+t.substr(1)),o.ajax({url:this.params.routes.order_pay+t,method:"POST",dataType:"json",data:o.param(e)}).done(function(t){t.success?window.location.href=t.redirect:this.submit_error(t.message)}.bind(this)).fail(function(t,e,i){this.submit_error(i)}.bind(this)))},e.prototype.show_payment_button=function(){this.show_place_order()},e.prototype.hide_place_order=function(){},e.prototype.show_place_order=function(){i.CheckoutGateway.prototype.show_place_order.apply(this,arguments),this.payment_token_received&&o("#place_order").text(o("#place_order").data("value"))},e.prototype.getSourceArgs=function(){return{type:this.params.local_payment_type,amount:this.get_total_price_cents(),currency:this.get_currency(),owner:{name:this.get_customer_name(this.get_billing_prefix()),email:this.fields.get("billing_email",null)},redirect:{return_url:this.params.return_url}}},e.prototype.updated_checkout=function(){this.mount_button(),this.maybe_hide_gateway()},e.prototype.mount_button=function(){var t="#wc_stripe_local_payment_"+this.gateway_id;o(t).length&&null!=this.elementType&&(o(t).empty(),this.element||(this.element=this.elements.create(this.elementType,this.params.element_params),this.element.on("change",this.handleElementChange.bind(this))),this.elementEmpty=!0,this.element.mount(t))},e.prototype.handleElementChange=function(t){this.elementEmpty=t.empty},e.prototype.load_external_script=function(t){var e=document.createElement("script");e.type="text/javascript",e.src=t,e.onload=function(){this.script_loaded=!0}.bind(this),document.body.appendChild(e)},e.prototype.hashChange=function(t){var e;!this.is_gateway_selected()||(e=window.location.hash.match(/response=(.*)/))&&(history.pushState({},"",window.location.pathname),e=JSON.parse(window.atob(decodeURIComponent(e[1]))),this.processConfirmation(e))},e.prototype.processConfirmation=function(e){this.stripe[this.confirmation_method](e.client_secret,this.get_confirmation_args(e)).then(function(t){if(t.error)return this.confirmation_obj=e,this.payment_token_received=!1,this.submit_error(t.error.message);window.location.href=decodeURI(e.order_received_url)}.bind(this))},e.prototype.get_confirmation_args=function(t){t={payment_method:{billing_details:this.get_billing_details()},return_url:t.return_url};return this.elementType&&(t.payment_method[this.params.local_payment_type]=this.element),t},e.prototype.isValidElement=function(){return!this.element||!this.elementEmpty},e.prototype.delete_order_source=function(){return new Promise(function(e,t){o.ajax({url:this.params.routes.delete_order_source,method:"DELETE",dataType:"json",beforeSend:this.ajax_before_send.bind(this)}).done(function(t){e(t)}.bind(this)).fail(function(){t()}.bind(this))}.bind(this))},e.prototype.update_source=function(i){return new Promise(function(e,t){this.updateSourceXhr&&this.updateSourceXhr.abort(),this.updateSourceXhr=o.ajax({url:this.params.routes.update_source,method:"POST",dataType:"json",data:{_wpnonce:this.params.rest_nonce,updates:i,source_id:this.source.id,client_secret:this.source.client_secret,payment_method:this.gateway_id}}).done(function(t){e(t.source)}.bind(this)).fail(function(){t()})}.bind(this))},h.prototype.updated_checkout=function(){!this.script_loaded&&o(this.container).length&&this.load_external_script(this.params.qr_script),e.prototype.updated_checkout.apply(this,arguments)},h.prototype.hashChange=function(t){var e;!this.is_gateway_selected()||(e=window.location.hash.match(/qrcode=(.*)/))&&(history.pushState({},"",window.location.pathname),this.qrcode=JSON.parse(window.atob(decodeURIComponent(e[1]))),this.get_form().unblock().removeClass("processing").addClass("wechat"),new QRCode("wc_stripe_local_payment_stripe_wechat",{text:this.qrcode.code,width:parseInt(this.params.qr_size),height:parseInt(this.params.qr_size),colorDark:"#424770",colorLight:"#f8fbfd",correctLevel:QRCode.CorrectLevel.H}),o("#wc_stripe_local_payment_stripe_wechat").append('<p class="qrcode-message">'+this.params.qr_message+"</p>"),this.payment_token_received=!0,this.show_place_order())},h.prototype.place_order=function(){this.get_form().is(".wechat")?window.location=this.qrcode.redirect:e.prototype.place_order.apply(this,arguments)},a.prototype.getSourceArgs=function(){var t=o.extend({},e.prototype.getSourceArgs.apply(this,arguments),{mandate:{notification_method:"email",interval:this.cart_contains_subscription()||this.is_change_payment_method()?"scheduled":"one_time"}});return"scheduled"===t.mandate.interval&&delete t.amount,t},d.prototype.updated_checkout=function(){this.maybe_hide_gateway(),this.has_gateway_data()&&(this.add_eligibility(this.container,parseFloat(this.get_total_price())),this.elements=this.stripe.elements(this.get_element_options()),this.initialize_messaging())},d.prototype.initialize=function(){this.has_gateway_data()&&(this.add_eligibility(this.container,parseFloat(this.get_total_price())),this.initialize_messaging())},d.prototype.initialize_messaging=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",o.extend({},this.params.msg_options,{amount:this.get_total_price_cents(),currency:this.get_currency()})),this.mount_message()},d.prototype.mount_message=function(t){t&&this.msgElement.update({amount:this.get_total_price_cents(),currency:this.get_currency()}),o('label[for="payment_method_stripe_afterpay"]').find("#wc-stripe-afterpay-msg").length||o('label[for="payment_method_stripe_afterpay"]').append('<div id="wc-stripe-afterpay-msg"></div>'),this.msgElement.mount("#wc-stripe-afterpay-msg")},d.prototype.add_eligibility=function(t,e){i.Afterpay.prototype.add_eligibility.apply(this,arguments),this.is_eligible(e)||o(this.container).find(".wc-stripe-afterpay__offsite").addClass("afterpay-ineligible")},_.prototype.get_confirmation_args=function(t){t=e.prototype.get_confirmation_args.call(this,t);return t.payment_method.boleto={tax_id:this.get_tax_id()},t},_.prototype.createSource=function(){var t=this.get_tax_id();if(!t||!t.match(/^(\w{3}\.){2}\w{3}-\w{2}$|^(\w{11}|\w{14})$|^\w{2}\.\w{3}\.\w{3}\/\w{4}-\w{2}$/))return this.submit_error({code:"incomplete_boleto_tax_id"});this.payment_token_received=!0,this.get_form().submit()},_.prototype.get_tax_id=function(){return o("#wc_stripe_boleto_tax_id").val()},t.prototype=o.extend({},e.prototype,t.prototype),n.prototype=o.extend({},e.prototype,n.prototype),a.prototype=o.extend({},e.prototype,a.prototype),r.prototype=o.extend({},e.prototype,r.prototype),s.prototype=o.extend({},e.prototype,s.prototype),h.prototype=o.extend({},e.prototype,h.prototype),p.prototype=o.extend({},e.prototype,p.prototype),c.prototype=o.extend({},e.prototype,c.prototype),d.prototype=o.extend({},e.prototype,i.Afterpay.prototype,d.prototype),_.prototype=o.extend({},e.prototype,_.prototype),l.prototype=o.extend({},e.prototype,l.prototype);var m,y={ideal:t,p24:n,sepa_debit:a,klarna:r,fpx:s,wechat:h,au_becs_debit:p,grabpay:c,afterpay_clearpay:d,boleto:_,oxxo:l};for(m in wc_stripe_local_payment_params.gateways){var u=wc_stripe_local_payment_params.gateways[m];new(y[u.local_payment_type]||e)(u)}}(jQuery,window.wc_stripe);
1
+ !function(o,i){function e(t){i.BaseGateway.call(this,t),i.CheckoutGateway.call(this),o(document.body).on("click","#place_order",this.place_order.bind(this)),this.is_current_page("order_pay")&&o("#order_review").on("submit",this.process_order_pay.bind(this)),this.maybe_hide_gateway()}function t(t){this.elementType="idealBank",this.confirmation_method="confirmIdealPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function n(t){this.elementType="p24Bank",this.confirmation_method="confirmP24Payment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function a(t){this.elementType="iban",e.call(this,t)}function r(t){this.confirmation_method="confirmKlarnaPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function s(t){this.elementType="fpxBank",this.confirmation_method="confirmFpxPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function h(t){e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function p(t){this.elementType="auBankAccount",this.confirmation_method="confirmAuBecsDebitPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function c(t){this.confirmation_method="confirmGrabPayPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function _(t){this.confirmation_method="confirmAfterpayClearpayPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function d(t){this.confirmation_method="confirmBoletoPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function l(t){this.confirmation_method="confirmOxxoPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}(e.prototype=o.extend({},i.BaseGateway.prototype,i.CheckoutGateway.prototype)).initialize=function(){this.mount_button()},e.prototype.elementType=null,e.prototype.is_active=function(){return o("#wc_stripe_local_payment_"+this.gateway_id).data("active")},e.prototype.maybe_hide_gateway=function(){this.is_active()?o(this.container).show():o(this.container).hide()},e.prototype.createSource=function(){return new Promise(function(e,t){var i=function(t){t.error?this.submit_error(t.error):(this.payment_token_received=!0,this.set_nonce(t.source.id),this.get_form().submit()),e()}.bind(this);if(null!=this.elementType)if(this.confirmation_method)if(this.confirmation_obj)this.processConfirmation(this.confirmation_obj);else{if(!this.isValidElement())return this.submit_error({code:"empty_element_"+this.params.local_payment_type,message:wc_stripe_messages.empty_element});this.payment_token_received=!0,this.get_form().submit()}else this.stripe.createSource(this.element,this.getSourceArgs()).then(i)["catch"](function(t){this.submit_error(t.message)}.bind(this));else this.payment_token_received=!0,this.get_form().submit()}.bind(this))},e.prototype.place_order=function(t){this.is_gateway_selected()&&(this.payment_token_received||this.is_saved_method_selected()||(t.preventDefault(),this.createSource()))},e.prototype.process_order_pay=function(t){var e;this.is_gateway_selected()&&(t.preventDefault(),(e=this.get_form().serializeArray()).push({name:"_wpnonce",value:this.params.rest_nonce}),e.push({name:"order_id",value:this.params.order_id}),t=window.location.search,this.params.routes.order_pay.match(/\?/)&&(t="&"+t.substr(1)),o.ajax({url:this.params.routes.order_pay+t,method:"POST",dataType:"json",data:o.param(e)}).done(function(t){t.success?window.location.href=t.redirect:this.submit_error(t.message)}.bind(this)).fail(function(t,e,i){this.submit_error(i)}.bind(this)))},e.prototype.show_payment_button=function(){this.show_place_order()},e.prototype.hide_place_order=function(){},e.prototype.show_place_order=function(){i.CheckoutGateway.prototype.show_place_order.apply(this,arguments),this.payment_token_received&&o("#place_order").text(o("#place_order").data("value"))},e.prototype.getSourceArgs=function(){return{type:this.params.local_payment_type,amount:this.get_total_price_cents(),currency:this.get_currency(),owner:{name:this.get_customer_name(this.get_billing_prefix()),email:this.fields.get("billing_email",null)},redirect:{return_url:this.params.return_url}}},e.prototype.updated_checkout=function(){this.mount_button(),this.maybe_hide_gateway()},e.prototype.mount_button=function(){var t="#wc_stripe_local_payment_"+this.gateway_id;o(t).length&&null!=this.elementType&&(o(t).empty(),this.element||(this.element=this.elements.create(this.elementType,this.params.element_params),this.element.on("change",this.handleElementChange.bind(this))),this.elementEmpty=!0,this.element.mount(t))},e.prototype.handleElementChange=function(t){this.elementEmpty=t.empty},e.prototype.load_external_script=function(t){var e=document.createElement("script");e.type="text/javascript",e.src=t,e.onload=function(){this.script_loaded=!0}.bind(this),document.body.appendChild(e)},e.prototype.hashChange=function(t){var e;!this.is_gateway_selected()||(e=window.location.hash.match(/response=(.*)/))&&(history.pushState({},"",window.location.pathname),e=JSON.parse(window.atob(decodeURIComponent(e[1]))),this.processConfirmation(e))},e.prototype.processConfirmation=function(e){this.stripe[this.confirmation_method](e.client_secret,this.get_confirmation_args(e)).then(function(t){if(t.error)return this.confirmation_obj=e,this.payment_token_received=!1,this.submit_error(t.error.message);window.location.href=decodeURI(e.order_received_url)}.bind(this))},e.prototype.get_confirmation_args=function(t){t={payment_method:{billing_details:this.get_billing_details()},return_url:t.return_url};return this.elementType&&(t.payment_method[this.params.local_payment_type]=this.element),t},e.prototype.isValidElement=function(){return!this.element||!this.elementEmpty},e.prototype.delete_order_source=function(){return new Promise(function(e,t){o.ajax({url:this.params.routes.delete_order_source,method:"DELETE",dataType:"json",beforeSend:this.ajax_before_send.bind(this)}).done(function(t){e(t)}.bind(this)).fail(function(){t()}.bind(this))}.bind(this))},e.prototype.update_source=function(i){return new Promise(function(e,t){this.updateSourceXhr&&this.updateSourceXhr.abort(),this.updateSourceXhr=o.ajax({url:this.params.routes.update_source,method:"POST",dataType:"json",data:{_wpnonce:this.params.rest_nonce,updates:i,source_id:this.source.id,client_secret:this.source.client_secret,payment_method:this.gateway_id}}).done(function(t){e(t.source)}.bind(this)).fail(function(){t()})}.bind(this))},h.prototype.updated_checkout=function(){!this.script_loaded&&o(this.container).length&&this.load_external_script(this.params.qr_script),e.prototype.updated_checkout.apply(this,arguments)},h.prototype.hashChange=function(t){var e;!this.is_gateway_selected()||(e=window.location.hash.match(/qrcode=(.*)/))&&(history.pushState({},"",window.location.pathname),this.qrcode=JSON.parse(window.atob(decodeURIComponent(e[1]))),this.get_form().unblock().removeClass("processing").addClass("wechat"),new QRCode("wc_stripe_local_payment_stripe_wechat",{text:this.qrcode.code,width:parseInt(this.params.qr_size),height:parseInt(this.params.qr_size),colorDark:"#424770",colorLight:"#f8fbfd",correctLevel:QRCode.CorrectLevel.H}),o("#wc_stripe_local_payment_stripe_wechat").append('<p class="qrcode-message">'+this.params.qr_message+"</p>"),this.payment_token_received=!0,this.show_place_order())},h.prototype.place_order=function(t){this.qrcode&&this.payment_token_received?(t.preventDefault(),window.location=this.qrcode.redirect):e.prototype.place_order.apply(this,arguments)},a.prototype.getSourceArgs=function(){var t=o.extend({},e.prototype.getSourceArgs.apply(this,arguments),{mandate:{notification_method:"email",interval:this.cart_contains_subscription()||this.is_change_payment_method()?"scheduled":"one_time"}});return"scheduled"===t.mandate.interval&&delete t.amount,t},_.prototype.is_currency_supported=function(){return-1<this.params.currencies.indexOf(this.get_currency())},_.prototype.updated_checkout=function(){this.maybe_hide_gateway(),this.has_gateway_data()&&this.is_currency_supported()&&(this.add_eligibility(this.container,parseFloat(this.get_total_price())),this.elements=this.stripe.elements(this.get_element_options()),this.initialize_messaging())},_.prototype.initialize=function(){this.has_gateway_data()&&this.is_currency_supported()&&(this.add_eligibility(this.container,parseFloat(this.get_total_price())),this.initialize_messaging())},_.prototype.initialize_messaging=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",o.extend({},this.params.msg_options,{amount:this.get_total_price_cents(),currency:this.get_currency()})),this.mount_message()},_.prototype.mount_message=function(t){t&&this.msgElement.update({amount:this.get_total_price_cents(),currency:this.get_currency()}),o('label[for="payment_method_stripe_afterpay"]').find("#wc-stripe-afterpay-msg").length||o('label[for="payment_method_stripe_afterpay"]').append('<div id="wc-stripe-afterpay-msg"></div>'),this.msgElement.mount("#wc-stripe-afterpay-msg")},_.prototype.add_eligibility=function(t,e){i.Afterpay.prototype.add_eligibility.apply(this,arguments),this.is_eligible(e)||o(this.container).find(".wc-stripe-afterpay__offsite").addClass("afterpay-ineligible")},d.prototype.get_confirmation_args=function(t){t=e.prototype.get_confirmation_args.call(this,t);return t.payment_method.boleto={tax_id:this.get_tax_id()},t},d.prototype.createSource=function(){var t=this.get_tax_id();if(!t||!t.match(/^(\w{3}\.){2}\w{3}-\w{2}$|^(\w{11}|\w{14})$|^\w{2}\.\w{3}\.\w{3}\/\w{4}-\w{2}$/))return this.submit_error({code:"incomplete_boleto_tax_id"});this.payment_token_received=!0,this.get_form().submit()},d.prototype.get_tax_id=function(){return o("#wc_stripe_boleto_tax_id").val()},t.prototype=o.extend({},e.prototype,t.prototype),n.prototype=o.extend({},e.prototype,n.prototype),a.prototype=o.extend({},e.prototype,a.prototype),r.prototype=o.extend({},e.prototype,r.prototype),s.prototype=o.extend({},e.prototype,s.prototype),h.prototype=o.extend({},e.prototype,h.prototype),p.prototype=o.extend({},e.prototype,p.prototype),c.prototype=o.extend({},e.prototype,c.prototype),_.prototype=o.extend({},e.prototype,i.Afterpay.prototype,_.prototype),d.prototype=o.extend({},e.prototype,d.prototype),l.prototype=o.extend({},e.prototype,l.prototype);var m,y={ideal:t,p24:n,sepa_debit:a,klarna:r,fpx:s,wechat:h,au_becs_debit:p,grabpay:c,afterpay_clearpay:_,boleto:d,oxxo:l};for(m in wc_stripe_local_payment_params.gateways){var u=wc_stripe_local_payment_params.gateways[m];new(y[u.local_payment_type]||e)(u)}}(jQuery,window.wc_stripe);
assets/js/frontend/mini-cart.js CHANGED
@@ -95,8 +95,12 @@
95
 
96
  Afterpay.prototype = Object.assign({}, wc_stripe.BaseGateway.prototype, MiniCart.prototype, wc_stripe.Afterpay.prototype);
97
 
 
 
 
 
98
  Afterpay.prototype.initialize = function () {
99
- if ($(this.container).length) {
100
  this.create_element();
101
  this.mount_message();
102
  }
95
 
96
  Afterpay.prototype = Object.assign({}, wc_stripe.BaseGateway.prototype, MiniCart.prototype, wc_stripe.Afterpay.prototype);
97
 
98
+ Afterpay.prototype.is_currency_supported = function () {
99
+ return this.params.currencies.indexOf(this.get_currency()) > -1;
100
+ }
101
+
102
  Afterpay.prototype.initialize = function () {
103
+ if ($(this.container).length && this.is_currency_supported()) {
104
  this.create_element();
105
  this.mount_message();
106
  }
assets/js/frontend/mini-cart.min.js CHANGED
@@ -1 +1 @@
1
- !function(i,e){function n(t){this.message_container=".widget_shopping_cart_content",e.BaseGateway.call(this,t,s)}function t(t){n.apply(this,arguments)}function p(t){n.apply(this,arguments)}function a(t){n.apply(this,arguments)}function o(t){n.apply(this,arguments)}n.prototype.on_token_received=function(){this.block(),this.block_cart(),e.BaseGateway.prototype.on_token_received.apply(this,arguments)},n.prototype.block_cart=function(){i(this.container).closest(".widget_shopping_cart_content").find(".wc-stripe-overlay").addClass("active")},n.prototype.unblock_cart=function(){i(this.container).closest(".widget_shopping_cart_content").find(".wc-stripe-overlay").removeClass("active")},(t.prototype=Object.assign({},e.BaseGateway.prototype,n.prototype,e.GooglePay.prototype)).initialize=function(){this.createPaymentsClient(),this.isReadyToPay().then(function(){this.$button.find(".gpay-button").addClass("button"),this.append_button()}.bind(this))},t.prototype.create_button=function(){e.GooglePay.prototype.create_button.apply(this,arguments),this.append_button()},t.prototype.append_button=function(){i(this.container).find(".wc-stripe-gpay-mini-cart").empty(),i(this.container).find(".wc-stripe-gpay-mini-cart").append(this.$button).show()},(p.prototype=Object.assign({},e.BaseGateway.prototype,n.prototype,e.ApplePay.prototype)).initialize=function(){e.ApplePay.prototype.initialize.apply(this,arguments)},p.prototype.append_button=function(){i(this.container).find(".wc-stripe-applepay-mini-cart").empty(),i(this.container).find(".wc-stripe-applepay-mini-cart").append(this.$button).show()},(a.prototype=Object.assign({},e.BaseGateway.prototype,n.prototype,e.PaymentRequest.prototype)).initialize=function(){e.PaymentRequest.prototype.initialize.apply(this,arguments)},a.prototype.create_button=function(){this.append_button()},a.prototype.append_button=function(){i(this.container).find(".wc-stripe-payment-request-mini-cart").empty().show(),this.paymentRequestButton.mount(i(this.container).find(".wc-stripe-payment-request-mini-cart").first()[0])},(o.prototype=Object.assign({},e.BaseGateway.prototype,n.prototype,e.Afterpay.prototype)).initialize=function(){i(this.container).length&&(this.create_element(),this.mount_message())},o.prototype.create_element=function(){return this.elements.create("afterpayClearpayMessage",i.extend({},this.params.msg_options,{amount:this.get_total_price_cents(),currency:this.get_currency(),isEligible:this.is_eligible(parseFloat(this.get_total_price()))}))},o.prototype.mount_message=function(){i(".wc-stripe-afterpay-minicart-msg").length||i(".woocommerce-mini-cart__total").after('<p class="wc-stripe-afterpay-minicart-msg buttons"></p>');var t=document.querySelectorAll(".wc-stripe-afterpay-minicart-msg");t&&t.forEach(function(t){this.create_element().mount(t),this.add_eligibility(t,parseFloat(this.get_total_price()))}.bind(this))};var r=[],s=null;"undefined"!=typeof wc_stripe_googlepay_mini_cart_params&&r.push([t,wc_stripe_googlepay_mini_cart_params]),"undefined"!=typeof wc_stripe_applepay_mini_cart_params&&r.push([p,wc_stripe_applepay_mini_cart_params]),"undefined"!=typeof wc_stripe_payment_request_mini_cart_params&&r.push([a,wc_stripe_payment_request_mini_cart_params]),"undefined"!=typeof wc_stripe_afterpay_mini_cart_params&&r.push([o,wc_stripe_afterpay_mini_cart_params]),i(document.body).on("wc_fragments_refreshed wc_fragments_loaded",function(){i(".widget_shopping_cart_content").each(function(t,e){!i(e).find(".wc_stripe_mini_cart_payment_methods").length||(e=i(e).parent()).length&&(t="wc-stripe-mini-cart-idx-"+t,e.addClass(t),e.find(".widget_shopping_cart_content").prepend('<div class="wc-stripe-overlay"></div>'),s="."+t+" .widget_shopping_cart_content p.woocommerce-mini-cart__buttons",r.forEach(function(t){new t[0](t[1])}))})})}(jQuery,window.wc_stripe);
1
+ !function(i,e){function n(t){this.message_container=".widget_shopping_cart_content",e.BaseGateway.call(this,t,s)}function t(t){n.apply(this,arguments)}function p(t){n.apply(this,arguments)}function a(t){n.apply(this,arguments)}function o(t){n.apply(this,arguments)}n.prototype.on_token_received=function(){this.block(),this.block_cart(),e.BaseGateway.prototype.on_token_received.apply(this,arguments)},n.prototype.block_cart=function(){i(this.container).closest(".widget_shopping_cart_content").find(".wc-stripe-overlay").addClass("active")},n.prototype.unblock_cart=function(){i(this.container).closest(".widget_shopping_cart_content").find(".wc-stripe-overlay").removeClass("active")},(t.prototype=Object.assign({},e.BaseGateway.prototype,n.prototype,e.GooglePay.prototype)).initialize=function(){this.createPaymentsClient(),this.isReadyToPay().then(function(){this.$button.find(".gpay-button").addClass("button"),this.append_button()}.bind(this))},t.prototype.create_button=function(){e.GooglePay.prototype.create_button.apply(this,arguments),this.append_button()},t.prototype.append_button=function(){i(this.container).find(".wc-stripe-gpay-mini-cart").empty(),i(this.container).find(".wc-stripe-gpay-mini-cart").append(this.$button).show()},(p.prototype=Object.assign({},e.BaseGateway.prototype,n.prototype,e.ApplePay.prototype)).initialize=function(){e.ApplePay.prototype.initialize.apply(this,arguments)},p.prototype.append_button=function(){i(this.container).find(".wc-stripe-applepay-mini-cart").empty(),i(this.container).find(".wc-stripe-applepay-mini-cart").append(this.$button).show()},(a.prototype=Object.assign({},e.BaseGateway.prototype,n.prototype,e.PaymentRequest.prototype)).initialize=function(){e.PaymentRequest.prototype.initialize.apply(this,arguments)},a.prototype.create_button=function(){this.append_button()},a.prototype.append_button=function(){i(this.container).find(".wc-stripe-payment-request-mini-cart").empty().show(),this.paymentRequestButton.mount(i(this.container).find(".wc-stripe-payment-request-mini-cart").first()[0])},(o.prototype=Object.assign({},e.BaseGateway.prototype,n.prototype,e.Afterpay.prototype)).is_currency_supported=function(){return-1<this.params.currencies.indexOf(this.get_currency())},o.prototype.initialize=function(){i(this.container).length&&this.is_currency_supported()&&(this.create_element(),this.mount_message())},o.prototype.create_element=function(){return this.elements.create("afterpayClearpayMessage",i.extend({},this.params.msg_options,{amount:this.get_total_price_cents(),currency:this.get_currency(),isEligible:this.is_eligible(parseFloat(this.get_total_price()))}))},o.prototype.mount_message=function(){i(".wc-stripe-afterpay-minicart-msg").length||i(".woocommerce-mini-cart__total").after('<p class="wc-stripe-afterpay-minicart-msg buttons"></p>');var t=document.querySelectorAll(".wc-stripe-afterpay-minicart-msg");t&&t.forEach(function(t){this.create_element().mount(t),this.add_eligibility(t,parseFloat(this.get_total_price()))}.bind(this))};var r=[],s=null;"undefined"!=typeof wc_stripe_googlepay_mini_cart_params&&r.push([t,wc_stripe_googlepay_mini_cart_params]),"undefined"!=typeof wc_stripe_applepay_mini_cart_params&&r.push([p,wc_stripe_applepay_mini_cart_params]),"undefined"!=typeof wc_stripe_payment_request_mini_cart_params&&r.push([a,wc_stripe_payment_request_mini_cart_params]),"undefined"!=typeof wc_stripe_afterpay_mini_cart_params&&r.push([o,wc_stripe_afterpay_mini_cart_params]),i(document.body).on("wc_fragments_refreshed wc_fragments_loaded",function(){i(".widget_shopping_cart_content").each(function(t,e){!i(e).find(".wc_stripe_mini_cart_payment_methods").length||(e=i(e).parent()).length&&(t="wc-stripe-mini-cart-idx-"+t,e.addClass(t),e.find(".widget_shopping_cart_content").prepend('<div class="wc-stripe-overlay"></div>'),s="."+t+" .widget_shopping_cart_content p.woocommerce-mini-cart__buttons",r.forEach(function(t){new t[0](t[1])}))})})}(jQuery,window.wc_stripe);
assets/js/frontend/payment-request.js CHANGED
@@ -247,6 +247,7 @@
247
  PaymentRequest.prototype.banner_checkout = function (e) {
248
  this.set_payment_method(this.gateway_id);
249
  this.set_use_new_option(true);
 
250
  }
251
 
252
  PaymentRequest.prototype.on_token_received = function () {
247
  PaymentRequest.prototype.banner_checkout = function (e) {
248
  this.set_payment_method(this.gateway_id);
249
  this.set_use_new_option(true);
250
+ $('[name="terms"]').prop('checked', true);
251
  }
252
 
253
  PaymentRequest.prototype.on_token_received = function () {
assets/js/frontend/payment-request.min.js CHANGED
@@ -1 +1 @@
1
- !function(i,n){var t;i(document.body).is(".single-product")&&((t=function(){n.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this)),this.old_qty=this.get_quantity()}).prototype=i.extend({},n.BaseGateway.prototype,n.ProductGateway.prototype,n.PaymentRequest.prototype),t.prototype.initialize=function(){if(!i(this.container).length)return setTimeout(this.initialize.bind(this),1e3);n.ProductGateway.call(this),n.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){i(document.body).on("change",'[name="quantity"]',this.add_to_cart.bind(this)),i(this.container).parent().parent().addClass("active"),this.is_variable_product()?this.variable_product_selected()?(this.cart_calculation(this.get_product_data().variation.variation_id),i(this.container).removeClass("processingFoundVariation")):this.disable_payment_button():this.cart_calculation()}.bind(this))},t.prototype.add_to_cart=function(t){this.disable_payment_button(),this.old_qty=this.get_quantity();var e=this.get_product_data().variation;this.is_variable_product()&&!this.variable_product_selected()||this.cart_calculation(e.variation_id).then(function(){this.is_variable_product()&&i(this.container).is(".processingFoundVariation")?(this.createPaymentRequest(),this.createPaymentRequestButton(),n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){this.enable_payment_button(),i(this.container).removeClass("processingFoundVariation")}.bind(this))):this.enable_payment_button()}.bind(this))},t.prototype.cart_calculation=function(){return n.ProductGateway.prototype.cart_calculation.apply(this,arguments).then(function(){this.paymentRequest.update(this.get_payment_request_update({total:{pending:!1}}))}.bind(this))["catch"](function(){}.bind(this))},t.prototype.create_button=function(){i("#wc-stripe-payment-request-container").empty(),n.PaymentRequest.prototype.create_button.apply(this,arguments),this.$button=i("#wc-stripe-payment-request-container")},t.prototype.button_click=function(t){this.$button.is(".disabled")?t.preventDefault():0==this.get_quantity()&&(t.preventDefault(),this.submit_error(this.params.messages.invalid_amount))},t.prototype.found_variation=function(){i(this.container).addClass("processingFoundVariation"),n.ProductGateway.prototype.found_variation.apply(this,arguments)},t.prototype.block=function(){i.blockUI({message:this.adding_to_cart?this.params.messages.add_to_cart:null,overlayCSS:{background:"#fff",opacity:.6}})}),i(document.body).is(".woocommerce-cart")&&((t=function(){n.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this))}).prototype=i.extend({},n.BaseGateway.prototype,n.CartGateway.prototype,n.PaymentRequest.prototype),t.prototype.initialize=function(){n.CartGateway.call(this),n.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){i(this.container).addClass("active").parent().addClass("active")}.bind(this))},t.prototype.updated_html=function(){i(this.container).length||(this.can_pay=!1),this.can_pay&&this.initialize()},t.prototype.button_click=function(t){this.paymentRequest.update(this.get_payment_request_update({total:{pending:!1}}))},t.prototype.cart_emptied=function(t){this.can_pay=!1}),i(document.body).is(".woocommerce-checkout")&&((t=function(){n.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this))}).prototype=i.extend({},n.BaseGateway.prototype,n.CheckoutGateway.prototype,n.PaymentRequest.prototype),t.prototype.initialize=function(){n.CheckoutGateway.call(this),i("form.checkout").on("change",".form-row:not(.address-field) .input-text",this.update_payment_request.bind(this)),i(this.container).length&&n.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){var t;this.show_icons(),this.banner_enabled()&&(i(this.banner_container).empty().show().append('<div id="wc-stripe-payment-request-banner"></div>'),i(this.banner_container).show().parent().parent().addClass("active"),(t=this.stripe.elements().create("paymentRequestButton",{paymentRequest:this.paymentRequest,style:{paymentRequestButton:{type:this.params.button.type,theme:this.params.button.theme,height:this.params.button.height}}})).on("click",this.banner_checkout.bind(this)),t.mount("#wc-stripe-payment-request-banner"))}.bind(this))},t.prototype.create_button=function(){this.$button&&this.$button.remove(),this.$button=i('<div id="wc-stripe-payment-request-container"></div>'),i("#place_order").after(this.$button),n.PaymentRequest.prototype.create_button.call(this),this.trigger_payment_method_selected()},t.prototype.updated_checkout=function(){i(this.container).length&&n.PaymentRequest.prototype.initialize.call(this)},t.prototype.banner_checkout=function(t){this.set_payment_method(this.gateway_id),this.set_use_new_option(!0)},t.prototype.on_token_received=function(){n.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.fields.toFormFields(),this.payment_request_options.requestShipping&&this.maybe_set_ship_to_different(),this.checkout_fields_valid()&&this.get_form().submit()},t.prototype.update_payment_request=function(){i(this.container).length&&n.PaymentRequest.prototype.initialize.call(this)},t.prototype.show_icons=function(){i(this.container).length&&i(this.container).find(".wc-stripe-paymentRequest-icon.gpay").show()}),new t}(jQuery,window.wc_stripe);
1
+ !function(i,n){var t;i(document.body).is(".single-product")&&((t=function(){n.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this)),this.old_qty=this.get_quantity()}).prototype=i.extend({},n.BaseGateway.prototype,n.ProductGateway.prototype,n.PaymentRequest.prototype),t.prototype.initialize=function(){if(!i(this.container).length)return setTimeout(this.initialize.bind(this),1e3);n.ProductGateway.call(this),n.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){i(document.body).on("change",'[name="quantity"]',this.add_to_cart.bind(this)),i(this.container).parent().parent().addClass("active"),this.is_variable_product()?this.variable_product_selected()?(this.cart_calculation(this.get_product_data().variation.variation_id),i(this.container).removeClass("processingFoundVariation")):this.disable_payment_button():this.cart_calculation()}.bind(this))},t.prototype.add_to_cart=function(t){this.disable_payment_button(),this.old_qty=this.get_quantity();var e=this.get_product_data().variation;this.is_variable_product()&&!this.variable_product_selected()||this.cart_calculation(e.variation_id).then(function(){this.is_variable_product()&&i(this.container).is(".processingFoundVariation")?(this.createPaymentRequest(),this.createPaymentRequestButton(),n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){this.enable_payment_button(),i(this.container).removeClass("processingFoundVariation")}.bind(this))):this.enable_payment_button()}.bind(this))},t.prototype.cart_calculation=function(){return n.ProductGateway.prototype.cart_calculation.apply(this,arguments).then(function(){this.paymentRequest.update(this.get_payment_request_update({total:{pending:!1}}))}.bind(this))["catch"](function(){}.bind(this))},t.prototype.create_button=function(){i("#wc-stripe-payment-request-container").empty(),n.PaymentRequest.prototype.create_button.apply(this,arguments),this.$button=i("#wc-stripe-payment-request-container")},t.prototype.button_click=function(t){this.$button.is(".disabled")?t.preventDefault():0==this.get_quantity()&&(t.preventDefault(),this.submit_error(this.params.messages.invalid_amount))},t.prototype.found_variation=function(){i(this.container).addClass("processingFoundVariation"),n.ProductGateway.prototype.found_variation.apply(this,arguments)},t.prototype.block=function(){i.blockUI({message:this.adding_to_cart?this.params.messages.add_to_cart:null,overlayCSS:{background:"#fff",opacity:.6}})}),i(document.body).is(".woocommerce-cart")&&((t=function(){n.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this))}).prototype=i.extend({},n.BaseGateway.prototype,n.CartGateway.prototype,n.PaymentRequest.prototype),t.prototype.initialize=function(){n.CartGateway.call(this),n.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){i(this.container).addClass("active").parent().addClass("active")}.bind(this))},t.prototype.updated_html=function(){i(this.container).length||(this.can_pay=!1),this.can_pay&&this.initialize()},t.prototype.button_click=function(t){this.paymentRequest.update(this.get_payment_request_update({total:{pending:!1}}))},t.prototype.cart_emptied=function(t){this.can_pay=!1}),i(document.body).is(".woocommerce-checkout")&&((t=function(){n.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this))}).prototype=i.extend({},n.BaseGateway.prototype,n.CheckoutGateway.prototype,n.PaymentRequest.prototype),t.prototype.initialize=function(){n.CheckoutGateway.call(this),i("form.checkout").on("change",".form-row:not(.address-field) .input-text",this.update_payment_request.bind(this)),i(this.container).length&&n.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){var t;this.show_icons(),this.banner_enabled()&&(i(this.banner_container).empty().show().append('<div id="wc-stripe-payment-request-banner"></div>'),i(this.banner_container).show().parent().parent().addClass("active"),(t=this.stripe.elements().create("paymentRequestButton",{paymentRequest:this.paymentRequest,style:{paymentRequestButton:{type:this.params.button.type,theme:this.params.button.theme,height:this.params.button.height}}})).on("click",this.banner_checkout.bind(this)),t.mount("#wc-stripe-payment-request-banner"))}.bind(this))},t.prototype.create_button=function(){this.$button&&this.$button.remove(),this.$button=i('<div id="wc-stripe-payment-request-container"></div>'),i("#place_order").after(this.$button),n.PaymentRequest.prototype.create_button.call(this),this.trigger_payment_method_selected()},t.prototype.updated_checkout=function(){i(this.container).length&&n.PaymentRequest.prototype.initialize.call(this)},t.prototype.banner_checkout=function(t){this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),i('[name="terms"]').prop("checked",!0)},t.prototype.on_token_received=function(){n.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.fields.toFormFields(),this.payment_request_options.requestShipping&&this.maybe_set_ship_to_different(),this.checkout_fields_valid()&&this.get_form().submit()},t.prototype.update_payment_request=function(){i(this.container).length&&n.PaymentRequest.prototype.initialize.call(this)},t.prototype.show_icons=function(){i(this.container).length&&i(this.container).find(".wc-stripe-paymentRequest-icon.gpay").show()}),new t}(jQuery,window.wc_stripe);
i18n/languages/woo-stripe-payment.pot CHANGED
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2021 Payment Plugins, support@paymentplugins.com
2
  # This file is distributed under the same license as the Payment Plugins for Stripe WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Payment Plugins for Stripe WooCommerce 3.3.14\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-stripe-payment\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2021-12-20T21:39:14+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: woo-stripe-payment\n"
@@ -147,113 +147,113 @@ msgstr ""
147
  msgid "Order refunded in Stripe. Amount: %s"
148
  msgstr ""
149
 
150
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:582
151
  msgid "Order amount captured in Stripe. Amount: %s"
152
  msgstr ""
153
 
154
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:586
155
  msgid "Error capturing charge in Stripe. Reason: %s"
156
  msgstr ""
157
 
158
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:607
159
  msgid "Error voiding charge. Reason: %s"
160
  msgstr ""
161
 
162
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:609
163
  msgid "Charge voided in Stripe."
164
  msgstr ""
165
 
166
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:787
167
  msgid "n/a"
168
  msgstr ""
169
 
170
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:815
171
  #: includes/admin/meta-boxes/views/html-order-pay.php:42
172
  msgid "New Card"
173
  msgstr ""
174
 
175
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:819
176
  #: includes/admin/meta-boxes/views/html-order-pay.php:30
177
  msgid "Saved Cards"
178
  msgstr ""
179
 
180
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1014
181
  msgid "Attempt to save payment method failed. Reason: %s"
182
  msgstr ""
183
 
184
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1039
185
  msgid "We were not able to save your payment method. To prevent billing issues with your subscription, please add a payment method to the subscription."
186
  msgstr ""
187
 
188
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1041
189
  msgid "We were not able to save your payment method. Reason: %s"
190
  msgstr ""
191
 
192
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1075
193
  msgid "Payment Method Token"
194
  msgstr ""
195
 
196
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1095
197
  msgid "Recurring payment for order failed. Reason: %s"
198
  msgstr ""
199
 
200
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1109
201
  msgid "Recurring payment captured in Stripe. Payment method: %s"
202
  msgstr ""
203
 
204
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1112
205
  msgid "Recurring payment authorized in Stripe. Payment method: %s"
206
  msgstr ""
207
 
208
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1115
209
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1348
210
  msgid "Customer must manually complete payment for payment method %s"
211
  msgstr ""
212
 
213
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1149
214
  #: includes/abstract/abstract-wc-stripe-payment.php:268
215
  msgid "Order %1$s from %2$s"
216
  msgstr ""
217
 
218
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1334
219
  msgid "Pre-order payment for order failed. Reason: %s"
220
  msgstr ""
221
 
222
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1342
223
  msgid "Pre-order payment captured in Stripe. Payment method: %s"
224
  msgstr ""
225
 
226
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1345
227
  msgid "Pre-order payment authorized in Stripe. Payment method: %s"
228
  msgstr ""
229
 
230
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1417
231
  msgid "Cannot process payment"
232
  msgstr ""
233
 
234
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1425
235
  msgid "Increase your conversion rate by offering %1$s on your Product and Cart pages, or at the top of the checkout page. <br/><strong>Note:</strong> you can control which products display %s by going to the product edit page."
236
  msgstr ""
237
 
238
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1541
239
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1572
240
  msgid "Shipping"
241
  msgstr ""
242
 
243
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1549
244
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1575
245
  msgid "Discount"
246
  msgstr ""
247
 
248
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1552
249
  msgid "Tax"
250
  msgstr ""
251
 
252
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1582
253
  msgid "Fees"
254
  msgstr ""
255
 
256
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1776
257
  msgid "Error saving payment method for subscription. Reason: %s"
258
  msgstr ""
259
 
@@ -285,24 +285,24 @@ msgstr ""
285
 
286
  #: includes/abstract/abstract-wc-stripe-rest-controller.php:58
287
  #: includes/controllers/class-wc-stripe-controller-gateway-settings.php:290
288
- #: includes/controllers/class-wc-stripe-controller-order-actions.php:332
289
  msgid "You do not have permissions to access this resource."
290
  msgstr ""
291
 
292
- #: includes/admin/class-wc-stripe-admin-menus.php:19
293
  msgid "Stripe Gateway"
294
  msgstr ""
295
 
296
- #: includes/admin/class-wc-stripe-admin-menus.php:23
297
  #: includes/class-wc-stripe-install.php:32
298
  msgid "Settings"
299
  msgstr ""
300
 
301
- #: includes/admin/class-wc-stripe-admin-menus.php:24
302
  msgid "Logs"
303
  msgstr ""
304
 
305
- #: includes/admin/class-wc-stripe-admin-menus.php:25
306
  #: includes/admin/views/html-settings-nav.php:24
307
  #: includes/class-wc-stripe-install.php:33
308
  msgid "Documentation"
@@ -338,18 +338,22 @@ msgstr ""
338
  msgid "Stripe Settings"
339
  msgstr ""
340
 
341
- #: includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php:86
342
  msgid "You must create the order before payment can be processed."
343
  msgstr ""
344
 
345
- #: includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php:105
346
  msgid "Stripe Fee"
347
  msgstr ""
348
 
349
- #: includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php:110
350
  msgid "Net payout"
351
  msgstr ""
352
 
 
 
 
 
353
  #: includes/admin/meta-boxes/views/html-charge-data-subview.php:9
354
  #: includes/admin/views/html-user-profile.php:36
355
  #: includes/admin/views/html-user-profile.php:69
@@ -849,23 +853,23 @@ msgstr ""
849
  msgid "No matches found"
850
  msgstr ""
851
 
852
- #: includes/class-wc-stripe-redirect-handler.php:38
853
  msgid "Error retrieving payment source. Reason: %s"
854
  msgstr ""
855
 
856
- #: includes/class-wc-stripe-redirect-handler.php:40
857
  msgid "This request is invalid. Please try again."
858
  msgstr ""
859
 
860
- #: includes/class-wc-stripe-redirect-handler.php:60
861
  msgid "Payment authorization failed. Please select another payment method."
862
  msgstr ""
863
 
864
- #: includes/class-wc-stripe-redirect-handler.php:66
865
  msgid "Payment authorization failed."
866
  msgstr ""
867
 
868
- #: includes/class-wc-stripe-rest-api.php:41
869
  msgid "%1$s is an invalid controller name."
870
  msgstr ""
871
 
@@ -1181,7 +1185,7 @@ msgstr ""
1181
  msgid "If enabled, the Afterpay message will contain the interest free text."
1182
  msgstr ""
1183
 
1184
- #: includes/gateways/class-wc-payment-gateway-stripe-afterpay.php:400
1185
  msgid "Store currency must be %s for Afterpay to show because your Stripe account is registered in %s. This is a requirement of Afterpay."
1186
  msgstr ""
1187
 
@@ -1374,15 +1378,41 @@ msgstr ""
1374
  msgid "Multibanco gateway that integrates with your Stripe account."
1375
  msgstr ""
1376
 
1377
- #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:27
1378
  #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:28
 
1379
  msgid "OXXO"
1380
  msgstr ""
1381
 
1382
- #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:29
1383
  msgid "OXXO gateway that integrates with your Stripe account."
1384
  msgstr ""
1385
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1386
  #: includes/gateways/class-wc-payment-gateway-stripe-p24.php:25
1387
  #: includes/gateways/class-wc-payment-gateway-stripe-p24.php:28
1388
  msgid "Przelewy24"
@@ -1459,24 +1489,24 @@ msgstr ""
1459
  msgid "Sofort gateway that integrates with your Stripe account."
1460
  msgstr ""
1461
 
1462
- #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:22
1463
- #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:25
1464
  msgid "WeChat"
1465
  msgstr ""
1466
 
1467
- #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:26
1468
  msgid "WeChat gateway that integrates with your Stripe account."
1469
  msgstr ""
1470
 
1471
- #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:40
1472
  msgid "QRCode Size"
1473
  msgstr ""
1474
 
1475
- #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:43
1476
  msgid "This option controls the width and height in pixels of the QRCode."
1477
  msgstr ""
1478
 
1479
- #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:91
1480
  #: packages/blocks/assets/js/payment-methods/local-payment/wechat.js:130
1481
  #: packages/blocks/build/commons.js:4283
1482
  msgid "Scan the QR code using your WeChat app. Once scanned click the Place Order button."
1
+ # Copyright (C) 2022 Payment Plugins, support@paymentplugins.com
2
  # This file is distributed under the same license as the Payment Plugins for Stripe WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Payment Plugins for Stripe WooCommerce 3.3.15\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-stripe-payment\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-01-04T17:54:06+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: woo-stripe-payment\n"
147
  msgid "Order refunded in Stripe. Amount: %s"
148
  msgstr ""
149
 
150
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:578
151
  msgid "Order amount captured in Stripe. Amount: %s"
152
  msgstr ""
153
 
154
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:582
155
  msgid "Error capturing charge in Stripe. Reason: %s"
156
  msgstr ""
157
 
158
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:603
159
  msgid "Error voiding charge. Reason: %s"
160
  msgstr ""
161
 
162
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:605
163
  msgid "Charge voided in Stripe."
164
  msgstr ""
165
 
166
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:783
167
  msgid "n/a"
168
  msgstr ""
169
 
170
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:811
171
  #: includes/admin/meta-boxes/views/html-order-pay.php:42
172
  msgid "New Card"
173
  msgstr ""
174
 
175
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:815
176
  #: includes/admin/meta-boxes/views/html-order-pay.php:30
177
  msgid "Saved Cards"
178
  msgstr ""
179
 
180
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1010
181
  msgid "Attempt to save payment method failed. Reason: %s"
182
  msgstr ""
183
 
184
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1035
185
  msgid "We were not able to save your payment method. To prevent billing issues with your subscription, please add a payment method to the subscription."
186
  msgstr ""
187
 
188
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1037
189
  msgid "We were not able to save your payment method. Reason: %s"
190
  msgstr ""
191
 
192
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1071
193
  msgid "Payment Method Token"
194
  msgstr ""
195
 
196
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1091
197
  msgid "Recurring payment for order failed. Reason: %s"
198
  msgstr ""
199
 
200
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1105
201
  msgid "Recurring payment captured in Stripe. Payment method: %s"
202
  msgstr ""
203
 
204
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1108
205
  msgid "Recurring payment authorized in Stripe. Payment method: %s"
206
  msgstr ""
207
 
208
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1111
209
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1344
210
  msgid "Customer must manually complete payment for payment method %s"
211
  msgstr ""
212
 
213
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1145
214
  #: includes/abstract/abstract-wc-stripe-payment.php:268
215
  msgid "Order %1$s from %2$s"
216
  msgstr ""
217
 
218
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1330
219
  msgid "Pre-order payment for order failed. Reason: %s"
220
  msgstr ""
221
 
222
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1338
223
  msgid "Pre-order payment captured in Stripe. Payment method: %s"
224
  msgstr ""
225
 
226
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1341
227
  msgid "Pre-order payment authorized in Stripe. Payment method: %s"
228
  msgstr ""
229
 
230
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1413
231
  msgid "Cannot process payment"
232
  msgstr ""
233
 
234
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1421
235
  msgid "Increase your conversion rate by offering %1$s on your Product and Cart pages, or at the top of the checkout page. <br/><strong>Note:</strong> you can control which products display %s by going to the product edit page."
236
  msgstr ""
237
 
238
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1537
239
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1568
240
  msgid "Shipping"
241
  msgstr ""
242
 
243
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1545
244
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1571
245
  msgid "Discount"
246
  msgstr ""
247
 
248
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1548
249
  msgid "Tax"
250
  msgstr ""
251
 
252
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1578
253
  msgid "Fees"
254
  msgstr ""
255
 
256
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1772
257
  msgid "Error saving payment method for subscription. Reason: %s"
258
  msgstr ""
259
 
285
 
286
  #: includes/abstract/abstract-wc-stripe-rest-controller.php:58
287
  #: includes/controllers/class-wc-stripe-controller-gateway-settings.php:290
288
+ #: includes/controllers/class-wc-stripe-controller-order-actions.php:333
289
  msgid "You do not have permissions to access this resource."
290
  msgstr ""
291
 
292
+ #: includes/admin/class-wc-stripe-admin-menus.php:20
293
  msgid "Stripe Gateway"
294
  msgstr ""
295
 
296
+ #: includes/admin/class-wc-stripe-admin-menus.php:24
297
  #: includes/class-wc-stripe-install.php:32
298
  msgid "Settings"
299
  msgstr ""
300
 
301
+ #: includes/admin/class-wc-stripe-admin-menus.php:25
302
  msgid "Logs"
303
  msgstr ""
304
 
305
+ #: includes/admin/class-wc-stripe-admin-menus.php:26
306
  #: includes/admin/views/html-settings-nav.php:24
307
  #: includes/class-wc-stripe-install.php:33
308
  msgid "Documentation"
338
  msgid "Stripe Settings"
339
  msgstr ""
340
 
341
+ #: includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php:87
342
  msgid "You must create the order before payment can be processed."
343
  msgstr ""
344
 
345
+ #: includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php:106
346
  msgid "Stripe Fee"
347
  msgstr ""
348
 
349
+ #: includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php:111
350
  msgid "Net payout"
351
  msgstr ""
352
 
353
+ #: includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php:139
354
+ msgid "If the capture amount is less than the order total, make sure you edit your order line items to reflect the new capture amount."
355
+ msgstr ""
356
+
357
  #: includes/admin/meta-boxes/views/html-charge-data-subview.php:9
358
  #: includes/admin/views/html-user-profile.php:36
359
  #: includes/admin/views/html-user-profile.php:69
853
  msgid "No matches found"
854
  msgstr ""
855
 
856
+ #: includes/class-wc-stripe-redirect-handler.php:40
857
  msgid "Error retrieving payment source. Reason: %s"
858
  msgstr ""
859
 
860
+ #: includes/class-wc-stripe-redirect-handler.php:42
861
  msgid "This request is invalid. Please try again."
862
  msgstr ""
863
 
864
+ #: includes/class-wc-stripe-redirect-handler.php:62
865
  msgid "Payment authorization failed. Please select another payment method."
866
  msgstr ""
867
 
868
+ #: includes/class-wc-stripe-redirect-handler.php:68
869
  msgid "Payment authorization failed."
870
  msgstr ""
871
 
872
+ #: includes/class-wc-stripe-rest-api.php:45
873
  msgid "%1$s is an invalid controller name."
874
  msgstr ""
875
 
1185
  msgid "If enabled, the Afterpay message will contain the interest free text."
1186
  msgstr ""
1187
 
1188
+ #: includes/gateways/class-wc-payment-gateway-stripe-afterpay.php:401
1189
  msgid "Store currency must be %s for Afterpay to show because your Stripe account is registered in %s. This is a requirement of Afterpay."
1190
  msgstr ""
1191
 
1378
  msgid "Multibanco gateway that integrates with your Stripe account."
1379
  msgstr ""
1380
 
 
1381
  #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:28
1382
+ #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:29
1383
  msgid "OXXO"
1384
  msgstr ""
1385
 
1386
+ #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:30
1387
  msgid "OXXO gateway that integrates with your Stripe account."
1388
  msgstr ""
1389
 
1390
+ #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:43
1391
+ msgid "Expiration Days"
1392
+ msgstr ""
1393
+
1394
+ #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:47
1395
+ msgid "%s day"
1396
+ msgid_plural "%s days"
1397
+ msgstr[0] ""
1398
+ msgstr[1] ""
1399
+
1400
+ #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:52
1401
+ msgid "The number of days before the OXXO voucher expires."
1402
+ msgstr ""
1403
+
1404
+ #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:55
1405
+ msgid "Voucher Link In Email"
1406
+ msgstr ""
1407
+
1408
+ #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:59
1409
+ msgid "If enabled, the voucher link will be included in the order on-hold email sent to the customer."
1410
+ msgstr ""
1411
+
1412
+ #: includes/gateways/class-wc-payment-gateway-stripe-oxxo.php:93
1413
+ msgid "Please click %shere%s to view your OXXO voucher."
1414
+ msgstr ""
1415
+
1416
  #: includes/gateways/class-wc-payment-gateway-stripe-p24.php:25
1417
  #: includes/gateways/class-wc-payment-gateway-stripe-p24.php:28
1418
  msgid "Przelewy24"
1489
  msgid "Sofort gateway that integrates with your Stripe account."
1490
  msgstr ""
1491
 
1492
+ #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:23
1493
+ #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:26
1494
  msgid "WeChat"
1495
  msgstr ""
1496
 
1497
+ #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:27
1498
  msgid "WeChat gateway that integrates with your Stripe account."
1499
  msgstr ""
1500
 
1501
+ #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:41
1502
  msgid "QRCode Size"
1503
  msgstr ""
1504
 
1505
+ #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:44
1506
  msgid "This option controls the width and height in pixels of the QRCode."
1507
  msgstr ""
1508
 
1509
+ #: includes/gateways/class-wc-payment-gateway-stripe-wechat.php:92
1510
  #: packages/blocks/assets/js/payment-methods/local-payment/wechat.js:130
1511
  #: packages/blocks/build/commons.js:4283
1512
  msgid "Scan the QR code using your WeChat app. Once scanned click the Place Order button."
includes/abstract/abstract-wc-payment-gateway-stripe.php CHANGED
@@ -14,8 +14,8 @@ require_once( WC_STRIPE_PLUGIN_FILE_PATH . 'includes/traits/wc-stripe-payment-tr
14
 
15
  /**
16
  *
17
- * @since 3.0.0
18
- * @author PaymentPlugins
19
  * @package Stripe/Abstract
20
  *
21
  */
@@ -575,10 +575,6 @@ abstract class WC_Payment_Gateway_Stripe extends WC_Payment_Gateway {
575
  }
576
  }
577
  $order->payment_complete();
578
- if ( $amount != $order->get_total() ) {
579
- $order->set_total( $amount );
580
- $order->save();
581
- }
582
  $order->add_order_note( sprintf( __( 'Order amount captured in Stripe. Amount: %s', 'woo-stripe-payment' ),
583
  wc_price( $amount, array( 'currency' => $order->get_currency(), ) ) )
584
  );
14
 
15
  /**
16
  *
17
+ * @since 3.0.0
18
+ * @author PaymentPlugins
19
  * @package Stripe/Abstract
20
  *
21
  */
575
  }
576
  }
577
  $order->payment_complete();
 
 
 
 
578
  $order->add_order_note( sprintf( __( 'Order amount captured in Stripe. Amount: %s', 'woo-stripe-payment' ),
579
  wc_price( $amount, array( 'currency' => $order->get_currency(), ) ) )
580
  );
includes/admin/class-wc-stripe-admin-assets.php CHANGED
@@ -32,10 +32,6 @@ class WC_Stripe_Admin_Assets {
32
  'jquery',
33
  'jquery-blockui'
34
  ), stripe_wc()->version, true );
35
- wp_register_script( 'wc-stripe-meta-boxes-subscription', $js_path . 'admin/meta-boxes-subscription.js', array(
36
- 'jquery',
37
- 'jquery-blockui'
38
- ), stripe_wc()->version, true );
39
  wp_register_script(
40
  'wc-stripe-product-data',
41
  $js_path . 'admin/meta-boxes-product-data.js',
32
  'jquery',
33
  'jquery-blockui'
34
  ), stripe_wc()->version, true );
 
 
 
 
35
  wp_register_script(
36
  'wc-stripe-product-data',
37
  $js_path . 'admin/meta-boxes-product-data.js',
includes/admin/class-wc-stripe-admin-menus.php CHANGED
@@ -1,9 +1,10 @@
1
  <?php
 
2
  defined( 'ABSPATH' ) || exit();
3
 
4
  /**
5
  *
6
- * @since 3.0.0
7
  * @package Stripe/Admin
8
  *
9
  */
@@ -32,9 +33,6 @@ class WC_Stripe_Admin_Menus {
32
  }
33
  }
34
 
35
- public static function data_migration_page() {
36
- include 'views/html-data-migration.php';
37
- }
38
  }
39
 
40
  WC_Stripe_Admin_Menus::init();
1
  <?php
2
+
3
  defined( 'ABSPATH' ) || exit();
4
 
5
  /**
6
  *
7
+ * @since 3.0.0
8
  * @package Stripe/Admin
9
  *
10
  */
33
  }
34
  }
35
 
 
 
 
36
  }
37
 
38
  WC_Stripe_Admin_Menus::init();
includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php CHANGED
@@ -5,7 +5,7 @@ defined( 'ABSPATH' ) || exit();
5
  /**
6
  *
7
  * @package Stripe/Admin
8
- * @author PaymentPlugins
9
  *
10
  */
11
  class WC_Stripe_Admin_Order_Metaboxes {
@@ -61,7 +61,8 @@ class WC_Stripe_Admin_Order_Metaboxes {
61
  && $order->has_status( apply_filters( 'wc_stripe_pay_order_statuses', array(
62
  'pending',
63
  'auto-draft'
64
- ), $order ) ) ) {
 
65
  include 'views/html-order-pay.php';
66
  $payment_methods = array();
67
  foreach ( WC()->payment_gateways()->payment_gateways() as $gateway ) {
@@ -134,6 +135,9 @@ class WC_Stripe_Admin_Order_Metaboxes {
134
  'pay' => WC_Stripe_Rest_API::get_endpoint( stripe_wc()->rest_api->order_actions->rest_uri( 'pay' ) ),
135
  'payment_methods' => WC_Stripe_Rest_API::get_endpoint( stripe_wc()->rest_api->order_actions->rest_uri( 'customer-payment-methods' ) ),
136
  ),
 
 
 
137
  )
138
  );
139
  }
5
  /**
6
  *
7
  * @package Stripe/Admin
8
+ * @author PaymentPlugins
9
  *
10
  */
11
  class WC_Stripe_Admin_Order_Metaboxes {
61
  && $order->has_status( apply_filters( 'wc_stripe_pay_order_statuses', array(
62
  'pending',
63
  'auto-draft'
64
+ ), $order ) )
65
+ ) {
66
  include 'views/html-order-pay.php';
67
  $payment_methods = array();
68
  foreach ( WC()->payment_gateways()->payment_gateways() as $gateway ) {
135
  'pay' => WC_Stripe_Rest_API::get_endpoint( stripe_wc()->rest_api->order_actions->rest_uri( 'pay' ) ),
136
  'payment_methods' => WC_Stripe_Rest_API::get_endpoint( stripe_wc()->rest_api->order_actions->rest_uri( 'customer-payment-methods' ) ),
137
  ),
138
+ 'messages' => array(
139
+ 'capture_amount' => __( 'If the capture amount is less than the order total, make sure you edit your order line items to reflect the new capture amount.', 'woo-stripe-payment' )
140
+ )
141
  )
142
  );
143
  }
includes/class-stripe.php CHANGED
@@ -26,7 +26,7 @@ class WC_Stripe_Manager {
26
  *
27
  * @var string
28
  */
29
- public $version = '3.3.14';
30
 
31
  /**
32
  *
26
  *
27
  * @var string
28
  */
29
+ public $version = '3.3.15';
30
 
31
  /**
32
  *
includes/class-wc-stripe-gateway.php CHANGED
@@ -7,7 +7,7 @@ require_once( WC_STRIPE_PLUGIN_FILE_PATH . 'includes/class-wc-stripe-api-operati
7
  /**
8
  * Gateway class that abstracts all API calls to Stripe.
9
  *
10
- * @author Payment Plugins
11
  * @package Stripe/Classes
12
  *
13
  * @property \Stripe\Service\AccountLinkService $accountLinks
@@ -455,7 +455,7 @@ class WC_Stripe_Gateway {
455
  * @param string $code
456
  *
457
  * @since 3.1.1
458
- * @todo use in future version to replace manual returns of WP_Error in each method
459
  */
460
  public function get_wp_error( $e, $code = 'stripe-error' ) {
461
  if ( ( $json_body = $e->getJsonBody() ) ) {
@@ -468,13 +468,17 @@ class WC_Stripe_Gateway {
468
  }
469
 
470
  /**
471
- * @param $mode
472
  *
473
  * @since 3.3.13
474
  * @return $this
475
  */
476
  public function mode( $mode ) {
477
- $this->mode = $mode;
 
 
 
 
478
 
479
  return $this;
480
  }
7
  /**
8
  * Gateway class that abstracts all API calls to Stripe.
9
  *
10
+ * @author Payment Plugins
11
  * @package Stripe/Classes
12
  *
13
  * @property \Stripe\Service\AccountLinkService $accountLinks
455
  * @param string $code
456
  *
457
  * @since 3.1.1
458
+ * @todo use in future version to replace manual returns of WP_Error in each method
459
  */
460
  public function get_wp_error( $e, $code = 'stripe-error' ) {
461
  if ( ( $json_body = $e->getJsonBody() ) ) {
468
  }
469
 
470
  /**
471
+ * @param string|WC_Order $mode
472
  *
473
  * @since 3.3.13
474
  * @return $this
475
  */
476
  public function mode( $mode ) {
477
+ if ( $mode instanceof WC_Order ) {
478
+ $this->mode = wc_stripe_order_mode( $mode );
479
+ } else {
480
+ $this->mode = $mode;
481
+ }
482
 
483
  return $this;
484
  }
includes/class-wc-stripe-payment-intent.php CHANGED
@@ -6,9 +6,9 @@ require_once( WC_STRIPE_PLUGIN_FILE_PATH . 'includes/abstract/abstract-wc-stripe
6
 
7
  /**
8
  *
9
- * @since 3.1.0
10
  *
11
- * @author Payment Plugins
12
  * @package Stripe/Classes
13
  */
14
  class WC_Stripe_Payment_Intent extends WC_Stripe_Payment {
@@ -77,7 +77,7 @@ class WC_Stripe_Payment_Intent extends WC_Stripe_Payment {
77
  // If the payment method isn't synchronous, set its status to on-hold so if the customer
78
  // skips the redirect and the payment takes 1 or more days, the payment won't be cancelled
79
  // due to the WooCommerce pending payment status.
80
- if ( ! $this->payment_method->synchronous ) {
81
  $order->update_status( 'on-hold' );
82
  }
83
 
@@ -229,7 +229,8 @@ class WC_Stripe_Payment_Intent extends WC_Stripe_Payment {
229
  && apply_filters( 'wc_stripe_force_save_payment_method',
230
  false,
231
  $order,
232
- $this->payment_method ) ) ) {
 
233
  $args['setup_future_usage'] = 'off_session';
234
  }
235
 
6
 
7
  /**
8
  *
9
+ * @since 3.1.0
10
  *
11
+ * @author Payment Plugins
12
  * @package Stripe/Classes
13
  */
14
  class WC_Stripe_Payment_Intent extends WC_Stripe_Payment {
77
  // If the payment method isn't synchronous, set its status to on-hold so if the customer
78
  // skips the redirect and the payment takes 1 or more days, the payment won't be cancelled
79
  // due to the WooCommerce pending payment status.
80
+ if ( apply_filters( 'wc_stripe_asyncronous_payment_method_' . $this->payment_method->id, ! $this->payment_method->synchronous, $order, $this->payment_method ) ) {
81
  $order->update_status( 'on-hold' );
82
  }
83
 
229
  && apply_filters( 'wc_stripe_force_save_payment_method',
230
  false,
231
  $order,
232
+ $this->payment_method ) )
233
+ ) {
234
  $args['setup_future_usage'] = 'off_session';
235
  }
236
 
includes/class-wc-stripe-redirect-handler.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) || exit();
4
 
5
  /**
6
  *
7
- * @author PaymentPlugins
8
  * @package Stripe/Classes
9
  *
10
  */
@@ -21,6 +21,8 @@ class WC_Stripe_Redirect_Handler {
21
  public static function local_payment_redirect() {
22
  if ( isset( $_GET['_stripe_local_payment'] ) ) {
23
  self::process_redirect();
 
 
24
  }
25
  }
26
 
@@ -97,6 +99,23 @@ class WC_Stripe_Redirect_Handler {
97
  }
98
  }
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  }
101
 
102
  WC_Stripe_Redirect_Handler::init();
4
 
5
  /**
6
  *
7
+ * @author PaymentPlugins
8
  * @package Stripe/Classes
9
  *
10
  */
21
  public static function local_payment_redirect() {
22
  if ( isset( $_GET['_stripe_local_payment'] ) ) {
23
  self::process_redirect();
24
+ } elseif ( isset( $_GET['_stripe_voucher_payment'], $_GET['order-id'] ) ) {
25
+ self::process_voucher_redirect();
26
  }
27
  }
28
 
99
  }
100
  }
101
 
102
+ private static function process_voucher_redirect() {
103
+ $payment_method = wc_clean( $_GET['_stripe_voucher_payment'] );
104
+ /**
105
+ * @var \WC_Payment_Gateway_Stripe $payment_method
106
+ */
107
+ $payment_method = WC()->payment_gateways()->payment_gateways()[ $payment_method ];
108
+ $order = wc_get_order( absint( wc_clean( $_GET['order-id'] ) ) );
109
+ $order_key = isset( $_GET['order-key'] ) ? wc_clean( wp_unslash( $_GET['order-key'] ) ) : '';
110
+ if ( $order && hash_equals( $order->get_order_key(), $order_key ) ) {
111
+ if ( method_exists( $payment_method, 'process_voucher_order_status' ) ) {
112
+ $payment_method->process_voucher_order_status( $order );
113
+ wp_safe_redirect( $payment_method->get_return_url( $order ) );
114
+ exit();
115
+ }
116
+ }
117
+ }
118
+
119
  }
120
 
121
  WC_Stripe_Redirect_Handler::init();
includes/class-wc-stripe-rest-api.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  defined( 'ABSPATH' ) || exit();
3
 
4
  /**
@@ -33,12 +34,15 @@ class WC_Stripe_Rest_API {
33
 
34
  /**
35
  *
36
- * @param WC_Stripe_Rest_Controller $key
 
 
37
  */
38
  public function __get( $key ) {
39
  $controller = isset( $this->controllers[ $key ] ) ? $this->controllers[ $key ] : '';
40
  if ( empty( $controller ) ) {
41
- wc_doing_it_wrong( __FUNCTION__, sprintf( __( '%1$s is an invalid controller name.', 'woo-stripe-payment' ), $key ),
 
42
  stripe_wc()->version );
43
  }
44
 
@@ -133,8 +137,9 @@ class WC_Stripe_Rest_API {
133
  /**
134
  * Return true if this is a WP rest request. This function is a wrapper for WC()->is_rest_api_request()
135
  * if it exists.
136
- * @return bool
137
  * @since 3.2.7
 
138
  */
139
  public static function is_wp_rest_request() {
140
  if ( function_exists( 'WC' ) && property_exists( WC(), 'is_rest_api_request' ) ) {
@@ -160,19 +165,22 @@ class WC_Stripe_Rest_API {
160
  *
161
  * @param string $path
162
  *
163
- * @return string
164
  * @since 3.2.7
 
165
  */
166
  public static function get_endpoint( $path ) {
167
  if ( version_compare( WC()->version, '3.2.0', '<' ) ) {
168
  $endpoint = esc_url_raw( apply_filters( 'woocommerce_ajax_get_endpoint',
169
- add_query_arg( 'wc-ajax', 'wc_stripe_frontend_request', remove_query_arg( array(
170
- 'remove_item',
171
- 'add-to-cart',
172
- 'added-to-cart',
173
- 'order_again',
174
- '_wpnonce'
175
- ), home_url( '/', 'relative' ) ) ), 'wc_stripe_frontend_request' ) );
 
 
 
176
  } else {
177
  $endpoint = WC_AJAX::get_endpoint( 'wc_stripe_frontend_request' );
178
  }
@@ -185,4 +193,5 @@ class WC_Stripe_Rest_API {
185
 
186
  return add_query_arg( array( 'action' => 'wc_stripe_admin_request', 'path' => '/' . trim( $path, '/' ) ), $url );
187
  }
 
188
  }
1
  <?php
2
+
3
  defined( 'ABSPATH' ) || exit();
4
 
5
  /**
34
 
35
  /**
36
  *
37
+ * @param string $key
38
+ *
39
+ * @return WC_Stripe_Rest_Controller
40
  */
41
  public function __get( $key ) {
42
  $controller = isset( $this->controllers[ $key ] ) ? $this->controllers[ $key ] : '';
43
  if ( empty( $controller ) ) {
44
+ wc_doing_it_wrong( __FUNCTION__,
45
+ sprintf( __( '%1$s is an invalid controller name.', 'woo-stripe-payment' ), $key ),
46
  stripe_wc()->version );
47
  }
48
 
137
  /**
138
  * Return true if this is a WP rest request. This function is a wrapper for WC()->is_rest_api_request()
139
  * if it exists.
140
+ *
141
  * @since 3.2.7
142
+ * @return bool
143
  */
144
  public static function is_wp_rest_request() {
145
  if ( function_exists( 'WC' ) && property_exists( WC(), 'is_rest_api_request' ) ) {
165
  *
166
  * @param string $path
167
  *
 
168
  * @since 3.2.7
169
+ * @return string
170
  */
171
  public static function get_endpoint( $path ) {
172
  if ( version_compare( WC()->version, '3.2.0', '<' ) ) {
173
  $endpoint = esc_url_raw( apply_filters( 'woocommerce_ajax_get_endpoint',
174
+ add_query_arg( 'wc-ajax',
175
+ 'wc_stripe_frontend_request',
176
+ remove_query_arg( array(
177
+ 'remove_item',
178
+ 'add-to-cart',
179
+ 'added-to-cart',
180
+ 'order_again',
181
+ '_wpnonce'
182
+ ), home_url( '/', 'relative' ) ) ),
183
+ 'wc_stripe_frontend_request' ) );
184
  } else {
185
  $endpoint = WC_AJAX::get_endpoint( 'wc_stripe_frontend_request' );
186
  }
193
 
194
  return add_query_arg( array( 'action' => 'wc_stripe_admin_request', 'path' => '/' . trim( $path, '/' ) ), $url );
195
  }
196
+
197
  }
includes/controllers/class-wc-stripe-controller-order-actions.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) || exit();
4
 
5
  /**
6
  *
7
- * @author PaymentPlugins
8
  * @package Stripe/Controllers
9
  *
10
  */
@@ -312,6 +312,7 @@ class WC_Stripe_Controller_Order_Actions extends WC_Stripe_Rest_Controller {
312
  'data' => array(
313
  'order_id' => $order->get_id(),
314
  'order_number' => $order->get_order_number(),
 
315
  'charge' => $charge->jsonSerialize(),
316
  'html' => $html,
317
  ),
4
 
5
  /**
6
  *
7
+ * @author PaymentPlugins
8
  * @package Stripe/Controllers
9
  *
10
  */
312
  'data' => array(
313
  'order_id' => $order->get_id(),
314
  'order_number' => $order->get_order_number(),
315
+ 'order_total' => $order->get_total(),
316
  'charge' => $charge->jsonSerialize(),
317
  'html' => $html,
318
  ),
includes/gateways/class-wc-payment-gateway-stripe-afterpay.php CHANGED
@@ -9,7 +9,7 @@ if ( ! class_exists( 'WC_Payment_Gateway_Stripe_Local_Payment' ) ) {
9
  /**
10
  * Class WC_Payment_Gateway_Stripe_Afterpay
11
  *
12
- * @since 3.3.1
13
  * @package Stripe/Gateways
14
  */
15
  class WC_Payment_Gateway_Stripe_Afterpay extends WC_Payment_Gateway_Stripe_Local_Payment {
@@ -333,6 +333,7 @@ class WC_Payment_Gateway_Stripe_Afterpay extends WC_Payment_Gateway_Stripe_Local
333
 
334
  public function get_localized_params( $context = 'checkout' ) {
335
  $params = parent::get_localized_params();
 
336
  $params['msg_options'] = $this->get_afterpay_message_options( $context );
337
  $params['supported_locales'] = $this->get_supported_locales();
338
  $params['requirements'] = $this->get_required_parameters();
9
  /**
10
  * Class WC_Payment_Gateway_Stripe_Afterpay
11
  *
12
+ * @since 3.3.1
13
  * @package Stripe/Gateways
14
  */
15
  class WC_Payment_Gateway_Stripe_Afterpay extends WC_Payment_Gateway_Stripe_Local_Payment {
333
 
334
  public function get_localized_params( $context = 'checkout' ) {
335
  $params = parent::get_localized_params();
336
+ $params['currencies'] = $this->currencies;
337
  $params['msg_options'] = $this->get_afterpay_message_options( $context );
338
  $params['supported_locales'] = $this->get_supported_locales();
339
  $params['requirements'] = $this->get_required_parameters();
includes/gateways/class-wc-payment-gateway-stripe-klarna.php CHANGED
@@ -19,7 +19,7 @@ class WC_Payment_Gateway_Stripe_Klarna extends WC_Payment_Gateway_Stripe_Local_P
19
  public function __construct() {
20
  $this->local_payment_type = 'klarna';
21
  $this->currencies = array( 'EUR', 'SEK', 'NOK', 'DKK', 'GBP', 'USD' );
22
- $this->countries = $this->limited_countries = array( 'US', 'AT', 'FI', 'DE', 'NL', 'DK', 'NO', 'SE', 'GB', 'BE', 'ES', 'IT' );
23
  $this->id = 'stripe_klarna';
24
  $this->tab_title = __( 'Klarna', 'woo-stripe-payment' );
25
  $this->token_type = 'Stripe_Local';
@@ -33,7 +33,7 @@ class WC_Payment_Gateway_Stripe_Klarna extends WC_Payment_Gateway_Stripe_Local_P
33
  public function get_required_parameters() {
34
  return apply_filters( 'wc_stripe_klarna_get_required_parameters', array(
35
  'USD' => array( 'US' ),
36
- 'EUR' => array( 'AT', 'FI', 'DE', 'NL', 'BE', 'ES', 'IT' ),
37
  'DKK' => array( 'DK' ),
38
  'NOK' => array( 'NO' ),
39
  'SEK' => array( 'SE' ),
19
  public function __construct() {
20
  $this->local_payment_type = 'klarna';
21
  $this->currencies = array( 'EUR', 'SEK', 'NOK', 'DKK', 'GBP', 'USD' );
22
+ $this->countries = $this->limited_countries = array( 'US', 'AT', 'FI', 'DE', 'NL', 'DK', 'NO', 'SE', 'GB', 'BE', 'ES', 'IT', 'FR', 'IE' );
23
  $this->id = 'stripe_klarna';
24
  $this->tab_title = __( 'Klarna', 'woo-stripe-payment' );
25
  $this->token_type = 'Stripe_Local';
33
  public function get_required_parameters() {
34
  return apply_filters( 'wc_stripe_klarna_get_required_parameters', array(
35
  'USD' => array( 'US' ),
36
+ 'EUR' => array( 'AT', 'FI', 'DE', 'NL', 'BE', 'ES', 'IT', 'FR', 'IE' ),
37
  'DKK' => array( 'DK' ),
38
  'NOK' => array( 'NO' ),
39
  'SEK' => array( 'SE' ),
includes/gateways/class-wc-payment-gateway-stripe-oxxo.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  defined( 'ABSPATH' ) || exit();
3
 
4
  if ( ! class_exists( 'WC_Payment_Gateway_Stripe_Local_Payment' ) ) {
@@ -8,7 +9,7 @@ if ( ! class_exists( 'WC_Payment_Gateway_Stripe_Local_Payment' ) ) {
8
  /**
9
  *
10
  * @package Stripe/Gateways
11
- * @author PaymentPlugins
12
  *
13
  */
14
  class WC_Payment_Gateway_Stripe_OXXO extends WC_Payment_Gateway_Stripe_Local_Payment {
@@ -30,4 +31,89 @@ class WC_Payment_Gateway_Stripe_OXXO extends WC_Payment_Gateway_Stripe_Local_Pay
30
  $this->icon = stripe_wc()->assets_url( 'img/oxxo.svg' );
31
  parent::__construct();
32
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  }
1
  <?php
2
+
3
  defined( 'ABSPATH' ) || exit();
4
 
5
  if ( ! class_exists( 'WC_Payment_Gateway_Stripe_Local_Payment' ) ) {
9
  /**
10
  *
11
  * @package Stripe/Gateways
12
+ * @author PaymentPlugins
13
  *
14
  */
15
  class WC_Payment_Gateway_Stripe_OXXO extends WC_Payment_Gateway_Stripe_Local_Payment {
31
  $this->icon = stripe_wc()->assets_url( 'img/oxxo.svg' );
32
  parent::__construct();
33
  }
34
+
35
+ public function hooks() {
36
+ parent::hooks();
37
+ add_filter( 'wc_stripe_asyncronous_payment_method_stripe_oxxo', '__return_false' );
38
+ }
39
+
40
+ public function get_local_payment_settings() {
41
+ return array_merge( parent::get_local_payment_settings(), array(
42
+ 'expiration_days' => array(
43
+ 'title' => __( 'Expiration Days', 'woo-stripe-payment' ),
44
+ 'type' => 'select',
45
+ 'default' => '3',
46
+ 'options' => array_reduce( range( 1, 7 ), function ( $carry, $item ) {
47
+ $carry[ $item ] = sprintf( _n( '%s day', '%s days', $item, 'woo-stripe-payment' ), $item );
48
+
49
+ return $carry;
50
+ }, array() ),
51
+ 'desc_tip' => true,
52
+ 'description' => __( 'The number of days before the OXXO voucher expires.', 'woo-stripe-payment' )
53
+ ),
54
+ 'email_link' => array(
55
+ 'title' => __( 'Voucher Link In Email', 'woo-stripe-payment' ),
56
+ 'type' => 'checkbox',
57
+ 'default' => 'yes',
58
+ 'desc_tip' => true,
59
+ 'description' => __( 'If enabled, the voucher link will be included in the order on-hold email sent to the customer.', 'woo-stripe-payment' )
60
+ )
61
+ ) );
62
+ }
63
+
64
+ public function add_stripe_order_args( &$args, $order ) {
65
+ $args['payment_method_options'] = array(
66
+ 'oxxo' => array(
67
+ 'expires_after_days' => $this->get_option( 'expiration_days', 3 )
68
+ )
69
+ );
70
+ }
71
+
72
+ /**
73
+ * @param \WC_Order $order
74
+ */
75
+ public function process_voucher_order_status( $order ) {
76
+ if ( $this->is_active( 'email_link' ) ) {
77
+ add_filter( 'woocommerce_email_additional_content_customer_on_hold_order', array( $this, 'add_customer_voucher_email_content' ), 10, 2 );
78
+ }
79
+ $order->update_status( 'on-hold' );
80
+ }
81
+
82
+ /**
83
+ * @param string $content
84
+ * @param \WC_Order $order
85
+ */
86
+ public function add_customer_voucher_email_content( $content, $order ) {
87
+ if ( $order && $order->get_payment_method() === $this->id ) {
88
+ if ( ( $intent_id = $order->get_meta( WC_Stripe_Constants::PAYMENT_INTENT_ID ) ) ) {
89
+ $payment_intent = $this->gateway->mode( $order )->paymentIntents->retrieve( $intent_id );
90
+ if ( ! is_wp_error( $payment_intent ) ) {
91
+ $link = isset( $payment_intent->next_action->oxxo_display_details->hosted_voucher_url ) ? $payment_intent->next_action->oxxo_display_details->hosted_voucher_url : null;
92
+ if ( $link ) {
93
+ $content .= '<p>' . sprintf( __( 'Please click %shere%s to view your OXXO voucher.', 'woo-stripe-payment' ), '<a href="' . $link . '" target="_blank">', '</a>' ) . '</p>';
94
+ }
95
+ }
96
+ }
97
+ }
98
+
99
+ return $content;
100
+ }
101
+
102
+ /**
103
+ * @param null $order
104
+ *
105
+ * @return string
106
+ */
107
+ public function get_return_url( $order = null ) {
108
+ if ( $this->processing_payment && $order ) {
109
+ return add_query_arg( array(
110
+ '_stripe_voucher_payment' => $this->id,
111
+ 'order-id' => $order->get_id(),
112
+ 'order-key' => $order->get_order_key()
113
+ ), wc_get_checkout_url() );
114
+ }
115
+
116
+ return parent::get_return_url( $order );
117
+ }
118
+
119
  }
includes/gateways/class-wc-payment-gateway-stripe-wechat.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  defined( 'ABSPATH' ) || exit();
3
 
4
  if ( ! class_exists( 'WC_Payment_Gateway_Stripe_Local_Payment' ) ) {
@@ -66,7 +67,7 @@ class WC_Payment_Gateway_Stripe_WeChat extends WC_Payment_Gateway_Stripe_Local_P
66
  wp_json_encode(
67
  array(
68
  'code' => $source->wechat->qr_code_url,
69
- 'redirect' => $order->get_checkout_order_received_url(),
70
  )
71
  )
72
  )
@@ -93,4 +94,5 @@ class WC_Payment_Gateway_Stripe_WeChat extends WC_Payment_Gateway_Stripe_Local_P
93
 
94
  return $data;
95
  }
 
96
  }
1
  <?php
2
+
3
  defined( 'ABSPATH' ) || exit();
4
 
5
  if ( ! class_exists( 'WC_Payment_Gateway_Stripe_Local_Payment' ) ) {
67
  wp_json_encode(
68
  array(
69
  'code' => $source->wechat->qr_code_url,
70
+ 'redirect' => $this->get_return_url( $order ),
71
  )
72
  )
73
  )
94
 
95
  return $data;
96
  }
97
+
98
  }
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: mr.clayton
3
  Tags: stripe, ach, klarna, credit card, apple pay, google pay, ideal, sepa, sofort
4
  Requires at least: 3.0.1
5
- Tested up to: 5.8
6
  Requires PHP: 5.6
7
- Stable tag: 3.3.14
8
  Copyright: Payment Plugins
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -60,6 +60,14 @@ If you're site is not loading over https, then Stripe won't render the Payment R
60
  8. Edit payment gateways on the product page
61
 
62
  == Changelog ==
 
 
 
 
 
 
 
 
63
  = 3.3.14 =
64
  * Added - Locale setting in Advanced Settings where you can use the site's locale or let Stripe determine it using the 'auto' feature.
65
  * Added - Statement descriptor option in the Advanced Settings section
2
  Contributors: mr.clayton
3
  Tags: stripe, ach, klarna, credit card, apple pay, google pay, ideal, sepa, sofort
4
  Requires at least: 3.0.1
5
+ Tested up to: 5.9
6
  Requires PHP: 5.6
7
+ Stable tag: 3.3.15
8
  Copyright: Payment Plugins
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
60
  8. Edit payment gateways on the product page
61
 
62
  == Changelog ==
63
+ = 3.3.15 =
64
+ * Added - France and Ireland to Klarna
65
+ * Added -Notice in capture modal if the capture amount is less than the order total. This notice is a reminder that merchants should update
66
+ the order line items if the capture amount is less than the order amount as it leads to better accounting.
67
+ * Added - OXXO voucher expiration days option
68
+ * Added - Option to include OXXO voucher link in order on-hold email sent to customer.
69
+ * Updated - WeChat redirect to thank you page after qrcode is scanned and user clicks "complete order".
70
+
71
  = 3.3.14 =
72
  * Added - Locale setting in Advanced Settings where you can use the site's locale or let Stripe determine it using the 'auto' feature.
73
  * Added - Statement descriptor option in the Advanced Settings section
stripe-payments.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Payment Plugins for Stripe WooCommerce
4
  * Plugin URI: https://docs.paymentplugins.com/wc-stripe/config/
5
  * Description: Accept Credit Cards, Google Pay, Apple Pay, ACH, Klarna and more using Stripe.
6
- * Version: 3.3.14
7
  * Author: Payment Plugins, support@paymentplugins.com
8
  * Text Domain: woo-stripe-payment
9
  * Domain Path: /i18n/languages/
10
  * Tested up to: 5.8
11
  * WC requires at least: 3.0.0
12
- * WC tested up to: 6.0
13
  */
14
  defined( 'ABSPATH' ) || exit ();
15
 
3
  * Plugin Name: Payment Plugins for Stripe WooCommerce
4
  * Plugin URI: https://docs.paymentplugins.com/wc-stripe/config/
5
  * Description: Accept Credit Cards, Google Pay, Apple Pay, ACH, Klarna and more using Stripe.
6
+ * Version: 3.3.15
7
  * Author: Payment Plugins, support@paymentplugins.com
8
  * Text Domain: woo-stripe-payment
9
  * Domain Path: /i18n/languages/
10
  * Tested up to: 5.8
11
  * WC requires at least: 3.0.0
12
+ * WC tested up to: 6.1
13
  */
14
  defined( 'ABSPATH' ) || exit ();
15
 
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '532b93ec5365156e1c519cb1d2ccf8f6d6c046da',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
@@ -16,7 +16,7 @@
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => '532b93ec5365156e1c519cb1d2ccf8f6d6c046da',
20
  'dev_requirement' => false,
21
  ),
22
  'stripe/stripe-php' => array(
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '0c1106c4580b026f8b049eed8450d95069149850',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => '0c1106c4580b026f8b049eed8450d95069149850',
20
  'dev_requirement' => false,
21
  ),
22
  'stripe/stripe-php' => array(