Version Description
Download this release
Release Info
Developer | SkyVerge |
Plugin | WooCommerce PayPal Powered by Braintree Payment Gateway |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
- assets/js/frontend/wc-braintree.min.js +1 -1
- class-wc-braintree.php +2 -2
- i18n/languages/woocommerce-gateway-paypal-powered-by-braintree.pot +68 -68
- includes/api/class-wc-braintree-api-response-message-helper.php +1 -1
- includes/api/class-wc-braintree-api.php +1 -1
- includes/api/requests/abstract-wc-braintree-api-request.php +1 -1
- includes/api/requests/abstract-wc-braintree-api-vault-request.php +1 -1
- includes/api/requests/class-wc-braintree-api-client-token-request.php +1 -1
- includes/api/requests/class-wc-braintree-api-customer-request.php +1 -1
- includes/api/requests/class-wc-braintree-api-payment-method-nonce-request.php +1 -1
- includes/api/requests/class-wc-braintree-api-payment-method-request.php +1 -1
- includes/api/requests/class-wc-braintree-api-transaction-request.php +2 -2
- includes/api/responses/abstract-wc-braintree-api-response.php +1 -1
- includes/api/responses/abstract-wc-braintree-api-transaction-response.php +1 -1
- includes/api/responses/abstract-wc-braintree-api-vault-response.php +1 -1
- includes/api/responses/class-wc-braintree-api-client-token-response.php +1 -1
- includes/api/responses/class-wc-braintree-api-credit-card-transaction-response.php +1 -1
- includes/api/responses/class-wc-braintree-api-customer-response.php +1 -1
- includes/api/responses/class-wc-braintree-api-merchant-configuration-response.php +1 -1
- includes/api/responses/class-wc-braintree-api-payment-method-nonce-response.php +1 -1
- includes/api/responses/class-wc-braintree-api-payment-method-response.php +1 -1
- includes/api/responses/class-wc-braintree-api-paypal-transaction-response.php +1 -1
- includes/apple-pay/api/class-wc-braintree-apple-pay-api-payment-response.php +1 -1
- includes/apple-pay/class-wc-braintree-apple-pay-frontend.php +1 -1
- includes/apple-pay/class-wc-braintree-apple-pay.php +1 -1
- includes/class-wc-braintree-capture.php +1 -1
- includes/class-wc-braintree-frontend.php +1 -1
- includes/class-wc-braintree-lifecycle.php +1 -1
- includes/class-wc-braintree-payment-method-handler.php +1 -1
- includes/class-wc-braintree-payment-method.php +1 -1
- includes/class-wc-braintree-paypal-cart.php +1 -1
- includes/class-wc-gateway-braintree-credit-card.php +5 -6
- includes/class-wc-gateway-braintree-paypal.php +5 -6
- includes/class-wc-gateway-braintree.php +25 -25
- includes/payment-forms/abstract-wc-braintree-payment-form.php +6 -1
- includes/payment-forms/class-wc-braintree-hosted-fields-payment-form.php +5 -2
- includes/payment-forms/class-wc-braintree-paypal-payment-form.php +8 -4
- includes/views/admin-html-braintree-auth.php +1 -1
- lib/skyverge/license.txt +1 -1
- lib/skyverge/woocommerce/Addresses/Address.php +1 -1
- lib/skyverge/woocommerce/Addresses/Customer_Address.php +1 -1
- lib/skyverge/woocommerce/Lifecycle.php +1 -1
- lib/skyverge/woocommerce/admin/abstract-sv-wc-plugin-admin-setup-wizard.php +1 -1
- lib/skyverge/woocommerce/api/abstract-sv-wc-api-json-request.php +1 -1
- lib/skyverge/woocommerce/api/abstract-sv-wc-api-json-response.php +1 -1
- lib/skyverge/woocommerce/api/abstract-sv-wc-api-xml-request.php +1 -1
- lib/skyverge/woocommerce/api/abstract-sv-wc-api-xml-response.php +1 -1
- lib/skyverge/woocommerce/api/class-sv-wc-api-base.php +1 -1
- lib/skyverge/woocommerce/api/class-sv-wc-api-exception.php +1 -1
- lib/skyverge/woocommerce/api/interface-sv-wc-api-request.php +1 -1
- lib/skyverge/woocommerce/api/interface-sv-wc-api-response.php +1 -1
- lib/skyverge/woocommerce/changelog.txt +0 -0
- lib/skyverge/woocommerce/class-sv-wc-admin-notice-handler.php +1 -1
- lib/skyverge/woocommerce/class-sv-wc-helper.php +1 -1
- lib/skyverge/woocommerce/class-sv-wc-hook-deprecator.php +1 -1
- lib/skyverge/woocommerce/class-sv-wc-plugin-compatibility.php +1 -1
- lib/skyverge/woocommerce/class-sv-wc-plugin-dependencies.php +1 -1
- lib/skyverge/woocommerce/class-sv-wc-plugin-exception.php +1 -1
- lib/skyverge/woocommerce/class-sv-wc-plugin.php +1 -1
- lib/skyverge/woocommerce/class-sv-wp-admin-message-handler.php +1 -1
- lib/skyverge/woocommerce/compatibility/abstract-sv-wc-data-compatibility.php +1 -1
- lib/skyverge/woocommerce/compatibility/class-sv-wc-datetime.php +1 -1
- lib/skyverge/woocommerce/compatibility/class-sv-wc-order-compatibility.php +1 -1
- lib/skyverge/woocommerce/compatibility/class-sv-wc-product-compatibility.php +1 -1
- lib/skyverge/woocommerce/index.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/Handlers/Capture.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/admin/abstract-sv-wc-payment-gateway-plugin-admin-setup-wizard.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-order.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-payment-token-editor.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-user-handler.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/admin/views/html-admin-gateway-status.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/admin/views/html-order-partial-capture.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/admin/views/html-user-profile-field-customer-id.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/admin/views/html-user-profile-section.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/class-sv-wc-payment-gateway-api-response-message-helper.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-authorization-response.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-create-payment-token-response.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-customer-response.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-get-tokenized-payment-methods-response.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-credit-card-response.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-echeck-response.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-response.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-tokenization-response.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-request.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-response.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-admin-order.scss +1 -1
- lib/skyverge/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-token-editor.scss +1 -1
- lib/skyverge/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css +0 -0
- lib/skyverge/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css.map +0 -0
- lib/skyverge/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.scss +1 -1
- lib/skyverge/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.min.css +0 -0
- lib/skyverge/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.scss +1 -1
- lib/skyverge/woocommerce/payment-gateway/assets/js/admin/sv-wc-payment-gateway-admin-order.coffee +1 -1
- lib/skyverge/woocommerce/payment-gateway/assets/js/admin/sv-wc-payment-gateway-admin-order.min.js +1 -1
- lib/skyverge/woocommerce/payment-gateway/assets/js/admin/sv-wc-payment-gateway-token-editor.coffee +0 -0
- lib/skyverge/woocommerce/payment-gateway/assets/js/admin/sv-wc-payment-gateway-token-editor.min.js +0 -0
- lib/skyverge/woocommerce/payment-gateway/assets/js/admin/sv-wc-payment-gateway-token-editor.min.js.map +0 -0
- lib/skyverge/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.coffee +1 -1
- lib/skyverge/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.min.js +1 -1
- lib/skyverge/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-payment-form.coffee +1 -1
- lib/skyverge/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-payment-form.min.js +1 -1
- lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-helper.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-my-payment-methods.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-payment-form.php +22 -5
- lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-privacy.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php +19 -3
- lib/skyverge/woocommerce/payment-gateway/exceptions/class-sv-wc-payment-gateway-exception.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/integrations/abstract-sv-wc-payment-gateway-integration.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-pre-orders.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-subscriptions.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-token.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-tokens-handler.php +1 -1
- lib/skyverge/woocommerce/payment-gateway/rest-api/class-sv-wc-payment-gateway-plugin-rest-api.php +1 -1
- lib/skyverge/woocommerce/rest-api/class-sv-wc-plugin-rest-api.php +1 -1
- lib/skyverge/woocommerce/utilities/class-sv-wp-async-request.php +1 -1
- lib/skyverge/woocommerce/utilities/class-sv-wp-background-job-handler.php +1 -1
- lib/skyverge/woocommerce/utilities/class-sv-wp-job-batch-handler.php +1 -1
- readme.txt +9 -2
- woocommerce-gateway-paypal-powered-by-braintree.php +3 -3
assets/js/frontend/wc-braintree.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";var _get=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},_createClass=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(function(){var s=[].indexOf,_=function(e,t){if(!(e instanceof t))throw new Error("Bound instance method accessed before binding")};jQuery(document).ready(function(o){var r,i;return window.WC_Braintree_Payment_Form_Handler=function(){function t(e){_classCallCheck(this,t),this.show_integration_ui=this.show_integration_ui.bind(this),this.hide_integration_ui=this.hide_integration_ui.bind(this),this.id=e.id,this.id_dasherized=e.id_dasherized,this.name=e.name,this.type=e.type,this.debug=e.debug,this.client_token_nonce=e.client_token_nonce,this.ajax_url=e.ajax_url,this.integration_error_message=e.integration_error_message,this.payment_error_message=e.payment_error_message,this.params=window.sv_wc_payment_gateway_payment_form_params}return _createClass(t,[{key:"init",value:function(){return this.is_sdk_ready()?o("form.checkout").length?this.handle_checkout_page():o("form#order_review").length?this.handle_pay_page():o("form#add_payment_method").length?this.handle_add_payment_method_page():void 0:console.error("Braintree SDK is missing.")}},{key:"handle_checkout_page",value:function(){var e=this;return this.form=o("form.checkout"),this.form_ui_selector=".woocommerce-checkout-payment",o(document.body).on("updated_checkout",function(){if(!e.setting_up)return e.setup_braintree()}),o(document.body).on("updated_checkout",function(){return e.handle_saved_payment_methods()}),o(document.body).on("checkout_error",function(){return e.handle_checkout_error()}),this.form.on("checkout_place_order_"+this.id,function(){if(e.is_selected())return e.block_ui(),e.verify_form()})}},{key:"handle_checkout_error",value:function(){return this.unblock_ui()}},{key:"handle_pay_page",value:function(){var e=this;return this.form=o("form#order_review"),this.form_ui_selector="#payment",this.handle_saved_payment_methods(),this.setup_braintree(),this.form.submit(function(){if(e.is_selected())return e.block_ui(),e.verify_form()})}},{key:"handle_add_payment_method_page",value:function(){var e=this;return this.form=o("form#add_payment_method"),this.form_ui_selector="#payment",this.setup_braintree(),this.form.submit(function(){if(e.is_selected())return e.block_ui(),e.verify_form()})}},{key:"verify_form",value:function(){return!!this.using_payment_token()||!!this.has_payment_nonce()&&void 0}},{key:"submit_form",value:function(e){return o("input[name=wc_"+this.id+"_payment_nonce]").val(e),this.form.submit()}},{key:"handle_saved_payment_methods",value:function(){var e,n=this;if(e=o("div.js-wc-"+this.id_dasherized+"-new-payment-method-form"),o("input.js-wc-"+this.id_dasherized+"-payment-token").change(function(){return o("input.js-wc-"+n.id_dasherized+"-payment-token:checked").val()?e.slideUp(200):e.slideDown(200)}).change(),o("input#createaccount").change(function(e){var t;return t=o("input.js-wc-"+n.id_dasherized+"-tokenize-payment-method").closest("p.form-row"),o(e.target).is(":checked")?(t.slideDown(),t.next().show()):(t.hide(),t.next().hide())}),!o("input#createaccount").is(":checked"))return o("input#createaccount").change()}},{key:"setup_braintree",value:function(){return this.setting_up=!0,this.block_ui(),o("input[name=wc_"+this.id+"_payment_nonce]").val(""),null!=this.client?this.setup_integration():this.create_client()}},{key:"create_client",value:function(){var r=this;return this.log("Creating client."),this.get_client_token().done(function(e){return e.success?braintree.client.create({authorization:e.data}).then(function(e){return r.client=e,r.log("Client ready."),r.setup_integration()}).catch(function(e){return r.handle_integration_error(e),r.unblock_ui()}):r.handle_integration_error(e.data)}).fail(function(e,t,n){return r.handle_integration_error({message:"Could not retrieve the client token via AJAX: "+n})}).always(function(){return r.unblock_ui()})}},{key:"get_client_token",value:function(){var e;return this.id+"_client_token_nonce",e={action:"wc_"+this.id+"_get_client_token",nonce:this.client_token_nonce},o.post(this.ajax_url,e)}},{key:"setup_integration",value:function(){var t=this;return this.log("Creating integration."),this.get_integration_class().create(this.get_integration_options()).then(function(e){return t.integration=e,t.show_integration_ui(),t.do_integration_ready(),t.setting_up=!1,o(document).trigger("wc_"+t.id+"_integration_ready",t.integration),t.log("Integration ready.")},function(e){return t.handle_integration_error(e),t.unblock_ui()})}},{key:"refresh_braintree",value:function(){var e=this;if(null!=this.integration&&!this.refreshing&&!this.setting_up)return this.log("Refreshing integration."),this.refreshing=!0,this.block_ui(),this.integration.teardown(function(){return e.integration=null,e.refreshing=!1,e.setup_braintree()})}},{key:"teardown_braintree",value:function(){var e=this;if(null!=this.integration)return this.block_ui(),this.integration.teardown(function(){return e.integration=null,e.unblock_ui()})}},{key:"do_integration_ready",value:function(){}},{key:"get_integration_options",value:function(){return{client:this.client}}},{key:"get_integration_class",value:function(){}},{key:"handle_integration_error",value:function(e){return this.log("Integration error. "+e.message,e,"error"),this.hide_integration_ui(),this.unblock_ui()}},{key:"handle_payment_error",value:function(e){return this.log("Payment error. "+e.message,e,"error"),this.render_error(this.get_user_message(e)),this.unblock_ui()}},{key:"render_error",value:function(e){return o(".woocommerce-error, .woocommerce-message").remove(),this.form.prepend('<div class="woocommerce-error">'+e+"</div>").removeClass("processing").unblock(),o("html, body").animate({scrollTop:this.form.offset().top-100},1e3),o("input[name=wc_"+this.id+"_payment_nonce]").val(""),this.form.trigger("wc_"+this.id+"_rendered_error"),o(document.body).trigger("checkout_error"),this.unblock_ui()}},{key:"get_user_message",value:function(e){return this.payment_error_message}},{key:"show_integration_ui",value:function(){if(o("div.js-wc-"+this.id_dasherized+"-new-payment-method-form").find(".woocommerce-error").remove(),o("input#createaccount").length&&o("input#createaccount").is(":checked"))return o("div.js-wc-"+this.id_dasherized+"-new-payment-method-form").find(".form-row").show()}},{key:"hide_integration_ui",value:function(){return o("div.js-wc-"+this.id_dasherized+"-new-payment-method-form").prepend('<div class="woocommerce-error">'+this.integration_error_message+"</div>"),o("div.js-wc-"+this.id_dasherized+"-new-payment-method-form").find(".form-row").hide()}},{key:"block_ui",value:function(){return o(this.form_ui_selector).block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}},{key:"unblock_ui",value:function(){return o(this.form_ui_selector).unblock()}},{key:"is_selected",value:function(){return this.get_selected_gateway_id()===this.id}},{key:"is_sdk_ready",value:function(){return"undefined"!=typeof braintree&&null!==braintree&&null!=braintree.client&&null!=this.get_integration_class()}},{key:"has_payment_nonce",value:function(){return this.form.find("input[name=wc_"+this.id+"_payment_nonce]").val()}},{key:"using_payment_token",value:function(){return this.form.find("input.js-wc-"+this.id_dasherized+"-payment-token:checked").val()}},{key:"get_selected_gateway_id",value:function(){return this.form.find("input[name=payment_method]:checked").val()}},{key:"log",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(this.debug)return console.log(this.name+": "+e),t?console.log(t):void 0}}]),t}(),r=window.WC_Braintree_Credit_Card_Payment_Form_Handler=function(e){function a(e){_classCallCheck(this,a);var t=_possibleConstructorReturn(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e));return t.add_3ds_ui=t.add_3ds_ui.bind(t),t.remove_3ds_ui=t.remove_3ds_ui.bind(t),t.show_integration_ui=t.show_integration_ui.bind(t),t.hide_integration_ui=t.hide_integration_ui.bind(t),t.csc_required=e.csc_required,t.hosted_fields_styles=e.hosted_fields_styles,t.threeds=e.threeds,t.enabled_card_types=e.enabled_card_types,t.init(),t}return _inherits(a,WC_Braintree_Payment_Form_Handler),_createClass(a,[{key:"handle_checkout_error",value:function(){return _get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"handle_checkout_error",this).call(this),o("input[name=wc_"+this.id+"_payment_nonce]").val(""),o("input[name=wc-"+this.id_dasherized+"-card-type]").val(""),o("input[name=wc-"+this.id_dasherized+"-3d-secure-verified]").val(0)}},{key:"verify_form",value:function(){var e;return this.has_payment_nonce()||!this.csc_required&&this.using_payment_token()?(e=o("input.js-wc-braintree-credit-card-payment-token:checked"),this.should_verify_3d_secure_token(e)?(this.verify_3d_secure(e.data("nonce"),e),!1):_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"verify_form",this).call(this)):(this.tokenize_payment(),!1)}},{key:"tokenize_payment",value:function(){var t=this;return this.integration.tokenize().then(function(e){if(t.log("Payment method received.",e),null!=e.nonce)return t.should_verify_3d_secure(e)?t.verify_3d_secure(e.nonce):t.submit_form(e.nonce)}).catch(function(e){return t.handle_payment_error(e)})}},{key:"get_integration_options",value:function(){var e;return e={client:this.client,fields:{number:{selector:"#wc-braintree-credit-card-account-number-hosted",placeholder:o("#wc-braintree-credit-card-account-number-hosted").data("placeholder")},cvv:{selector:"#wc-braintree-credit-card-csc-hosted",placeholder:o("#wc-braintree-credit-card-csc-hosted").data("placeholder")},expirationDate:{selector:"#wc-braintree-credit-card-expiry-hosted",placeholder:o("#wc-braintree-credit-card-expiry-hosted").data("placeholder")}},styles:this.hosted_fields_styles},this.csc_required&&this.using_payment_token()&&(delete e.fields.number,delete e.fields.expirationDate),this.csc_required||delete e.fields.cvv,e}},{key:"get_integration_class",value:function(){return braintree.hostedFields}},{key:"do_integration_ready",value:function(){var t=this;return this.integration.on("cardTypeChange",function(e){return t.on_card_type_change(e)}),!this.csc_required&&o("input.js-wc-braintree-credit-card-payment-token:checked").val()&&this.teardown_braintree(),this.unblock_ui()}},{key:"handle_saved_payment_methods",value:function(){var e,t,n=this;return _get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"handle_saved_payment_methods",this).call(this),t=o("div.js-wc-braintree-credit-card-new-payment-method-form"),e=o("div.wc-braintree-hosted-field-card-csc-parent"),o("input.js-wc-braintree-credit-card-payment-token").change(function(){return o("input.js-wc-braintree-credit-card-payment-token:checked").val()?n.csc_required&&e.hasClass("form-row-last")?(e.removeClass("form-row-last").addClass("form-row-first"),t.after(e),n.refresh_braintree()):void 0:(n.csc_required&&e.hasClass("form-row-first")&&(e.removeClass("form-row-first").addClass("form-row-last"),t.find("div.wc-braintree-hosted-field-card-expiry-parent").after(e)),n.refresh_braintree())}).change()}},{key:"get_user_message",value:function(e){var t,n,r,i;if(r=[],"CUSTOMER"===e.type)switch(e.code){case"HOSTED_FIELDS_FIELDS_EMPTY":this.csc_required&&r.push(this.params.cvv_missing),this.using_payment_token()||(r.push(this.params.card_number_missing),r.push(this.params.card_exp_date_invalid));break;case"HOSTED_FIELDS_FIELDS_INVALID":if(null!=e.details)for(t=0,n=(i=e.details.invalidFieldKeys).length;t<n;t++)switch(i[t]){case"number":r.push(this.params.card_number_invalid);break;case"cvv":r.push(this.params.cvv_length_invalid);break;case"expirationDate":r.push(this.params.card_exp_date_invalid)}}return r.length?r.join("<br/>"):_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"get_user_message",this).call(this)}},{key:"on_card_type_change",value:function(e){var t,n,r;if(null!=e.cards)return(t=o("#wc-braintree-credit-card-account-number-hosted")).attr("class",function(e,t){return t.replace(/(^|\s)card-type-\S+/g,"")}),e.cards.length?1===e.cards.length?(n=e.cards[0],o("input[name=wc-"+this.id_dasherized+"-card-type]").val(n.type),null!=n.type&&(r=n.type,0<=s.call(this.enabled_card_types,r))?t.addClass("card-type-"+n.type):t.addClass("card-type-invalid")):void 0:t.addClass("card-type-invalid")}},{key:"is_3d_secure_enabled",value:function(){return this.threeds.enabled&&null!=braintree.threeDSecure}},{key:"setup_integration",value:function(){var t=this;return this.threeds.enabled&&(this.threeds.enabled=this.client.getConfiguration().gatewayConfiguration.threeDSecureEnabled),this.is_3d_secure_enabled()?(o("input[name=wc-"+this.id_dasherized+"-3d-secure-enabled]").val(1),braintree.threeDSecure.create({client:this.client}).then(function(e){return t.threeDSecure=e,o(document.body).on("click","#wc-braintree-credit-card-3dsecure-container",function(e){return o(e.currentTarget).fadeOut(200),t.threeDSecure.cancelVerifyCard(),t.unblock_ui()}),_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"setup_integration",t).call(t)}).catch(function(e){return t.handle_integration_error(e)})):_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"setup_integration",this).call(this)}},{key:"should_verify_3d_secure",value:function(e){var t;return t=e.details.cardType,this.is_3d_secure_enabled()&&"CreditCard"===e.type&&0<=s.call(this.threeds.card_types,t)}},{key:"should_verify_3d_secure_token",value:function(e){if(this.is_3d_secure_enabled()&&e.val()&&e.data("nonce")&&!e.data("verified"))return!0}},{key:"verify_3d_secure",value:function(e){var t,n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return t={billingAddress:{firstName:o("input[name=billing_first_name]").val(),lastName:o("input[name=billing_last_name]").val(),streetAddress:o("input[name=billing_address_1]").val(),extendedAddress:o("input[name=billing_address_2]").val(),locality:o("#billing_city").val(),region:o("#billing_state").val(),postalCode:o("input[name=billing_postcode]").val(),countryCodeAlpha2:o("#billing_country").val()}},this.threeDSecure.verifyCard({nonce:e,amount:this.threeds.order_total,customer:t,addFrame:function(e,t){return n.add_3ds_ui(e,t)},removeFrame:function(){return n.remove_3ds_ui()}}).then(function(e){return n.log("3D Secure response received.",e),n.threeds.liability_shift_always_required&&!e.liabilityShifted?n.render_error(n.threeds.failure_message):(null!=r&&r.data("verified",!0),o("input[name=wc-"+n.id_dasherized+"-3d-secure-verified]").val(1),n.submit_form(e.nonce))}).catch(function(e){return n.handle_payment_error(e)})}},{key:"add_3ds_ui",value:function(e,t){var n;return _(this,r),e?this.handle_payment_error(e):((n=o("<div>",{id:"wc-"+this.id_dasherized+"-3dsecure-container"})).html(t),o(document.body).append(n),n.fadeIn(400))}},{key:"remove_3ds_ui",value:function(){return _(this,r),o("#wc-"+this.id_dasherized+"-3dsecure-container").fadeOut(400,function(e){return o(this).remove()})}},{key:"show_integration_ui",value:function(){return _(this,r),_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"show_integration_ui",this).call(this),o(".wc-braintree-hosted-field-parent").show()}},{key:"hide_integration_ui",value:function(){return _(this,r),_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"hide_integration_ui",this).call(this),o(".wc-braintree-hosted-field-parent").hide()}}]),a}(),i=window.WC_Braintree_PayPal_Payment_Form_Handler=function(e){function n(e){_classCallCheck(this,n);var t=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.do_integration_ready=t.do_integration_ready.bind(t),t.on_authorize=t.on_authorize.bind(t),t.get_linked_account_html=t.get_linked_account_html.bind(t),t.is_test_environment=e.is_test_environment,t.is_paypal_credit_enabled=e.is_paypal_credit_enabled,t.must_login_message=e.must_login_message,t.must_login_add_method_message=e.must_login_add_method_message,t.button_styles=e.button_styles,t.cart_payment_nonce=e.cart_payment_nonce,t.init(),t}return _inherits(n,WC_Braintree_Payment_Form_Handler),_createClass(n,[{key:"init",value:function(){var t=this;return _get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"init",this).call(this),o("input[name=wc_"+this.id+"_payment_nonce]").val(this.cart_payment_nonce),o(document.body).on("click",'input[name="payment_method"], input.js-wc-braintree-paypal-payment-token',function(){return t.toggle_order_button()}),o(document.body).on("payment_method_selected",function(){return t.toggle_order_button()}),o(document.body).on("click",".wc-braintree-paypal-account .cancel",function(e){return e.preventDefault(),o(e.currentTarget).parent().remove(),t.setup_braintree()})}},{key:"toggle_order_button",value:function(){return!this.is_selected()||this.has_payment_nonce()||this.using_payment_token()?o("#place_order").show():o("#place_order").hide()}},{key:"verify_form",value:function(){var e;return e=_get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"verify_form",this).call(this),this.has_payment_nonce()||this.using_payment_token()||this.render_error(this.must_login_message),e}},{key:"handle_payment_error",value:function(e){return _get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"handle_payment_error",this).call(this,e),this.cart_payment_nonce=!1,this.setup_braintree()}},{key:"get_integration_class",value:function(){return braintree.paypalCheckout}},{key:"setup_braintree",value:function(){return this.cart_payment_nonce?this.unblock_ui():(_get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"setup_braintree",this).call(this),o("input.js-wc-braintree-paypal-tokenize-payment-method").prop("disabled",!1),this.toggle_order_button())}},{key:"do_integration_ready",value:function(){var e,t=this;return _(this,i),this.cart_payment_nonce?this.unblock_ui():(e=this.is_single_use()?"checkout":"vault",this.render_button(this.integration.createPayment({flow:e,amount:this.get_order_amount(),currency:this.get_store_currency(),locale:this.get_store_locale()}),this.get_button_styles(),"#wc_braintree_paypal_container").then(function(){return o("#wc_braintree_paypal_container").css({width:"100%"})}).catch(function(e){return t.log("Could not render the PayPal button. "+e.message,e),t.hide_integration_ui()}).finally(function(){return t.unblock_ui()}))}},{key:"render_button",value:function(e,t,n){var r,i,a=this;return o(n).html(""),r=this.is_paypal_credit_enabled&&"USD"===this.get_store_currency()?{allowed:[paypal.FUNDING.CREDIT]}:{disallowed:[paypal.FUNDING.CREDIT]},i={env:this.is_test_environment?"sandbox":"production",commit:this.button_is_pay_now(),style:t,funding:r,payment:function(){return e},onAuthorize:function(e,t){return a.on_authorize(e,t)},onError:function(e){return a.handle_integration_error(e)}},paypal.Button.render(i,n)}},{key:"button_is_pay_now",value:function(){return!o("form#add_payment_method").length}},{key:"get_button_styles",value:function(){return this.button_styles}},{key:"on_authorize",value:function(e,t){var n=this;return _(this,i),this.block_ui(),this.integration.tokenizePayment(e).then(function(e){return n.log("Payment method tokenized.",e),n.set_payment_method(e)}).catch(function(e){return n.handle_payment_error(e),n.unblock_ui()})}},{key:"set_payment_method",value:function(e){return o("input[name=wc_"+this.id+"_payment_nonce]").val(e.nonce),o("#wc_braintree_paypal_container").html(this.get_linked_account_html(e.details)),this.is_single_use()&&o("input.js-wc-braintree-paypal-tokenize-payment-method").prop("disabled",!0),o("#place_order").show(),this.form.submit()}},{key:"handle_saved_payment_methods",value:function(){var t=this;return _get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"handle_saved_payment_methods",this).call(this),o("input.js-wc-braintree-paypal-tokenize-payment-method").change(function(e){if(null!=t.integration&&o(e.target).is(":visible"))return t.block_ui(),t.do_integration_ready()}).change()}},{key:"get_linked_account_html",value:function(e){var t;return _(this,i),t=o("<div class='wc-"+this.id_dasherized+"-account'></div>"),null!=e.firstName&&null!=e.lastName&&t.append("<span class='name'>"+e.firstName+" "+e.lastName+"</span>"),t.append("<span class='email'>"+e.email+"</span>"),t.append("<a href='#' class='cancel'>Cancel</a>"),t}},{key:"is_single_use",value:function(){var e;return 0===(e=o("input[name=wc-braintree-paypal-tokenize-payment-method]")).length||("checkbox"===e.attr("type")?!e.is(":checked"):!e.val())}},{key:"get_order_amount",value:function(){return o("input[name=wc_braintree_paypal_amount]").val()}},{key:"get_store_currency",value:function(){return o("input[name=wc_braintree_paypal_currency]").val()}},{key:"get_store_locale",value:function(){return o("input[name=wc_braintree_paypal_locale]").val()}},{key:"is_sdk_ready",value:function(){return _get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"is_sdk_ready",this).call(this)&&"undefined"!=typeof paypal&&null!==paypal}}]),n}(),window.WC_Braintree_PayPal_Cart_Handler=function(e){function n(e){_classCallCheck(this,n);var t=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.set_payment_method_nonce=e.set_payment_method_nonce,t.cart_handler_url=e.cart_handler_url,t.form=o("form.woocommerce-cart-form"),t.form_ui_selector="",t.setup_braintree(),o(document.body).on("updated_cart_totals",function(){return t.setup_braintree()}),t}return _inherits(n,WC_Braintree_PayPal_Payment_Form_Handler),_createClass(n,[{key:"button_is_pay_now",value:function(){return!1}},{key:"set_payment_method",value:function(e){var t=this;if(null!=e.nonce)return e.wp_nonce=this.set_payment_method_nonce,o.ajax({type:"POST",url:this.cart_handler_url,data:e,dataType:"json"}).done(function(e){if(t.log("Cart response received.",e),null!=e.redirect_url)return window.location=e.redirect_url}).fail(function(e){return t.log("Error setting the PayPal cart data.",e,"error")}).always(function(){return t.unblock_ui()})}},{key:"is_single_use",value:function(){return"1"===o("input[name=wc_braintree_paypal_single_use]").val()}},{key:"has_payment_nonce",value:function(){return!1}}]),n}()})}).call(void 0);
|
1 |
+
"use strict";var _get=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},_createClass=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(function(){var s=[].indexOf,_=function(e,t){if(!(e instanceof t))throw new Error("Bound instance method accessed before binding")};jQuery(document).ready(function(o){var r,i;return window.WC_Braintree_Payment_Form_Handler=function(){function t(e){_classCallCheck(this,t),this.show_integration_ui=this.show_integration_ui.bind(this),this.hide_integration_ui=this.hide_integration_ui.bind(this),this.id=e.id,this.id_dasherized=e.id_dasherized,this.name=e.name,this.type=e.type,this.debug=e.debug,this.client_token_nonce=e.client_token_nonce,this.ajax_url=e.ajax_url,this.integration_error_message=e.integration_error_message,this.payment_error_message=e.payment_error_message,this.params=window.sv_wc_payment_gateway_payment_form_params}return _createClass(t,[{key:"init",value:function(){return this.is_sdk_ready()?o("form.checkout").length?this.handle_checkout_page():o("form#order_review").length?this.handle_pay_page():o("form#add_payment_method").length?this.handle_add_payment_method_page():void 0:console.error("Braintree SDK is missing.")}},{key:"handle_checkout_page",value:function(){var e=this;return this.form=o("form.checkout"),this.form_ui_selector=".woocommerce-checkout-payment",o(document.body).on("updated_checkout",function(){if(!e.setting_up)return e.setup_braintree()}),o(document.body).on("updated_checkout",function(){return e.handle_saved_payment_methods()}),o(document.body).on("checkout_error",function(){return e.handle_checkout_error()}),this.form.on("checkout_place_order_"+this.id,function(){if(e.is_selected())return e.block_ui(),e.verify_form()})}},{key:"handle_checkout_error",value:function(){return this.unblock_ui()}},{key:"handle_pay_page",value:function(){var e=this;return this.form=o("form#order_review"),this.form_ui_selector="#payment",this.handle_saved_payment_methods(),this.setup_braintree(),this.form.submit(function(){if(e.is_selected())return e.block_ui(),e.verify_form()})}},{key:"handle_add_payment_method_page",value:function(){var e=this;return this.form=o("form#add_payment_method"),this.form_ui_selector="#payment",this.setup_braintree(),this.form.submit(function(){if(e.is_selected())return e.block_ui(),e.verify_form()})}},{key:"verify_form",value:function(){return!!this.using_payment_token()||!!this.has_payment_nonce()&&void 0}},{key:"submit_form",value:function(e){return o("input[name=wc_"+this.id+"_payment_nonce]").val(e),this.form.submit()}},{key:"handle_saved_payment_methods",value:function(){var e,n=this;if(e=o("div.js-wc-"+this.id_dasherized+"-new-payment-method-form"),o("input.js-wc-"+this.id_dasherized+"-payment-token").change(function(){return o("input.js-wc-"+n.id_dasherized+"-payment-token:checked").val()?e.slideUp(200):e.slideDown(200)}).change(),o("input#createaccount").change(function(e){var t;return t=o("input.js-wc-"+n.id_dasherized+"-tokenize-payment-method").closest("p.form-row"),o(e.target).is(":checked")?(t.slideDown(),t.next().show()):(t.hide(),t.next().hide())}),!o("input#createaccount").is(":checked"))return o("input#createaccount").change()}},{key:"setup_braintree",value:function(){return this.setting_up=!0,this.block_ui(),o("input[name=wc_"+this.id+"_payment_nonce]").val(""),null!=this.client?this.setup_integration():this.create_client()}},{key:"create_client",value:function(){var r=this;return this.log("Creating client."),this.get_client_token().done(function(e){return e.success?braintree.client.create({authorization:e.data}).then(function(e){return r.client=e,r.log("Client ready."),r.setup_integration()}).catch(function(e){return r.handle_integration_error(e),r.unblock_ui()}):r.handle_integration_error(e.data)}).fail(function(e,t,n){return r.handle_integration_error({message:"Could not retrieve the client token via AJAX: "+n})}).always(function(){return r.unblock_ui()})}},{key:"get_client_token",value:function(){var e;return this.id+"_client_token_nonce",e={action:"wc_"+this.id+"_get_client_token",nonce:this.client_token_nonce},o.post(this.ajax_url,e)}},{key:"setup_integration",value:function(){var t=this;return this.log("Creating integration."),this.get_integration_class().create(this.get_integration_options()).then(function(e){return t.integration=e,t.show_integration_ui(),t.do_integration_ready(),o(document).trigger("wc_"+t.id+"_integration_ready",t.integration),t.log("Integration ready.")}).catch(function(e){return t.handle_integration_error(e),t.unblock_ui()}).finally(function(){return t.setting_up=!1})}},{key:"refresh_braintree",value:function(){var e=this;if(null!=this.integration&&!this.refreshing&&!this.setting_up)return this.log("Refreshing integration."),this.refreshing=!0,this.block_ui(),this.integration.teardown(function(){return e.integration=null,e.refreshing=!1,e.setup_braintree()})}},{key:"teardown_braintree",value:function(){var e=this;if(null!=this.integration)return this.block_ui(),this.integration.teardown(function(){return e.integration=null,e.unblock_ui()})}},{key:"do_integration_ready",value:function(){}},{key:"get_integration_options",value:function(){return{client:this.client}}},{key:"get_integration_class",value:function(){}},{key:"handle_integration_error",value:function(e){return this.log("Integration error. "+e.message,e,"error"),this.hide_integration_ui(),this.unblock_ui()}},{key:"handle_payment_error",value:function(e){return this.log("Payment error. "+e.message,e,"error"),this.render_error(this.get_user_message(e)),this.unblock_ui()}},{key:"render_error",value:function(e){return o(".woocommerce-error, .woocommerce-message").remove(),this.form.prepend('<div class="woocommerce-error">'+e+"</div>").removeClass("processing").unblock(),o("html, body").animate({scrollTop:this.form.offset().top-100},1e3),o("input[name=wc_"+this.id+"_payment_nonce]").val(""),this.form.trigger("wc_"+this.id+"_rendered_error"),o(document.body).trigger("checkout_error"),this.unblock_ui()}},{key:"get_user_message",value:function(e){return this.payment_error_message}},{key:"show_integration_ui",value:function(){if(o("div.js-wc-"+this.id_dasherized+"-new-payment-method-form").find(".woocommerce-error").remove(),o("input#createaccount").length&&o("input#createaccount").is(":checked"))return o("div.js-wc-"+this.id_dasherized+"-new-payment-method-form").find(".form-row").show()}},{key:"hide_integration_ui",value:function(){return o("div.js-wc-"+this.id_dasherized+"-new-payment-method-form").prepend('<div class="woocommerce-error">'+this.integration_error_message+"</div>"),o("div.js-wc-"+this.id_dasherized+"-new-payment-method-form").find(".form-row").hide()}},{key:"block_ui",value:function(){return o(this.form_ui_selector).block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}},{key:"unblock_ui",value:function(){return o(this.form_ui_selector).unblock()}},{key:"is_selected",value:function(){return this.get_selected_gateway_id()===this.id}},{key:"is_sdk_ready",value:function(){return"undefined"!=typeof braintree&&null!==braintree&&null!=braintree.client&&null!=this.get_integration_class()}},{key:"has_payment_nonce",value:function(){return this.form.find("input[name=wc_"+this.id+"_payment_nonce]").val()}},{key:"using_payment_token",value:function(){return this.form.find("input.js-wc-"+this.id_dasherized+"-payment-token:checked").val()}},{key:"get_selected_gateway_id",value:function(){return this.form.find("input[name=payment_method]:checked").val()}},{key:"log",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(this.debug)return console.log(this.name+": "+e),t?console.log(t):void 0}}]),t}(),r=window.WC_Braintree_Credit_Card_Payment_Form_Handler=function(e){function a(e){_classCallCheck(this,a);var t=_possibleConstructorReturn(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e));return t.add_3ds_ui=t.add_3ds_ui.bind(t),t.remove_3ds_ui=t.remove_3ds_ui.bind(t),t.show_integration_ui=t.show_integration_ui.bind(t),t.hide_integration_ui=t.hide_integration_ui.bind(t),t.csc_required=e.csc_required,t.hosted_fields_styles=e.hosted_fields_styles,t.threeds=e.threeds,t.enabled_card_types=e.enabled_card_types,t.init(),t}return _inherits(a,WC_Braintree_Payment_Form_Handler),_createClass(a,[{key:"handle_checkout_error",value:function(){return _get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"handle_checkout_error",this).call(this),o("input[name=wc_"+this.id+"_payment_nonce]").val(""),o("input[name=wc-"+this.id_dasherized+"-card-type]").val(""),o("input[name=wc-"+this.id_dasherized+"-3d-secure-verified]").val(0)}},{key:"verify_form",value:function(){var e;return this.has_payment_nonce()||!this.csc_required&&this.using_payment_token()?(e=o("input.js-wc-braintree-credit-card-payment-token:checked"),this.should_verify_3d_secure_token(e)?(this.verify_3d_secure(e.data("nonce"),e),!1):_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"verify_form",this).call(this)):(this.tokenize_payment(),!1)}},{key:"tokenize_payment",value:function(){var t=this;return this.integration.tokenize().then(function(e){if(t.log("Payment method received.",e),null!=e.nonce)return t.should_verify_3d_secure(e)?t.verify_3d_secure(e.nonce):t.submit_form(e.nonce)}).catch(function(e){return t.handle_payment_error(e)})}},{key:"get_integration_options",value:function(){var e;return e={client:this.client,fields:{number:{selector:"#wc-braintree-credit-card-account-number-hosted",placeholder:o("#wc-braintree-credit-card-account-number-hosted").data("placeholder")},cvv:{selector:"#wc-braintree-credit-card-csc-hosted",placeholder:o("#wc-braintree-credit-card-csc-hosted").data("placeholder")},expirationDate:{selector:"#wc-braintree-credit-card-expiry-hosted",placeholder:o("#wc-braintree-credit-card-expiry-hosted").data("placeholder")}},styles:this.hosted_fields_styles},this.csc_required&&this.using_payment_token()&&(delete e.fields.number,delete e.fields.expirationDate),this.csc_required||delete e.fields.cvv,e}},{key:"get_integration_class",value:function(){return braintree.hostedFields}},{key:"do_integration_ready",value:function(){var t=this;return this.integration.on("cardTypeChange",function(e){return t.on_card_type_change(e)}),!this.csc_required&&o("input.js-wc-braintree-credit-card-payment-token:checked").val()&&this.teardown_braintree(),this.unblock_ui()}},{key:"handle_saved_payment_methods",value:function(){var e,t,n=this;return _get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"handle_saved_payment_methods",this).call(this),t=o("div.js-wc-braintree-credit-card-new-payment-method-form"),e=o("div.wc-braintree-hosted-field-card-csc-parent"),o("input.js-wc-braintree-credit-card-payment-token").change(function(){return o("input.js-wc-braintree-credit-card-payment-token:checked").val()?n.csc_required&&e.hasClass("form-row-last")?(e.removeClass("form-row-last").addClass("form-row-first"),t.after(e),n.refresh_braintree()):void 0:(n.csc_required&&e.hasClass("form-row-first")&&(e.removeClass("form-row-first").addClass("form-row-last"),t.find("div.wc-braintree-hosted-field-card-expiry-parent").after(e)),n.refresh_braintree())}).change()}},{key:"get_user_message",value:function(e){var t,n,r,i;if(r=[],"CUSTOMER"===e.type)switch(e.code){case"HOSTED_FIELDS_FIELDS_EMPTY":this.csc_required&&r.push(this.params.cvv_missing),this.using_payment_token()||(r.push(this.params.card_number_missing),r.push(this.params.card_exp_date_invalid));break;case"HOSTED_FIELDS_FIELDS_INVALID":if(null!=e.details)for(t=0,n=(i=e.details.invalidFieldKeys).length;t<n;t++)switch(i[t]){case"number":r.push(this.params.card_number_invalid);break;case"cvv":r.push(this.params.cvv_length_invalid);break;case"expirationDate":r.push(this.params.card_exp_date_invalid)}}return r.length?r.join("<br/>"):_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"get_user_message",this).call(this)}},{key:"on_card_type_change",value:function(e){var t,n,r;if(null!=e.cards)return(t=o("#wc-braintree-credit-card-account-number-hosted")).attr("class",function(e,t){return t.replace(/(^|\s)card-type-\S+/g,"")}),e.cards.length?1===e.cards.length?(n=e.cards[0],o("input[name=wc-"+this.id_dasherized+"-card-type]").val(n.type),null!=n.type&&(r=n.type,0<=s.call(this.enabled_card_types,r))?t.addClass("card-type-"+n.type):t.addClass("card-type-invalid")):void 0:t.addClass("card-type-invalid")}},{key:"is_3d_secure_enabled",value:function(){return this.threeds.enabled&&null!=braintree.threeDSecure}},{key:"setup_integration",value:function(){var t=this;return this.threeds.enabled&&(this.threeds.enabled=this.client.getConfiguration().gatewayConfiguration.threeDSecureEnabled),this.is_3d_secure_enabled()?(o("input[name=wc-"+this.id_dasherized+"-3d-secure-enabled]").val(1),braintree.threeDSecure.create({client:this.client}).then(function(e){return t.threeDSecure=e,o(document.body).on("click","#wc-braintree-credit-card-3dsecure-container",function(e){return o(e.currentTarget).fadeOut(200),t.threeDSecure.cancelVerifyCard(),t.unblock_ui()}),_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"setup_integration",t).call(t)}).catch(function(e){return t.handle_integration_error(e)})):_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"setup_integration",this).call(this)}},{key:"should_verify_3d_secure",value:function(e){var t;return t=e.details.cardType,this.is_3d_secure_enabled()&&"CreditCard"===e.type&&0<=s.call(this.threeds.card_types,t)}},{key:"should_verify_3d_secure_token",value:function(e){if(this.is_3d_secure_enabled()&&e.val()&&e.data("nonce")&&!e.data("verified"))return!0}},{key:"verify_3d_secure",value:function(e){var t,n,r,i=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return r=o("#billing_state").val(),t=o("#billing_country").val(),n={billingAddress:{firstName:o("input[name=billing_first_name]").val(),lastName:o("input[name=billing_last_name]").val(),streetAddress:o("input[name=billing_address_1]").val(),extendedAddress:o("input[name=billing_address_2]").val(),locality:o("#billing_city").val(),region:"string"==typeof r&&r.length<=2?r:"",postalCode:o("input[name=billing_postcode]").val(),countryCodeAlpha2:"string"==typeof t&&t.length<=2?t:""}},this.threeDSecure.verifyCard({nonce:e,amount:o("input[name=wc-"+this.id_dasherized+"-3d-secure-order-total]").val(),customer:n,addFrame:function(e,t){return i.add_3ds_ui(e,t)},removeFrame:function(){return i.remove_3ds_ui()}}).then(function(e){return i.log("3D Secure response received.",e),i.threeds.liability_shift_always_required&&!e.liabilityShifted?i.render_error(i.threeds.failure_message):(null!=a&&a.data("verified",!0),o("input[name=wc-"+i.id_dasherized+"-3d-secure-verified]").val(1),i.submit_form(e.nonce))}).catch(function(e){return i.handle_payment_error(e)})}},{key:"add_3ds_ui",value:function(e,t){var n;return _(this,r),e?this.handle_payment_error(e):((n=o("<div>",{id:"wc-"+this.id_dasherized+"-3dsecure-container"})).html(t),o(document.body).append(n),n.fadeIn(400))}},{key:"remove_3ds_ui",value:function(){return _(this,r),o("#wc-"+this.id_dasherized+"-3dsecure-container").fadeOut(400,function(e){return o(this).remove()})}},{key:"show_integration_ui",value:function(){return _(this,r),_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"show_integration_ui",this).call(this),o(".wc-braintree-hosted-field-parent").show()}},{key:"hide_integration_ui",value:function(){return _(this,r),_get(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"hide_integration_ui",this).call(this),o(".wc-braintree-hosted-field-parent").hide()}}]),a}(),i=window.WC_Braintree_PayPal_Payment_Form_Handler=function(e){function n(e){_classCallCheck(this,n);var t=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.do_integration_ready=t.do_integration_ready.bind(t),t.on_authorize=t.on_authorize.bind(t),t.get_linked_account_html=t.get_linked_account_html.bind(t),t.is_test_environment=e.is_test_environment,t.is_paypal_credit_enabled=e.is_paypal_credit_enabled,t.must_login_message=e.must_login_message,t.must_login_add_method_message=e.must_login_add_method_message,t.button_styles=e.button_styles,t.cart_payment_nonce=e.cart_payment_nonce,t.init(),t}return _inherits(n,WC_Braintree_Payment_Form_Handler),_createClass(n,[{key:"init",value:function(){var t=this;return _get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"init",this).call(this),o("input[name=wc_"+this.id+"_payment_nonce]").val(this.cart_payment_nonce),o(document.body).on("click",'input[name="payment_method"], input.js-wc-braintree-paypal-payment-token',function(){return t.toggle_order_button()}),o(document.body).on("payment_method_selected",function(){return t.toggle_order_button()}),o(document.body).on("click",".wc-braintree-paypal-account .cancel",function(e){return e.preventDefault(),o(e.currentTarget).parent().remove(),t.setup_braintree()})}},{key:"toggle_order_button",value:function(){return!this.is_selected()||this.has_payment_nonce()||this.using_payment_token()?o("#place_order").show():o("#place_order").hide()}},{key:"verify_form",value:function(){var e;return e=_get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"verify_form",this).call(this),this.has_payment_nonce()||this.using_payment_token()||this.render_error(this.must_login_message),e}},{key:"handle_payment_error",value:function(e){return _get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"handle_payment_error",this).call(this,e),this.cart_payment_nonce=!1,this.setup_braintree()}},{key:"get_integration_class",value:function(){return braintree.paypalCheckout}},{key:"setup_braintree",value:function(){return this.cart_payment_nonce?this.unblock_ui():(_get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"setup_braintree",this).call(this),o("input.js-wc-braintree-paypal-tokenize-payment-method").prop("disabled",!1),this.toggle_order_button())}},{key:"do_integration_ready",value:function(){var e,t=this;return _(this,i),this.cart_payment_nonce?this.unblock_ui():(e=this.is_single_use()?"checkout":"vault",this.render_button(this.integration.createPayment({flow:e,amount:this.get_order_amount(),currency:this.get_store_currency(),locale:this.get_store_locale()}),this.get_button_styles(),"#wc_braintree_paypal_container").then(function(){return o("#wc_braintree_paypal_container").css({width:"100%"})}).catch(function(e){return t.log("Could not render the PayPal button. "+e.message,e),t.hide_integration_ui()}).finally(function(){return t.unblock_ui()}))}},{key:"render_button",value:function(e,t,n){var r,i,a=this;return o(n).html(""),r=this.is_paypal_credit_enabled&&"USD"===this.get_store_currency()?{allowed:[paypal.FUNDING.CREDIT]}:{disallowed:[paypal.FUNDING.CREDIT]},i={env:this.is_test_environment?"sandbox":"production",commit:this.button_is_pay_now(),style:t,funding:r,payment:function(){return e},onAuthorize:function(e,t){return a.on_authorize(e,t)},onError:function(e){return a.handle_integration_error(e)}},paypal.Button.render(i,n)}},{key:"button_is_pay_now",value:function(){return!o("form#add_payment_method").length}},{key:"get_button_styles",value:function(){return this.button_styles}},{key:"on_authorize",value:function(e,t){var n=this;return _(this,i),this.block_ui(),this.integration.tokenizePayment(e).then(function(e){return n.log("Payment method tokenized.",e),n.set_payment_method(e)}).catch(function(e){return n.handle_payment_error(e),n.unblock_ui()})}},{key:"set_payment_method",value:function(e){return o("input[name=wc_"+this.id+"_payment_nonce]").val(e.nonce),o("#wc_braintree_paypal_container").html(this.get_linked_account_html(e.details)),this.is_single_use()&&o("input.js-wc-braintree-paypal-tokenize-payment-method").prop("disabled",!0),o("#place_order").show(),this.form.submit()}},{key:"handle_saved_payment_methods",value:function(){var t=this;return _get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"handle_saved_payment_methods",this).call(this),o("input.js-wc-braintree-paypal-tokenize-payment-method").change(function(e){if(null!=t.integration&&o(e.target).is(":visible"))return t.block_ui(),t.do_integration_ready()}).change()}},{key:"get_linked_account_html",value:function(e){var t;return _(this,i),t=o("<div class='wc-"+this.id_dasherized+"-account'></div>"),null!=e.firstName&&null!=e.lastName&&t.append("<span class='name'>"+e.firstName+" "+e.lastName+"</span>"),t.append("<span class='email'>"+e.email+"</span>"),t.append("<a href='#' class='cancel'>Cancel</a>"),t}},{key:"is_single_use",value:function(){var e;return 0===(e=o("input[name=wc-braintree-paypal-tokenize-payment-method]")).length||("checkbox"===e.attr("type")?!e.is(":checked"):!e.val())}},{key:"get_order_amount",value:function(){return o("input[name=wc_braintree_paypal_amount]").val()}},{key:"get_store_currency",value:function(){return o("input[name=wc_braintree_paypal_currency]").val()}},{key:"get_store_locale",value:function(){return o("input[name=wc_braintree_paypal_locale]").val()}},{key:"is_sdk_ready",value:function(){return _get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"is_sdk_ready",this).call(this)&&"undefined"!=typeof paypal&&null!==paypal}}]),n}(),window.WC_Braintree_PayPal_Cart_Handler=function(e){function n(e){_classCallCheck(this,n);var t=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.set_payment_method_nonce=e.set_payment_method_nonce,t.cart_handler_url=e.cart_handler_url,t.form=o("form.woocommerce-cart-form"),t.form_ui_selector="",t.setup_braintree(),o(document.body).on("updated_cart_totals",function(){return t.setup_braintree()}),t}return _inherits(n,WC_Braintree_PayPal_Payment_Form_Handler),_createClass(n,[{key:"button_is_pay_now",value:function(){return!1}},{key:"set_payment_method",value:function(e){var t=this;if(null!=e.nonce)return e.wp_nonce=this.set_payment_method_nonce,o.ajax({type:"POST",url:this.cart_handler_url,data:e,dataType:"json"}).done(function(e){if(t.log("Cart response received.",e),null!=e.redirect_url)return window.location=e.redirect_url}).fail(function(e){return t.log("Error setting the PayPal cart data.",e,"error")}).always(function(){return t.unblock_ui()})}},{key:"is_single_use",value:function(){return"1"===o("input[name=wc_braintree_paypal_single_use]").val()}},{key:"has_payment_nonce",value:function(){return!1}}]),n}()})}).call(void 0);
|
class-wc-braintree.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
@@ -88,7 +88,7 @@ class WC_Braintree extends WC_Braintree_Framework\SV_WC_Payment_Gateway_Plugin {
|
|
88 |
|
89 |
|
90 |
/** plugin version number */
|
91 |
-
const VERSION = '2.2.
|
92 |
|
93 |
/** Braintree JS SDK version */
|
94 |
const BRAINTREE_JS_SDK_VERSION = '3.38.0';
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
88 |
|
89 |
|
90 |
/** plugin version number */
|
91 |
+
const VERSION = '2.2.1';
|
92 |
|
93 |
/** Braintree JS SDK version */
|
94 |
const BRAINTREE_JS_SDK_VERSION = '3.38.0';
|
i18n/languages/woocommerce-gateway-paypal-powered-by-braintree.pot
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the WooCommerce PayPal Powered by Braintree Gateway package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce PayPal Powered by Braintree Gateway 2.2.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://woocommerce.com/my-account/marketplace-ticket-form/\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date:
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
@@ -166,27 +166,27 @@ msgstr ""
|
|
166 |
msgid "Allow customers to securely pay using their credit card via Braintree."
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
170 |
msgid "Basic"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
174 |
msgid "Advanced"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
178 |
msgid "Kount Direct"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
182 |
msgid "Fraud Settings"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
186 |
msgid "Fraud Tool"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
190 |
msgid ""
|
191 |
"Select the fraud tool you want to use. Basic is enabled by default and "
|
192 |
"requires no additional configuration. Advanced requires you to enable "
|
@@ -194,65 +194,65 @@ msgid ""
|
|
194 |
"you must contact Braintree support."
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
198 |
msgid "Kount merchant ID"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
202 |
msgid "Speak with your account management team at Braintree to get this."
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
206 |
msgid "3D Secure"
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
210 |
msgid ""
|
211 |
"3D Secure benefits cardholders and merchants by providing an additional "
|
212 |
"layer of verification using Verified by Visa, MasterCard SecureCode, and "
|
213 |
"American Express SafeKey. %1$sLearn more about 3D Secure%2$s."
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
217 |
msgid "Level"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
221 |
msgid "Only accept payments when the liability is shifted"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
225 |
msgid "Standard"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
229 |
msgid "Strict"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
233 |
msgid "Supported Card Types"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
237 |
msgid "3D Secure validation will only occur for these cards."
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
241 |
msgid "Card Verification (CSC)"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
245 |
msgid "Display and Require the Card Security Code (CVV/CID) field on checkout"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
249 |
-
#: includes/payment-forms/class-wc-braintree-hosted-fields-payment-form.php:
|
250 |
msgid ""
|
251 |
"We cannot process your order with the payment information that you "
|
252 |
"provided. Please use an alternate payment method."
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: includes/class-wc-gateway-braintree-credit-card.php:
|
256 |
#: includes/class-wc-gateway-braintree.php:155
|
257 |
msgid ""
|
258 |
"Oops, there was a temporary payment error. Please try another payment "
|
@@ -275,175 +275,175 @@ msgstr ""
|
|
275 |
msgid "Email"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
279 |
msgid "Use a new PayPal account"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
283 |
msgid "PayPal Accounts"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
287 |
msgid "Unlink"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
291 |
msgid "Button Appearance"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
295 |
msgid "Button Color"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
299 |
msgid "Gold"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
303 |
msgid "Blue"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
307 |
msgid "Silver"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
311 |
msgid "White"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
315 |
msgid "Black"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
319 |
msgid "Button Size"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
323 |
msgid "Medium"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
327 |
msgid "Large"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
331 |
msgid "Responsive"
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
335 |
msgid "Button Shape"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
339 |
msgid "PayPal Credit"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
343 |
msgid "Show the PayPal credit button beneath the standard PayPal button"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
347 |
msgid "Currently disabled because PayPal Credit is only available for US merchants"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
351 |
msgid "Enable Cart Checkout"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
355 |
msgid "Allow customers to check out with PayPal from the Cart page"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
359 |
msgid "Preview"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
363 |
#. translators: Placeholders: %1$s - payment method title (e.g. PayPal), %2$s -
|
364 |
#. transaction environment (either Sandbox or blank string), %3$s - type of
|
365 |
#. transaction (either Authorization or Payment)
|
366 |
msgid "%1$s %2$s %3$s Approved"
|
367 |
msgstr ""
|
368 |
|
369 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
370 |
#: includes/class-wc-gateway-braintree.php:1333
|
371 |
msgid "Sandbox"
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
375 |
msgid "Authorization"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
379 |
msgid "Payment"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
383 |
#. translators: Placeholders: %s - transaction ID
|
384 |
msgid "(Transaction ID %s)"
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
388 |
msgid "PayPal Account Saved: %s"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
392 |
msgid "PayPal"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
396 |
msgid ""
|
397 |
"Click the PayPal icon below to sign into your PayPal account and pay "
|
398 |
"securely."
|
399 |
msgstr ""
|
400 |
|
401 |
#: includes/class-wc-gateway-braintree.php:324
|
402 |
-
msgid "
|
403 |
msgstr ""
|
404 |
|
405 |
#: includes/class-wc-gateway-braintree.php:327
|
406 |
-
msgid "The
|
407 |
msgstr ""
|
408 |
|
409 |
#: includes/class-wc-gateway-braintree.php:331
|
410 |
-
msgid "
|
411 |
msgstr ""
|
412 |
|
413 |
#: includes/class-wc-gateway-braintree.php:334
|
414 |
-
msgid "The
|
415 |
msgstr ""
|
416 |
|
417 |
#: includes/class-wc-gateway-braintree.php:338
|
418 |
-
msgid "
|
419 |
msgstr ""
|
420 |
|
421 |
#: includes/class-wc-gateway-braintree.php:341
|
422 |
-
msgid "The
|
423 |
msgstr ""
|
424 |
|
425 |
#: includes/class-wc-gateway-braintree.php:346
|
426 |
-
msgid "Sandbox
|
427 |
msgstr ""
|
428 |
|
429 |
#: includes/class-wc-gateway-braintree.php:349
|
430 |
-
msgid "The
|
431 |
msgstr ""
|
432 |
|
433 |
#: includes/class-wc-gateway-braintree.php:353
|
434 |
-
msgid "Sandbox
|
435 |
msgstr ""
|
436 |
|
437 |
#: includes/class-wc-gateway-braintree.php:356
|
438 |
-
msgid "The
|
439 |
msgstr ""
|
440 |
|
441 |
#: includes/class-wc-gateway-braintree.php:360
|
442 |
-
msgid "Sandbox
|
443 |
msgstr ""
|
444 |
|
445 |
#: includes/class-wc-gateway-braintree.php:363
|
446 |
-
msgid "The
|
447 |
msgstr ""
|
448 |
|
449 |
#: includes/class-wc-gateway-braintree.php:368
|
@@ -630,12 +630,12 @@ msgctxt "Payment Method Type"
|
|
630 |
msgid "Type"
|
631 |
msgstr ""
|
632 |
|
633 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
634 |
msgctxt "button shape option"
|
635 |
msgid "Pill"
|
636 |
msgstr ""
|
637 |
|
638 |
-
#: includes/class-wc-gateway-braintree-paypal.php:
|
639 |
msgctxt "button shape option"
|
640 |
msgid "Rectangle"
|
641 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 WooCommerce
|
2 |
# This file is distributed under the same license as the WooCommerce PayPal Powered by Braintree Gateway package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce PayPal Powered by Braintree Gateway 2.2.1\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://woocommerce.com/my-account/marketplace-ticket-form/\n"
|
8 |
+
"POT-Creation-Date: 2019-02-06 23:02:07+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
166 |
msgid "Allow customers to securely pay using their credit card via Braintree."
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:179
|
170 |
msgid "Basic"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:180
|
174 |
msgid "Advanced"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:185
|
178 |
msgid "Kount Direct"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:192
|
182 |
msgid "Fraud Settings"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:196
|
186 |
msgid "Fraud Tool"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:199
|
190 |
msgid ""
|
191 |
"Select the fraud tool you want to use. Basic is enabled by default and "
|
192 |
"requires no additional configuration. Advanced requires you to enable "
|
194 |
"you must contact Braintree support."
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:203
|
198 |
msgid "Kount merchant ID"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:206
|
202 |
msgid "Speak with your account management team at Braintree to get this."
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:238
|
206 |
msgid "3D Secure"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:240
|
210 |
msgid ""
|
211 |
"3D Secure benefits cardholders and merchants by providing an additional "
|
212 |
"layer of verification using Verified by Visa, MasterCard SecureCode, and "
|
213 |
"American Express SafeKey. %1$sLearn more about 3D Secure%2$s."
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:243
|
217 |
msgid "Level"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:245
|
221 |
msgid "Only accept payments when the liability is shifted"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:248
|
225 |
msgid "Standard"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:249
|
229 |
msgid "Strict"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:253
|
233 |
msgid "Supported Card Types"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:256
|
237 |
msgid "3D Secure validation will only occur for these cards."
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:278
|
241 |
msgid "Card Verification (CSC)"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:279
|
245 |
msgid "Display and Require the Card Security Code (CVV/CID) field on checkout"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:925
|
249 |
+
#: includes/payment-forms/class-wc-braintree-hosted-fields-payment-form.php:138
|
250 |
msgid ""
|
251 |
"We cannot process your order with the payment information that you "
|
252 |
"provided. Please use an alternate payment method."
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: includes/class-wc-gateway-braintree-credit-card.php:933
|
256 |
#: includes/class-wc-gateway-braintree.php:155
|
257 |
msgid ""
|
258 |
"Oops, there was a temporary payment error. Please try another payment "
|
275 |
msgid "Email"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: includes/class-wc-gateway-braintree-paypal.php:193
|
279 |
msgid "Use a new PayPal account"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: includes/class-wc-gateway-braintree-paypal.php:197
|
283 |
msgid "PayPal Accounts"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: includes/class-wc-gateway-braintree-paypal.php:218
|
287 |
msgid "Unlink"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: includes/class-wc-gateway-braintree-paypal.php:240
|
291 |
msgid "Button Appearance"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: includes/class-wc-gateway-braintree-paypal.php:245
|
295 |
msgid "Button Color"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: includes/class-wc-gateway-braintree-paypal.php:247
|
299 |
msgid "Gold"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: includes/class-wc-gateway-braintree-paypal.php:248
|
303 |
msgid "Blue"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: includes/class-wc-gateway-braintree-paypal.php:249
|
307 |
msgid "Silver"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: includes/class-wc-gateway-braintree-paypal.php:250
|
311 |
msgid "White"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: includes/class-wc-gateway-braintree-paypal.php:251
|
315 |
msgid "Black"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: includes/class-wc-gateway-braintree-paypal.php:258
|
319 |
msgid "Button Size"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: includes/class-wc-gateway-braintree-paypal.php:260
|
323 |
msgid "Medium"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: includes/class-wc-gateway-braintree-paypal.php:261
|
327 |
msgid "Large"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: includes/class-wc-gateway-braintree-paypal.php:262
|
331 |
msgid "Responsive"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: includes/class-wc-gateway-braintree-paypal.php:269
|
335 |
msgid "Button Shape"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: includes/class-wc-gateway-braintree-paypal.php:278
|
339 |
msgid "PayPal Credit"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: includes/class-wc-gateway-braintree-paypal.php:281
|
343 |
msgid "Show the PayPal credit button beneath the standard PayPal button"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: includes/class-wc-gateway-braintree-paypal.php:282
|
347 |
msgid "Currently disabled because PayPal Credit is only available for US merchants"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: includes/class-wc-gateway-braintree-paypal.php:291
|
351 |
msgid "Enable Cart Checkout"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: includes/class-wc-gateway-braintree-paypal.php:293
|
355 |
msgid "Allow customers to check out with PayPal from the Cart page"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: includes/class-wc-gateway-braintree-paypal.php:372
|
359 |
msgid "Preview"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: includes/class-wc-gateway-braintree-paypal.php:496
|
363 |
#. translators: Placeholders: %1$s - payment method title (e.g. PayPal), %2$s -
|
364 |
#. transaction environment (either Sandbox or blank string), %3$s - type of
|
365 |
#. transaction (either Authorization or Payment)
|
366 |
msgid "%1$s %2$s %3$s Approved"
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: includes/class-wc-gateway-braintree-paypal.php:498
|
370 |
#: includes/class-wc-gateway-braintree.php:1333
|
371 |
msgid "Sandbox"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: includes/class-wc-gateway-braintree-paypal.php:499
|
375 |
msgid "Authorization"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: includes/class-wc-gateway-braintree-paypal.php:499
|
379 |
msgid "Payment"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: includes/class-wc-gateway-braintree-paypal.php:505
|
383 |
#. translators: Placeholders: %s - transaction ID
|
384 |
msgid "(Transaction ID %s)"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: includes/class-wc-gateway-braintree-paypal.php:526
|
388 |
msgid "PayPal Account Saved: %s"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: includes/class-wc-gateway-braintree-paypal.php:605
|
392 |
msgid "PayPal"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: includes/class-wc-gateway-braintree-paypal.php:619
|
396 |
msgid ""
|
397 |
"Click the PayPal icon below to sign into your PayPal account and pay "
|
398 |
"securely."
|
399 |
msgstr ""
|
400 |
|
401 |
#: includes/class-wc-gateway-braintree.php:324
|
402 |
+
msgid "Merchant ID"
|
403 |
msgstr ""
|
404 |
|
405 |
#: includes/class-wc-gateway-braintree.php:327
|
406 |
+
msgid "The Merchant ID for your Braintree account."
|
407 |
msgstr ""
|
408 |
|
409 |
#: includes/class-wc-gateway-braintree.php:331
|
410 |
+
msgid "Public Key"
|
411 |
msgstr ""
|
412 |
|
413 |
#: includes/class-wc-gateway-braintree.php:334
|
414 |
+
msgid "The Public Key for your Braintree account."
|
415 |
msgstr ""
|
416 |
|
417 |
#: includes/class-wc-gateway-braintree.php:338
|
418 |
+
msgid "Private Key"
|
419 |
msgstr ""
|
420 |
|
421 |
#: includes/class-wc-gateway-braintree.php:341
|
422 |
+
msgid "The Private Key for your Braintree account."
|
423 |
msgstr ""
|
424 |
|
425 |
#: includes/class-wc-gateway-braintree.php:346
|
426 |
+
msgid "Sandbox Merchant ID"
|
427 |
msgstr ""
|
428 |
|
429 |
#: includes/class-wc-gateway-braintree.php:349
|
430 |
+
msgid "The Merchant ID for your Braintree sandbox account."
|
431 |
msgstr ""
|
432 |
|
433 |
#: includes/class-wc-gateway-braintree.php:353
|
434 |
+
msgid "Sandbox Public Key"
|
435 |
msgstr ""
|
436 |
|
437 |
#: includes/class-wc-gateway-braintree.php:356
|
438 |
+
msgid "The Public Key for your Braintree sandbox account."
|
439 |
msgstr ""
|
440 |
|
441 |
#: includes/class-wc-gateway-braintree.php:360
|
442 |
+
msgid "Sandbox Private Key"
|
443 |
msgstr ""
|
444 |
|
445 |
#: includes/class-wc-gateway-braintree.php:363
|
446 |
+
msgid "The Private Key for your Braintree sandbox account."
|
447 |
msgstr ""
|
448 |
|
449 |
#: includes/class-wc-gateway-braintree.php:368
|
630 |
msgid "Type"
|
631 |
msgstr ""
|
632 |
|
633 |
+
#: includes/class-wc-gateway-braintree-paypal.php:271
|
634 |
msgctxt "button shape option"
|
635 |
msgid "Pill"
|
636 |
msgstr ""
|
637 |
|
638 |
+
#: includes/class-wc-gateway-braintree-paypal.php:272
|
639 |
msgctxt "button shape option"
|
640 |
msgid "Rectangle"
|
641 |
msgstr ""
|
includes/api/class-wc-braintree-api-response-message-helper.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Response-Message-Helper
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Response-Message-Helper
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/class-wc-braintree-api.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/requests/abstract-wc-braintree-api-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Request
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Request
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/requests/abstract-wc-braintree-api-vault-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Vault
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Vault
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/requests/class-wc-braintree-api-client-token-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Client-Token
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Client-Token
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/requests/class-wc-braintree-api-customer-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Customer
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Customer
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/requests/class-wc-braintree-api-payment-method-nonce-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Payment-Nonce
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Payment-Nonce
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/requests/class-wc-braintree-api-payment-method-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/requests/class-wc-braintree-api-transaction-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Transaction
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
@@ -299,7 +299,7 @@ class WC_Braintree_API_Transaction_Request extends WC_Braintree_API_Request {
|
|
299 |
|
300 |
// add recurring flag to transactions that are subscription renewals
|
301 |
if ( ! empty( $this->get_order()->payment->recurring ) ) {
|
302 |
-
$this->request_data['
|
303 |
}
|
304 |
}
|
305 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Transaction
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
299 |
|
300 |
// add recurring flag to transactions that are subscription renewals
|
301 |
if ( ! empty( $this->get_order()->payment->recurring ) ) {
|
302 |
+
$this->request_data['transactionSource'] = 'recurring';
|
303 |
}
|
304 |
}
|
305 |
|
includes/api/responses/abstract-wc-braintree-api-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Response
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Response
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/responses/abstract-wc-braintree-api-transaction-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Transaction
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Transaction
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/responses/abstract-wc-braintree-api-vault-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Vault
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Vault
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/responses/class-wc-braintree-api-client-token-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Client-Token
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Client-Token
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/responses/class-wc-braintree-api-credit-card-transaction-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Credit-Card-Transaction
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Credit-Card-Transaction
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/responses/class-wc-braintree-api-customer-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Customer
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Customer
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/responses/class-wc-braintree-api-merchant-configuration-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Client-Token
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Requests/Client-Token
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/responses/class-wc-braintree-api-payment-method-nonce-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Payment-Nonce
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Payment-Nonce
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/responses/class-wc-braintree-api-payment-method-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/api/responses/class-wc-braintree-api-paypal-transaction-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/PayPal-Transaction
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/API/Responses/PayPal-Transaction
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/apple-pay/api/class-wc-braintree-apple-pay-api-payment-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Credit-Card
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Credit-Card
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/apple-pay/class-wc-braintree-apple-pay-frontend.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Credit-Card
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Credit-Card
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/apple-pay/class-wc-braintree-apple-pay.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Credit-Card
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Credit-Card
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/class-wc-braintree-capture.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/class-wc-braintree-frontend.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/class-wc-braintree-lifecycle.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/class-wc-braintree-payment-method-handler.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Method-Handler
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Method-Handler
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/class-wc-braintree-payment-method.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Method
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/class-wc-braintree-paypal-cart.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
includes/class-wc-gateway-braintree-credit-card.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Credit-Card
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
@@ -154,14 +154,13 @@ class WC_Gateway_Braintree_Credit_Card extends WC_Gateway_Braintree {
|
|
154 |
|
155 |
|
156 |
/**
|
157 |
-
*
|
158 |
*
|
159 |
-
* @since
|
160 |
-
* @return \WC_Braintree_Hosted_Fields_Payment_Form
|
161 |
*/
|
162 |
-
public function
|
163 |
|
164 |
-
|
165 |
}
|
166 |
|
167 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Credit-Card
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
154 |
|
155 |
|
156 |
/**
|
157 |
+
* Initializes the payment form handler.
|
158 |
*
|
159 |
+
* @since 2.2.1
|
|
|
160 |
*/
|
161 |
+
public function init_payment_form_handler() {
|
162 |
|
163 |
+
$this->payment_form_handler = new \WC_Braintree_Hosted_Fields_Payment_Form( $this );
|
164 |
}
|
165 |
|
166 |
|
includes/class-wc-gateway-braintree-paypal.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/PayPal
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
@@ -162,14 +162,13 @@ class WC_Gateway_Braintree_PayPal extends WC_Gateway_Braintree {
|
|
162 |
|
163 |
|
164 |
/**
|
165 |
-
*
|
166 |
*
|
167 |
-
* @since
|
168 |
-
* @return \WC_Braintree_PayPal_Payment_Form
|
169 |
*/
|
170 |
-
public function
|
171 |
|
172 |
-
|
173 |
}
|
174 |
|
175 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/PayPal
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
162 |
|
163 |
|
164 |
/**
|
165 |
+
* Initializes the payment form handler.
|
166 |
*
|
167 |
+
* @since 2.2.1
|
|
|
168 |
*/
|
169 |
+
public function init_payment_form_handler() {
|
170 |
|
171 |
+
$this->payment_form_handler = new \WC_Braintree_PayPal_Payment_Form( $this );
|
172 |
}
|
173 |
|
174 |
|
includes/class-wc-gateway-braintree.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
@@ -320,47 +320,47 @@ class WC_Gateway_Braintree extends WC_Braintree_Framework\SV_WC_Payment_Gateway_
|
|
320 |
return array(
|
321 |
|
322 |
// production
|
323 |
-
'
|
324 |
-
'title'
|
325 |
-
'type'
|
326 |
'class' => 'environment-field production-field',
|
327 |
-
'desc_tip'
|
328 |
),
|
329 |
|
330 |
-
'
|
331 |
-
'title'
|
332 |
-
'type'
|
333 |
'class' => 'environment-field production-field',
|
334 |
-
'desc_tip'
|
335 |
),
|
336 |
|
337 |
-
'
|
338 |
-
'title'
|
339 |
-
'type'
|
340 |
'class' => 'environment-field production-field',
|
341 |
-
'desc_tip'
|
342 |
),
|
343 |
|
344 |
// sandbox
|
345 |
-
'
|
346 |
-
'title'
|
347 |
-
'type'
|
348 |
'class' => 'environment-field sandbox-field',
|
349 |
-
'desc_tip'
|
350 |
),
|
351 |
|
352 |
-
'
|
353 |
-
'title'
|
354 |
-
'type'
|
355 |
'class' => 'environment-field sandbox-field',
|
356 |
-
'desc_tip'
|
357 |
),
|
358 |
|
359 |
-
'
|
360 |
-
'title'
|
361 |
-
'type'
|
362 |
'class' => 'environment-field sandbox-field',
|
363 |
-
'desc_tip'
|
364 |
),
|
365 |
|
366 |
// merchant account ID per currency feature
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
320 |
return array(
|
321 |
|
322 |
// production
|
323 |
+
'merchant_id' => array(
|
324 |
+
'title' => __( 'Merchant ID', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
325 |
+
'type' => 'text',
|
326 |
'class' => 'environment-field production-field',
|
327 |
+
'desc_tip' => __( 'The Merchant ID for your Braintree account.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
328 |
),
|
329 |
|
330 |
+
'public_key' => array(
|
331 |
+
'title' => __( 'Public Key', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
332 |
+
'type' => 'text',
|
333 |
'class' => 'environment-field production-field',
|
334 |
+
'desc_tip' => __( 'The Public Key for your Braintree account.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
335 |
),
|
336 |
|
337 |
+
'private_key' => array(
|
338 |
+
'title' => __( 'Private Key', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
339 |
+
'type' => 'password',
|
340 |
'class' => 'environment-field production-field',
|
341 |
+
'desc_tip' => __( 'The Private Key for your Braintree account.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
342 |
),
|
343 |
|
344 |
// sandbox
|
345 |
+
'sandbox_merchant_id' => array(
|
346 |
+
'title' => __( 'Sandbox Merchant ID', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
347 |
+
'type' => 'text',
|
348 |
'class' => 'environment-field sandbox-field',
|
349 |
+
'desc_tip' => __( 'The Merchant ID for your Braintree sandbox account.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
350 |
),
|
351 |
|
352 |
+
'sandbox_public_key' => array(
|
353 |
+
'title' => __( 'Sandbox Public Key', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
354 |
+
'type' => 'text',
|
355 |
'class' => 'environment-field sandbox-field',
|
356 |
+
'desc_tip' => __( 'The Public Key for your Braintree sandbox account.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
357 |
),
|
358 |
|
359 |
+
'sandbox_private_key' => array(
|
360 |
+
'title' => __( 'Sandbox Private Key', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
361 |
+
'type' => 'password',
|
362 |
'class' => 'environment-field sandbox-field',
|
363 |
+
'desc_tip' => __( 'The Private Key for your Braintree sandbox account.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
364 |
),
|
365 |
|
366 |
// merchant account ID per currency feature
|
includes/payment-forms/abstract-wc-braintree-payment-form.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Form
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
@@ -107,6 +107,11 @@ abstract class WC_Braintree_Payment_Form extends WC_Braintree_Framework\SV_WC_Pa
|
|
107 |
*/
|
108 |
public function render_js() {
|
109 |
|
|
|
|
|
|
|
|
|
|
|
110 |
// defaults for both gateways
|
111 |
$params = array_merge( array(
|
112 |
'id' => $this->get_gateway()->get_id(),
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Form
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
107 |
*/
|
108 |
public function render_js() {
|
109 |
|
110 |
+
// bail if not on a payment form page
|
111 |
+
if ( ! $this->get_gateway()->is_available() || ! $this->get_gateway()->is_payment_form_page() ) {
|
112 |
+
return;
|
113 |
+
}
|
114 |
+
|
115 |
// defaults for both gateways
|
116 |
$params = array_merge( array(
|
117 |
'id' => $this->get_gateway()->get_id(),
|
includes/payment-forms/class-wc-braintree-hosted-fields-payment-form.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Form/Hosted-Fields
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
@@ -135,7 +135,6 @@ class WC_Braintree_Hosted_Fields_Payment_Form extends WC_Braintree_Payment_Form
|
|
135 |
'enabled' => ! is_add_payment_method_page() && $this->get_gateway()->is_3d_secure_enabled(), // setting this to false overrides any account configuration
|
136 |
'liability_shift_always_required' => $this->get_gateway()->is_3d_secure_liability_shift_always_required(),
|
137 |
'card_types' => $card_types,
|
138 |
-
'order_total' => WC_Braintree_Framework\SV_WC_Helper::number_format( $this->get_order_total() ),
|
139 |
'failure_message' => __( 'We cannot process your order with the payment information that you provided. Please use an alternate payment method.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
140 |
),
|
141 |
'hosted_fields_styles' => $this->get_hosted_fields_styles(),
|
@@ -221,6 +220,10 @@ class WC_Braintree_Hosted_Fields_Payment_Form extends WC_Braintree_Payment_Form
|
|
221 |
echo '<input type="hidden" name="wc-' . $this->get_gateway()->get_id_dasherized() . '-' . esc_attr( $field ) . '" value="" />';
|
222 |
}
|
223 |
|
|
|
|
|
|
|
|
|
224 |
parent::render_payment_fields();
|
225 |
}
|
226 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Form/Hosted-Fields
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
135 |
'enabled' => ! is_add_payment_method_page() && $this->get_gateway()->is_3d_secure_enabled(), // setting this to false overrides any account configuration
|
136 |
'liability_shift_always_required' => $this->get_gateway()->is_3d_secure_liability_shift_always_required(),
|
137 |
'card_types' => $card_types,
|
|
|
138 |
'failure_message' => __( 'We cannot process your order with the payment information that you provided. Please use an alternate payment method.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
139 |
),
|
140 |
'hosted_fields_styles' => $this->get_hosted_fields_styles(),
|
220 |
echo '<input type="hidden" name="wc-' . $this->get_gateway()->get_id_dasherized() . '-' . esc_attr( $field ) . '" value="" />';
|
221 |
}
|
222 |
|
223 |
+
$order_total = $this->get_order_total();
|
224 |
+
|
225 |
+
echo '<input type="hidden" name="wc-' . $this->get_gateway()->get_id_dasherized() . '-3d-secure-order-total" value="' . esc_attr( WC_Braintree_Framework\SV_WC_Helper::number_format( $order_total ) ) . '" />';
|
226 |
+
|
227 |
parent::render_payment_fields();
|
228 |
}
|
229 |
|
includes/payment-forms/class-wc-braintree-paypal-payment-form.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Form/PayPal
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
@@ -82,7 +82,7 @@ class WC_Braintree_PayPal_Payment_Form extends WC_Braintree_Payment_Form {
|
|
82 |
'must_login_message' => __( 'Please click the "PayPal" button below to log into your PayPal account before placing your order.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
83 |
'must_login_add_method_message' => __( 'Please click the "PayPal" button below to log into your PayPal account before adding your payment method.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
84 |
'button_styles' => wp_parse_args( $button_styles, $default_button_styles ), // ensure all expected parameters are present after filtering to avoid JS errors
|
85 |
-
'cart_payment_nonce' => $this->get_gateway()->get_plugin()->get_paypal_cart_instance()->get_cart_nonce(),
|
86 |
] );
|
87 |
|
88 |
return $params;
|
@@ -98,7 +98,9 @@ class WC_Braintree_PayPal_Payment_Form extends WC_Braintree_Payment_Form {
|
|
98 |
*/
|
99 |
public function render_payment_form_description() {
|
100 |
|
101 |
-
|
|
|
|
|
102 |
return;
|
103 |
}
|
104 |
|
@@ -115,7 +117,9 @@ class WC_Braintree_PayPal_Payment_Form extends WC_Braintree_Payment_Form {
|
|
115 |
*/
|
116 |
public function render_saved_payment_methods() {
|
117 |
|
118 |
-
|
|
|
|
|
119 |
return;
|
120 |
}
|
121 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Payment-Form/PayPal
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
82 |
'must_login_message' => __( 'Please click the "PayPal" button below to log into your PayPal account before placing your order.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
83 |
'must_login_add_method_message' => __( 'Please click the "PayPal" button below to log into your PayPal account before adding your payment method.', 'woocommerce-gateway-paypal-powered-by-braintree' ),
|
84 |
'button_styles' => wp_parse_args( $button_styles, $default_button_styles ), // ensure all expected parameters are present after filtering to avoid JS errors
|
85 |
+
'cart_payment_nonce' => ( $cart_handler = $this->get_gateway()->get_plugin()->get_paypal_cart_instance() ) ? $cart_handler->get_cart_nonce() : '',
|
86 |
] );
|
87 |
|
88 |
return $params;
|
98 |
*/
|
99 |
public function render_payment_form_description() {
|
100 |
|
101 |
+
$cart_handler = $this->get_gateway()->get_plugin()->get_paypal_cart_instance();
|
102 |
+
|
103 |
+
if ( $cart_handler && $cart_handler->is_checkout_confirmation() ) {
|
104 |
return;
|
105 |
}
|
106 |
|
117 |
*/
|
118 |
public function render_saved_payment_methods() {
|
119 |
|
120 |
+
$cart_handler = $this->get_gateway()->get_plugin()->get_paypal_cart_instance();
|
121 |
+
|
122 |
+
if ( $cart_handler && $cart_handler->is_checkout_confirmation() ) {
|
123 |
return;
|
124 |
}
|
125 |
|
includes/views/admin-html-braintree-auth.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Auth
|
20 |
* @author WooCommerce
|
21 |
-
* @copyright Copyright: (c) 2016-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package WC-Braintree/Gateway/Auth
|
20 |
* @author WooCommerce
|
21 |
+
* @copyright Copyright: (c) 2016-2019, Automattic, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/license.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
WooCommerce Plugin Framework
|
2 |
|
3 |
-
Copyright 2013-
|
4 |
|
5 |
This program is free software; you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License as published by
|
1 |
WooCommerce Plugin Framework
|
2 |
|
3 |
+
Copyright 2013-2019, SkyVerge, Inc.
|
4 |
|
5 |
This program is free software; you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License as published by
|
lib/skyverge/woocommerce/Addresses/Address.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/Addresses/Customer_Address.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/Lifecycle.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/admin/abstract-sv-wc-plugin-admin-setup-wizard.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* needs please refer to http://www.skyverge.com
|
18 |
*
|
19 |
* @author SkyVerge
|
20 |
-
* @copyright Copyright (c) 2013-
|
21 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
22 |
*/
|
23 |
|
17 |
* needs please refer to http://www.skyverge.com
|
18 |
*
|
19 |
* @author SkyVerge
|
20 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
21 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
22 |
*/
|
23 |
|
lib/skyverge/woocommerce/api/abstract-sv-wc-api-json-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Request
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Request
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/api/abstract-sv-wc-api-json-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Response
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Response
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/api/abstract-sv-wc-api-xml-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Request
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Request
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/api/abstract-sv-wc-api-xml-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Response
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Response
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/api/class-sv-wc-api-base.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/api/class-sv-wc-api-exception.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Exceptions
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Exceptions
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/api/interface-sv-wc-api-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Request
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Request
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/api/interface-sv-wc-api-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Request
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/API/Request
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/changelog.txt
CHANGED
File without changes
|
lib/skyverge/woocommerce/class-sv-wc-admin-notice-handler.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/class-sv-wc-helper.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/class-sv-wc-hook-deprecator.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/class-sv-wc-plugin-compatibility.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/class-sv-wc-plugin-dependencies.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/class-sv-wc-plugin-exception.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Exceptions
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Exceptions
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/class-sv-wc-plugin.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/class-sv-wp-admin-message-handler.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WordPress/WP-Admin-Message-Handler
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WordPress/WP-Admin-Message-Handler
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/compatibility/abstract-sv-wc-data-compatibility.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Compatibility
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Compatibility
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/compatibility/class-sv-wc-datetime.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Compatibility
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Compatibility
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/compatibility/class-sv-wc-order-compatibility.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Compatibility
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Compatibility
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/compatibility/class-sv-wc-product-compatibility.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Compatibility
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Compatibility
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/index.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/Handlers/Capture.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Admin
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Admin
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/admin/abstract-sv-wc-payment-gateway-plugin-admin-setup-wizard.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* needs please refer to http://www.skyverge.com
|
18 |
*
|
19 |
* @author SkyVerge
|
20 |
-
* @copyright Copyright (c) 2013-
|
21 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
22 |
*/
|
23 |
|
17 |
* needs please refer to http://www.skyverge.com
|
18 |
*
|
19 |
* @author SkyVerge
|
20 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
21 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
22 |
*/
|
23 |
|
lib/skyverge/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-order.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Admin
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Admin
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-payment-token-editor.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Admin
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Admin
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/admin/class-sv-wc-payment-gateway-admin-user-handler.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Admin
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Admin
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/admin/views/html-admin-gateway-status.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
lib/skyverge/woocommerce/payment-gateway/admin/views/html-order-partial-capture.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
lib/skyverge/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
lib/skyverge/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
lib/skyverge/woocommerce/payment-gateway/admin/views/html-user-profile-field-customer-id.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
lib/skyverge/woocommerce/payment-gateway/admin/views/html-user-profile-section.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Gateway/Admin/Views
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
?>
|
lib/skyverge/woocommerce/payment-gateway/api/class-sv-wc-payment-gateway-api-response-message-helper.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-authorization-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-create-payment-token-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-customer-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-get-tokenized-payment-methods-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-credit-card-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-echeck-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-payment-notification-tokenization-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api-response.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/api/interface-sv-wc-payment-gateway-api.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/API
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-admin-order.scss
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
WooCommerce SkyVerge Payment Gateway Framework Order Admin SCSS
|
3 |
Version 5.0.0
|
4 |
|
5 |
-
Copyright (c) 2016-
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
*/
|
2 |
WooCommerce SkyVerge Payment Gateway Framework Order Admin SCSS
|
3 |
Version 5.0.0
|
4 |
|
5 |
+
Copyright (c) 2016-2019, SkyVerge, Inc.
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
*/
|
lib/skyverge/woocommerce/payment-gateway/assets/css/admin/sv-wc-payment-gateway-token-editor.scss
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
WooCommerce SkyVerge Payment Gateway Framework Token Editor SCSS
|
3 |
Version 4.3.0
|
4 |
|
5 |
-
Copyright (c) 2016-
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
*/
|
2 |
WooCommerce SkyVerge Payment Gateway Framework Token Editor SCSS
|
3 |
Version 4.3.0
|
4 |
|
5 |
+
Copyright (c) 2016-2019, SkyVerge, Inc.
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
*/
|
lib/skyverge/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css
CHANGED
File without changes
|
lib/skyverge/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.min.css.map
CHANGED
File without changes
|
lib/skyverge/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-my-payment-methods.scss
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
WooCommerce SkyVerge Payment Gateway Framework My Payment Methods SCSS
|
3 |
Version 4.3.0
|
4 |
|
5 |
-
Copyright (c) 2015-
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
*/
|
2 |
WooCommerce SkyVerge Payment Gateway Framework My Payment Methods SCSS
|
3 |
Version 4.3.0
|
4 |
|
5 |
+
Copyright (c) 2015-2019, SkyVerge, Inc.
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
*/
|
lib/skyverge/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.min.css
CHANGED
File without changes
|
lib/skyverge/woocommerce/payment-gateway/assets/css/frontend/sv-wc-payment-gateway-payment-form.scss
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
WooCommerce SkyVerge Payment Gateway Framework Payment Form SCSS
|
3 |
Version 4.3.0
|
4 |
|
5 |
-
Copyright (c) 2015-
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
*/
|
2 |
WooCommerce SkyVerge Payment Gateway Framework Payment Form SCSS
|
3 |
Version 4.3.0
|
4 |
|
5 |
+
Copyright (c) 2015-2019, SkyVerge, Inc.
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
*/
|
lib/skyverge/woocommerce/payment-gateway/assets/js/admin/sv-wc-payment-gateway-admin-order.coffee
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
WooCommerce SkyVerge Payment Gateway Framework Order Admin CoffeeScript
|
3 |
Version 5.0.0
|
4 |
|
5 |
-
Copyright (c) 2017-
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
###
|
2 |
WooCommerce SkyVerge Payment Gateway Framework Order Admin CoffeeScript
|
3 |
Version 5.0.0
|
4 |
|
5 |
+
Copyright (c) 2017-2019, SkyVerge, Inc.
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
###
|
lib/skyverge/woocommerce/payment-gateway/assets/js/admin/sv-wc-payment-gateway-admin-order.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
/* WooCommerce SkyVerge Payment Gateway Framework Order Admin CoffeeScript Version 5.0.0 Copyright (c) 2017-
|
1 |
+
/* WooCommerce SkyVerge Payment Gateway Framework Order Admin CoffeeScript Version 5.0.0 Copyright (c) 2017-2019, SkyVerge, Inc. Licensed under the GNU General Public License v3.0 http://www.gnu.org/licenses/gpl-3.0.html */(function() { jQuery(document).ready(function($) { "use strict"; var accounting, ref, ref1, ref2, ref3, submitCapture, sv_wc_payment_gateway_admin_order, woocommerce_admin, woocommerce_admin_meta_boxes; sv_wc_payment_gateway_admin_order = (ref = window.sv_wc_payment_gateway_admin_order) != null ? ref : {}; woocommerce_admin = (ref1 = window.woocommerce_admin) != null ? ref1 : {}; woocommerce_admin_meta_boxes = (ref2 = window.woocommerce_admin_meta_boxes) != null ? ref2 : {}; accounting = (ref3 = window.accounting) != null ? ref3 : {}; $('.sv-wc-payment-gateway-partial-capture').appendTo('#woocommerce-order-items .inside'); $('#woocommerce-order-items').on('click', '.sv-wc-payment-gateway-capture:not(.disabled)', function(e) { e.preventDefault(); if ($(this).hasClass('partial-capture')) { $('div.sv-wc-payment-gateway-partial-capture').slideDown(); $('div.wc-order-data-row-toggle').not('div.sv-wc-payment-gateway-partial-capture').slideUp(); return $('div.wc-order-totals-items').slideUp(); } else { return submitCapture(); } }); $('.sv-wc-payment-gateway-partial-capture').on('change keyup', '#capture_amount', function(e) { var total; total = accounting.unformat($(this).val(), woocommerce_admin.mon_decimal_point); if (total) { $('button.capture-action').removeAttr('disabled'); } else { $('button.capture-action').attr('disabled', 'disabled'); } return $('button .capture-amount .amount').text(accounting.formatMoney(total, { symbol: woocommerce_admin_meta_boxes.currency_format_symbol, decimal: woocommerce_admin_meta_boxes.currency_format_decimal_sep, thousand: woocommerce_admin_meta_boxes.currency_format_thousand_sep, precision: woocommerce_admin_meta_boxes.currency_format_num_decimals, format: woocommerce_admin_meta_boxes.currency_format })); }); $('.sv-wc-payment-gateway-partial-capture').on('click', '.capture-action', function(e) { var amount, comment; e.preventDefault(); amount = $('.sv-wc-payment-gateway-partial-capture #capture_amount').val(); comment = $('.sv-wc-payment-gateway-partial-capture #capture_comment').val(); return submitCapture(amount, comment); }); return submitCapture = function(amount, comment) { var data; if (amount == null) { amount = ''; } if (comment == null) { comment = ''; } if (confirm(sv_wc_payment_gateway_admin_order.capture_ays)) { $('#woocommerce-order-items').block({ message: null, overlayCSS: { background: '#fff', opacity: 0.6 } }); data = { action: sv_wc_payment_gateway_admin_order.capture_action, nonce: sv_wc_payment_gateway_admin_order.capture_nonce, gateway_id: sv_wc_payment_gateway_admin_order.gateway_id, order_id: sv_wc_payment_gateway_admin_order.order_id, amount: amount, comment: comment }; return $.ajax({ url: sv_wc_payment_gateway_admin_order.ajax_url, data: data }).done(function(response) { if ((response.data != null) && (response.data.message != null)) { alert(response.data.message); } if (response.success) { return location.reload(); } }).fail(function() { return alert(sv_wc_payment_gateway_admin_order.capture_error); }).always(function() { return $('#woocommerce-order-items').unblock(); }); } }; });}).call(this);
|
lib/skyverge/woocommerce/payment-gateway/assets/js/admin/sv-wc-payment-gateway-token-editor.coffee
CHANGED
File without changes
|
lib/skyverge/woocommerce/payment-gateway/assets/js/admin/sv-wc-payment-gateway-token-editor.min.js
CHANGED
File without changes
|
lib/skyverge/woocommerce/payment-gateway/assets/js/admin/sv-wc-payment-gateway-token-editor.min.js.map
CHANGED
File without changes
|
lib/skyverge/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.coffee
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
WooCommerce SkyVerge Payment Gateway My Payment Methods CoffeeScript
|
3 |
Version 5.1.0
|
4 |
|
5 |
-
Copyright (c) 2014-
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
###
|
2 |
WooCommerce SkyVerge Payment Gateway My Payment Methods CoffeeScript
|
3 |
Version 5.1.0
|
4 |
|
5 |
+
Copyright (c) 2014-2019, SkyVerge, Inc.
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
###
|
lib/skyverge/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-my-payment-methods.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
/* WooCommerce SkyVerge Payment Gateway My Payment Methods CoffeeScript Version 5.1.0 Copyright (c) 2014-
|
1 |
+
/* WooCommerce SkyVerge Payment Gateway My Payment Methods CoffeeScript Version 5.1.0 Copyright (c) 2014-2019, SkyVerge, Inc. Licensed under the GNU General Public License v3.0 http://www.gnu.org/licenses/gpl-3.0.html */(function() { var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; jQuery(document).ready(function($) { "use strict"; return window.SV_WC_Payment_Methods_Handler = (function() { function SV_WC_Payment_Methods_Handler(args) { this.cancel_edit = bind(this.cancel_edit, this); this.save_method = bind(this.save_method, this); this.edit_method = bind(this.edit_method, this); this.id = args.id; this.slug = args.slug; this.i18n = args.i18n; this.ajax_url = args.ajax_url; this.ajax_nonce = args.ajax_nonce; if (!args.has_core_tokens) { $(".wc-" + this.slug + "-my-payment-methods").prev(".woocommerce-Message.woocommerce-Message--info").hide(); } $(".wc-" + this.slug + "-payment-method-actions .button.tip").tipTip(); $(".wc-" + this.slug + "-my-payment-methods").on('click', ".wc-" + this.slug + "-payment-method-actions .edit-payment-method", (function(_this) { return function(event) { return _this.edit_method(event); }; })(this)); $(".wc-" + this.slug + "-my-payment-methods").on('click', ".wc-" + this.slug + "-payment-method-actions .save-payment-method", (function(_this) { return function(event) { return _this.save_method(event); }; })(this)); $(".wc-" + this.slug + "-my-payment-methods").on('click', ".wc-" + this.slug + "-payment-method-actions .cancel-edit-payment-method", (function(_this) { return function(event) { return _this.cancel_edit(event); }; })(this)); $(".wc-" + this.slug + "-my-payment-methods").on('click', ".wc-" + this.slug + "-payment-method-actions .delete-payment-method", (function(_this) { return function(event) { if ($(event.currentTarget).hasClass('disabled') || !confirm(_this.i18n.delete_ays)) { return event.preventDefault(); } }; })(this)); $('.button[href*="add-payment-method"]').click(function(event) { if ($(this).hasClass('disabled')) { return event.preventDefault(); } }); } SV_WC_Payment_Methods_Handler.prototype.edit_method = function(event) { var button, row; event.preventDefault(); button = $(event.currentTarget); row = button.parents('tr'); row.find('.view').hide(); row.find('.edit').show(); row.addClass('editing'); button.text(this.i18n.cancel_button).removeClass('edit-payment-method').addClass('cancel-edit-payment-method').removeClass('button'); button.siblings('.save-payment-method').show(); button.siblings('.delete-payment-method').hide(); return this.enable_editing_ui(); }; SV_WC_Payment_Methods_Handler.prototype.save_method = function(event) { var button, data, row; event.preventDefault(); button = $(event.currentTarget); row = button.parents('tr'); this.block_ui(); row.next('.error').remove(); data = { action: "wc_" + this.id + "_save_payment_method", nonce: this.ajax_nonce, token_id: row.data('token-id'), data: row.find('input[name]').serialize() }; return $.post(this.ajax_url, data).done((function(_this) { return function(response) { if (!response.success) { return _this.display_error(row, response.data); } if (response.data.is_default) { row.siblings().find(".wc-" + _this.slug + "-payment-method-default .view").empty().siblings('.edit').find('input').prop('checked', false); } if (response.data.html != null) { row.replaceWith(response.data.html); } if (response.data.nonce != null) { _this.ajax_nonce = response.data.nonce; } return _this.disable_editing_ui(); }; })(this)).fail((function(_this) { return function(jqXHR, textStatus, error) { return _this.display_error(row, error); }; })(this)).always((function(_this) { return function() { return _this.unblock_ui(); }; })(this)); }; SV_WC_Payment_Methods_Handler.prototype.cancel_edit = function(event) { var button, row; event.preventDefault(); button = $(event.currentTarget); row = button.parents('tr'); row.find('.view').show(); row.find('.edit').hide(); row.removeClass('editing'); button.removeClass('cancel-edit-payment-method').addClass('edit-payment-method').text(this.i18n.edit_button).addClass('button'); button.siblings('.save-payment-method').hide(); button.siblings('.delete-payment-method').show(); return this.disable_editing_ui(); }; SV_WC_Payment_Methods_Handler.prototype.enable_editing_ui = function() { $(".wc-" + this.slug + "-my-payment-methods").addClass('editing'); return $('.button[href*="add-payment-method"]').addClass('disabled'); }; SV_WC_Payment_Methods_Handler.prototype.disable_editing_ui = function() { $(".wc-" + this.slug + "-my-payment-methods").removeClass('editing'); return $('.button[href*="add-payment-method"]').removeClass('disabled'); }; SV_WC_Payment_Methods_Handler.prototype.block_ui = function() { return $(".wc-" + this.slug + "-my-payment-methods").parent('div').block({ message: null, overlayCSS: { background: '#fff', opacity: 0.6 } }); }; SV_WC_Payment_Methods_Handler.prototype.unblock_ui = function() { return $(".wc-" + this.slug + "-my-payment-methods").parent('div').unblock(); }; SV_WC_Payment_Methods_Handler.prototype.display_error = function(row, error, message) { var columns; if (message == null) { message = ''; } console.error(error); if (!message) { message = this.i18n.save_error; } columns = $(".wc-" + this.slug + "-my-payment-methods thead tr th").size(); return $('<tr class="error"><td colspan="' + columns + '">' + message + '</td></tr>').insertAfter(row).find('td').delay(8000).slideUp(200); }; return SV_WC_Payment_Methods_Handler; })(); });}).call(this);
|
lib/skyverge/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-payment-form.coffee
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
WooCommerce SkyVerge Payment Gateway Framework Payment Form CoffeeScript
|
3 |
Version 4.3.0-beta
|
4 |
|
5 |
-
Copyright (c) 2014-
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
###
|
2 |
WooCommerce SkyVerge Payment Gateway Framework Payment Form CoffeeScript
|
3 |
Version 4.3.0-beta
|
4 |
|
5 |
+
Copyright (c) 2014-2019, SkyVerge, Inc.
|
6 |
Licensed under the GNU General Public License v3.0
|
7 |
http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
###
|
lib/skyverge/woocommerce/payment-gateway/assets/js/frontend/sv-wc-payment-gateway-payment-form.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
/* WooCommerce SkyVerge Payment Gateway Framework Payment Form CoffeeScript Version 4.3.0-beta Copyright (c) 2014-2018, SkyVerge, Inc. Licensed under the GNU General Public License v3.0 http://www.gnu.org/licenses/gpl-3.0.html */(function() { var indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; jQuery(document).ready(function($) { "use strict"; return window.SV_WC_Payment_Form_Handler = (function() { function SV_WC_Payment_Form_Handler(args) { this.id = args.id; this.id_dasherized = args.id_dasherized; this.plugin_id = args.plugin_id; this.type = args.type; this.csc_required = args.csc_required; this.csc_required_for_tokens = args.csc_required_for_tokens; this.enabled_card_types = args.enabled_card_types; if ($('form.checkout').length) { this.form = $('form.checkout'); this.handle_checkout_page(); } else if ($('form#order_review').length) { this.form = $('form#order_review'); this.handle_pay_page(); } else if ($('form#add_payment_method').length) { this.form = $('form#add_payment_method'); this.handle_add_payment_method_page(); } else { console.log('No payment form found!'); return; } this.params = window["sv_wc_payment_gateway_payment_form_params"]; if (this.type === 'echeck') { this.form.on('click', '.js-sv-wc-payment-gateway-echeck-form-check-hint, .js-sv-wc-payment-gateway-echeck-form-sample-check', (function(_this) { return function() { return _this.handle_sample_check_hint(); }; })(this)); } $(document).trigger('sv_wc_payment_form_handler_init', { id: this.id, instance: this }); } SV_WC_Payment_Form_Handler.prototype.handle_checkout_page = function() { if (this.type === 'credit-card') { $(document.body).on('updated_checkout', (function(_this) { return function() { return _this.format_credit_card_inputs(); }; })(this)); } $(document.body).on('updated_checkout', (function(_this) { return function() { return _this.set_payment_fields(); }; })(this)); $(document.body).on('updated_checkout', (function(_this) { return function() { return _this.handle_saved_payment_methods(); }; })(this)); return this.form.on("checkout_place_order_" + this.id, (function(_this) { return function() { return _this.validate_payment_data(); }; })(this)); }; SV_WC_Payment_Form_Handler.prototype.handle_pay_page = function() { this.set_payment_fields(); if (this.type === 'credit-card') { this.format_credit_card_inputs(); } this.handle_saved_payment_methods(); return this.form.submit((function(_this) { return function() { if ($('#order_review input[name=payment_method]:checked').val() === _this.id) { return _this.validate_payment_data(); } }; })(this)); }; SV_WC_Payment_Form_Handler.prototype.handle_add_payment_method_page = function() { this.set_payment_fields(); if (this.type === 'credit-card') { this.format_credit_card_inputs(); } return this.form.submit((function(_this) { return function() { if ($('#add_payment_method input[name=payment_method]:checked').val() === _this.id) { return _this.validate_payment_data(); } }; })(this)); }; SV_WC_Payment_Form_Handler.prototype.set_payment_fields = function() { return this.payment_fields = $(".payment_method_" + this.id); }; SV_WC_Payment_Form_Handler.prototype.validate_payment_data = function() { var handler, valid; if (this.form.is('.processing')) { return false; } this.saved_payment_method_selected = this.payment_fields.find('.js-sv-wc-payment-gateway-payment-token:checked').val(); valid = this.type === 'credit-card' ? this.validate_card_data() : this.validate_account_data(); handler = $(document.body).triggerHandler('sv_wc_payment_form_valid_payment_data', { payment_form: this, passed_validation: valid }) !== false; return valid && handler; }; SV_WC_Payment_Form_Handler.prototype.format_credit_card_inputs = function() { $('.js-sv-wc-payment-gateway-credit-card-form-account-number').payment('formatCardNumber').change(); $('.js-sv-wc-payment-gateway-credit-card-form-expiry').payment('formatCardExpiry').change(); $('.js-sv-wc-payment-gateway-credit-card-form-csc').payment('formatCardCVC').change(); return $('.js-sv-wc-payment-gateway-credit-card-form-input').on('change paste keyup', (function(_this) { return function() { return _this.do_inline_credit_card_validation(); }; })(this)); }; SV_WC_Payment_Form_Handler.prototype.do_inline_credit_card_validation = function() { var $card_number, $card_type, $csc, $expiry; $card_number = $('.js-sv-wc-payment-gateway-credit-card-form-account-number'); $expiry = $('.js-sv-wc-payment-gateway-credit-card-form-expiry'); $csc = $('.js-sv-wc-payment-gateway-credit-card-form-csc'); $card_type = $.payment.cardType($card_number.val()); if (indexOf.call(this.enabled_card_types, $card_type) < 0) { $card_number.addClass('invalid-card-type'); } else { $card_number.removeClass('invalid-card-type'); } if ($.payment.validateCardExpiry($expiry.payment('cardExpiryVal'))) { $expiry.addClass('identified'); } else { $expiry.removeClass('identified'); } if ($.payment.validateCardCVC($csc.val())) { return $csc.addClass('identified'); } else { return $csc.removeClass('identified'); } }; SV_WC_Payment_Form_Handler.prototype.validate_card_data = function() { var account_number, csc, errors, expiry; errors = []; csc = this.payment_fields.find('.js-sv-wc-payment-gateway-credit-card-form-csc').val(); if (csc != null) { if (csc) { if (/\D/.test(csc)) { errors.push(this.params.cvv_digits_invalid); } if (csc.length < 3 || csc.length > 4) { errors.push(this.params.cvv_length_invalid); } } else if (this.csc_required) { if (!this.saved_payment_method_selected || this.csc_required_for_tokens) { errors.push(this.params.cvv_missing); } } } if (!this.saved_payment_method_selected) { account_number = this.payment_fields.find('.js-sv-wc-payment-gateway-credit-card-form-account-number').val(); expiry = $.payment.cardExpiryVal(this.payment_fields.find('.js-sv-wc-payment-gateway-credit-card-form-expiry').val()); account_number = account_number.replace(/-|\s/g, ''); if (!account_number) { errors.push(this.params.card_number_missing); } else { if (account_number.length < 12 || account_number.length > 19) { errors.push(this.params.card_number_length_invalid); } if (/\D/.test(account_number)) { errors.push(this.params.card_number_digits_invalid); } if (!$.payment.validateCardNumber(account_number)) { errors.push(this.params.card_number_invalid); } } if (!$.payment.validateCardExpiry(expiry)) { errors.push(this.params.card_exp_date_invalid); } } if (errors.length > 0) { this.render_errors(errors); return false; } else { this.payment_fields.find('.js-sv-wc-payment-gateway-credit-card-form-account-number').val(account_number); return true; } }; SV_WC_Payment_Form_Handler.prototype.validate_account_data = function() { var account_number, errors, routing_number; if (this.saved_payment_method_selected) { return true; } errors = []; routing_number = this.payment_fields.find('.js-sv-wc-payment-gateway-echeck-form-routing-number').val(); account_number = this.payment_fields.find('.js-sv-wc-payment-gateway-echeck-form-account-number').val(); if (!routing_number) { errors.push(this.params.routing_number_missing); } else { if (9 !== routing_number.length) { errors.push(this.params.routing_number_length_invalid); } if (/\D/.test(routing_number)) { errors.push(this.params.routing_number_digits_invalid); } } if (!account_number) { errors.push(this.params.account_number_missing); } else { if (account_number.length < 3 || account_number.length > 17) { errors.push(this.params.account_number_length_invalid); } if (/\D/.test(account_number)) { errors.push(this.params.account_number_invalid); } } if (errors.length > 0) { this.render_errors(errors); return false; } else { this.payment_fields.find('.js-sv-wc-payment-gateway-echeck-form-account-number').val(account_number); return true; } }; SV_WC_Payment_Form_Handler.prototype.render_errors = function(errors) { $('.woocommerce-error, .woocommerce-message').remove(); this.form.prepend('<ul class="woocommerce-error"><li>' + errors.join('</li><li>') + '</li></ul>'); this.form.removeClass('processing').unblock(); this.form.find('.input-text, select').blur(); return $('html, body').animate({ scrollTop: this.form.offset().top - 100 }, 1000); }; SV_WC_Payment_Form_Handler.prototype.handle_saved_payment_methods = function() { var $csc_field, $new_payment_method_selection, csc_required, csc_required_for_tokens, id_dasherized; id_dasherized = this.id_dasherized; csc_required = this.csc_required; csc_required_for_tokens = this.csc_required_for_tokens; $new_payment_method_selection = $("div.js-wc-" + id_dasherized + "-new-payment-method-form"); $csc_field = $new_payment_method_selection.find('.js-sv-wc-payment-gateway-credit-card-form-csc').closest('.form-row'); $("input.js-wc-" + this.id_dasherized + "-payment-token").change(function() { var tokenized_payment_method_selected; tokenized_payment_method_selected = $("input.js-wc-" + id_dasherized + "-payment-token:checked").val(); if (tokenized_payment_method_selected) { $new_payment_method_selection.slideUp(200); if (csc_required_for_tokens) { $csc_field.removeClass('form-row-last').addClass('form-row-first'); return $new_payment_method_selection.after($csc_field); } } else { $new_payment_method_selection.slideDown(200); if (csc_required_for_tokens) { $csc_field.removeClass('form-row-first').addClass('form-row-last'); return $new_payment_method_selection.find('.js-sv-wc-payment-gateway-credit-card-form-expiry').closest('.form-row').after($csc_field); } } }).change(); $('input#createaccount').change(function() { var $parent_row; $parent_row = $("input.js-wc-" + id_dasherized + "-tokenize-payment-method").closest('p.form-row'); if ($(this).is(':checked')) { $parent_row.slideDown(); return $parent_row.next().show(); } else { $parent_row.hide(); return $parent_row.next().hide(); } }); if (!$('input#createaccount').is(':checked')) { return $('input#createaccount').change(); } }; SV_WC_Payment_Form_Handler.prototype.handle_sample_check_hint = function() { var $sample_check; $sample_check = this.payment_fields.find('.js-sv-wc-payment-gateway-echeck-form-sample-check'); if ($sample_check.is(":visible")) { return $sample_check.slideUp(); } else { return $sample_check.slideDown(); } }; SV_WC_Payment_Form_Handler.prototype.block_ui = function() { return this.form.block({ message: null, overlayCSS: { background: '#fff', opacity: 0.6 } }); }; SV_WC_Payment_Form_Handler.prototype.unblock_ui = function() { return this.form.unblock(); }; return SV_WC_Payment_Form_Handler; })(); });}).call(this);
|
1 |
+
/* WooCommerce SkyVerge Payment Gateway Framework Payment Form CoffeeScript Version 4.3.0-beta Copyright (c) 2014-2019, SkyVerge, Inc. Licensed under the GNU General Public License v3.0 http://www.gnu.org/licenses/gpl-3.0.html */(function() { var indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; jQuery(document).ready(function($) { "use strict"; return window.SV_WC_Payment_Form_Handler = (function() { function SV_WC_Payment_Form_Handler(args) { this.id = args.id; this.id_dasherized = args.id_dasherized; this.plugin_id = args.plugin_id; this.type = args.type; this.csc_required = args.csc_required; this.csc_required_for_tokens = args.csc_required_for_tokens; this.enabled_card_types = args.enabled_card_types; if ($('form.checkout').length) { this.form = $('form.checkout'); this.handle_checkout_page(); } else if ($('form#order_review').length) { this.form = $('form#order_review'); this.handle_pay_page(); } else if ($('form#add_payment_method').length) { this.form = $('form#add_payment_method'); this.handle_add_payment_method_page(); } else { console.log('No payment form found!'); return; } this.params = window["sv_wc_payment_gateway_payment_form_params"]; if (this.type === 'echeck') { this.form.on('click', '.js-sv-wc-payment-gateway-echeck-form-check-hint, .js-sv-wc-payment-gateway-echeck-form-sample-check', (function(_this) { return function() { return _this.handle_sample_check_hint(); }; })(this)); } $(document).trigger('sv_wc_payment_form_handler_init', { id: this.id, instance: this }); } SV_WC_Payment_Form_Handler.prototype.handle_checkout_page = function() { if (this.type === 'credit-card') { $(document.body).on('updated_checkout', (function(_this) { return function() { return _this.format_credit_card_inputs(); }; })(this)); } $(document.body).on('updated_checkout', (function(_this) { return function() { return _this.set_payment_fields(); }; })(this)); $(document.body).on('updated_checkout', (function(_this) { return function() { return _this.handle_saved_payment_methods(); }; })(this)); return this.form.on("checkout_place_order_" + this.id, (function(_this) { return function() { return _this.validate_payment_data(); }; })(this)); }; SV_WC_Payment_Form_Handler.prototype.handle_pay_page = function() { this.set_payment_fields(); if (this.type === 'credit-card') { this.format_credit_card_inputs(); } this.handle_saved_payment_methods(); return this.form.submit((function(_this) { return function() { if ($('#order_review input[name=payment_method]:checked').val() === _this.id) { return _this.validate_payment_data(); } }; })(this)); }; SV_WC_Payment_Form_Handler.prototype.handle_add_payment_method_page = function() { this.set_payment_fields(); if (this.type === 'credit-card') { this.format_credit_card_inputs(); } return this.form.submit((function(_this) { return function() { if ($('#add_payment_method input[name=payment_method]:checked').val() === _this.id) { return _this.validate_payment_data(); } }; })(this)); }; SV_WC_Payment_Form_Handler.prototype.set_payment_fields = function() { return this.payment_fields = $(".payment_method_" + this.id); }; SV_WC_Payment_Form_Handler.prototype.validate_payment_data = function() { var handler, valid; if (this.form.is('.processing')) { return false; } this.saved_payment_method_selected = this.payment_fields.find('.js-sv-wc-payment-gateway-payment-token:checked').val(); valid = this.type === 'credit-card' ? this.validate_card_data() : this.validate_account_data(); handler = $(document.body).triggerHandler('sv_wc_payment_form_valid_payment_data', { payment_form: this, passed_validation: valid }) !== false; return valid && handler; }; SV_WC_Payment_Form_Handler.prototype.format_credit_card_inputs = function() { $('.js-sv-wc-payment-gateway-credit-card-form-account-number').payment('formatCardNumber').change(); $('.js-sv-wc-payment-gateway-credit-card-form-expiry').payment('formatCardExpiry').change(); $('.js-sv-wc-payment-gateway-credit-card-form-csc').payment('formatCardCVC').change(); return $('.js-sv-wc-payment-gateway-credit-card-form-input').on('change paste keyup', (function(_this) { return function() { return _this.do_inline_credit_card_validation(); }; })(this)); }; SV_WC_Payment_Form_Handler.prototype.do_inline_credit_card_validation = function() { var $card_number, $card_type, $csc, $expiry; $card_number = $('.js-sv-wc-payment-gateway-credit-card-form-account-number'); $expiry = $('.js-sv-wc-payment-gateway-credit-card-form-expiry'); $csc = $('.js-sv-wc-payment-gateway-credit-card-form-csc'); $card_type = $.payment.cardType($card_number.val()); if (indexOf.call(this.enabled_card_types, $card_type) < 0) { $card_number.addClass('invalid-card-type'); } else { $card_number.removeClass('invalid-card-type'); } if ($.payment.validateCardExpiry($expiry.payment('cardExpiryVal'))) { $expiry.addClass('identified'); } else { $expiry.removeClass('identified'); } if ($.payment.validateCardCVC($csc.val())) { return $csc.addClass('identified'); } else { return $csc.removeClass('identified'); } }; SV_WC_Payment_Form_Handler.prototype.validate_card_data = function() { var account_number, csc, errors, expiry; errors = []; csc = this.payment_fields.find('.js-sv-wc-payment-gateway-credit-card-form-csc').val(); if (csc != null) { if (csc) { if (/\D/.test(csc)) { errors.push(this.params.cvv_digits_invalid); } if (csc.length < 3 || csc.length > 4) { errors.push(this.params.cvv_length_invalid); } } else if (this.csc_required) { if (!this.saved_payment_method_selected || this.csc_required_for_tokens) { errors.push(this.params.cvv_missing); } } } if (!this.saved_payment_method_selected) { account_number = this.payment_fields.find('.js-sv-wc-payment-gateway-credit-card-form-account-number').val(); expiry = $.payment.cardExpiryVal(this.payment_fields.find('.js-sv-wc-payment-gateway-credit-card-form-expiry').val()); account_number = account_number.replace(/-|\s/g, ''); if (!account_number) { errors.push(this.params.card_number_missing); } else { if (account_number.length < 12 || account_number.length > 19) { errors.push(this.params.card_number_length_invalid); } if (/\D/.test(account_number)) { errors.push(this.params.card_number_digits_invalid); } if (!$.payment.validateCardNumber(account_number)) { errors.push(this.params.card_number_invalid); } } if (!$.payment.validateCardExpiry(expiry)) { errors.push(this.params.card_exp_date_invalid); } } if (errors.length > 0) { this.render_errors(errors); return false; } else { this.payment_fields.find('.js-sv-wc-payment-gateway-credit-card-form-account-number').val(account_number); return true; } }; SV_WC_Payment_Form_Handler.prototype.validate_account_data = function() { var account_number, errors, routing_number; if (this.saved_payment_method_selected) { return true; } errors = []; routing_number = this.payment_fields.find('.js-sv-wc-payment-gateway-echeck-form-routing-number').val(); account_number = this.payment_fields.find('.js-sv-wc-payment-gateway-echeck-form-account-number').val(); if (!routing_number) { errors.push(this.params.routing_number_missing); } else { if (9 !== routing_number.length) { errors.push(this.params.routing_number_length_invalid); } if (/\D/.test(routing_number)) { errors.push(this.params.routing_number_digits_invalid); } } if (!account_number) { errors.push(this.params.account_number_missing); } else { if (account_number.length < 3 || account_number.length > 17) { errors.push(this.params.account_number_length_invalid); } if (/\D/.test(account_number)) { errors.push(this.params.account_number_invalid); } } if (errors.length > 0) { this.render_errors(errors); return false; } else { this.payment_fields.find('.js-sv-wc-payment-gateway-echeck-form-account-number').val(account_number); return true; } }; SV_WC_Payment_Form_Handler.prototype.render_errors = function(errors) { $('.woocommerce-error, .woocommerce-message').remove(); this.form.prepend('<ul class="woocommerce-error"><li>' + errors.join('</li><li>') + '</li></ul>'); this.form.removeClass('processing').unblock(); this.form.find('.input-text, select').blur(); return $('html, body').animate({ scrollTop: this.form.offset().top - 100 }, 1000); }; SV_WC_Payment_Form_Handler.prototype.handle_saved_payment_methods = function() { var $csc_field, $new_payment_method_selection, csc_required, csc_required_for_tokens, id_dasherized; id_dasherized = this.id_dasherized; csc_required = this.csc_required; csc_required_for_tokens = this.csc_required_for_tokens; $new_payment_method_selection = $("div.js-wc-" + id_dasherized + "-new-payment-method-form"); $csc_field = $new_payment_method_selection.find('.js-sv-wc-payment-gateway-credit-card-form-csc').closest('.form-row'); $("input.js-wc-" + this.id_dasherized + "-payment-token").change(function() { var tokenized_payment_method_selected; tokenized_payment_method_selected = $("input.js-wc-" + id_dasherized + "-payment-token:checked").val(); if (tokenized_payment_method_selected) { $new_payment_method_selection.slideUp(200); if (csc_required_for_tokens) { $csc_field.removeClass('form-row-last').addClass('form-row-first'); return $new_payment_method_selection.after($csc_field); } } else { $new_payment_method_selection.slideDown(200); if (csc_required_for_tokens) { $csc_field.removeClass('form-row-first').addClass('form-row-last'); return $new_payment_method_selection.find('.js-sv-wc-payment-gateway-credit-card-form-expiry').closest('.form-row').after($csc_field); } } }).change(); $('input#createaccount').change(function() { var $parent_row; $parent_row = $("input.js-wc-" + id_dasherized + "-tokenize-payment-method").closest('p.form-row'); if ($(this).is(':checked')) { $parent_row.slideDown(); return $parent_row.next().show(); } else { $parent_row.hide(); return $parent_row.next().hide(); } }); if (!$('input#createaccount').is(':checked')) { return $('input#createaccount').change(); } }; SV_WC_Payment_Form_Handler.prototype.handle_sample_check_hint = function() { var $sample_check; $sample_check = this.payment_fields.find('.js-sv-wc-payment-gateway-echeck-form-sample-check'); if ($sample_check.is(":visible")) { return $sample_check.slideUp(); } else { return $sample_check.slideDown(); } }; SV_WC_Payment_Form_Handler.prototype.block_ui = function() { return this.form.block({ message: null, overlayCSS: { background: '#fff', opacity: 0.6 } }); }; SV_WC_Payment_Form_Handler.prototype.unblock_ui = function() { return this.form.unblock(); }; return SV_WC_Payment_Form_Handler; })(); });}).call(this);
|
lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-helper.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-my-payment-methods.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-payment-form.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
@@ -60,9 +60,6 @@ class SV_WC_Payment_Gateway_Payment_Form {
|
|
60 |
|
61 |
// hook up rendering
|
62 |
$this->add_hooks();
|
63 |
-
|
64 |
-
// maybe load tokens
|
65 |
-
$this->get_tokens();
|
66 |
}
|
67 |
|
68 |
|
@@ -95,7 +92,7 @@ class SV_WC_Payment_Gateway_Payment_Form {
|
|
95 |
add_action( "wc_{$gateway_id}_payment_form_end", array( $this, 'render_fieldset_end' ), 5 );
|
96 |
|
97 |
// payment form JS
|
98 |
-
add_action(
|
99 |
}
|
100 |
|
101 |
|
@@ -786,6 +783,9 @@ class SV_WC_Payment_Gateway_Payment_Form {
|
|
786 |
*/
|
787 |
public function render() {
|
788 |
|
|
|
|
|
|
|
789 |
/**
|
790 |
* Payment Gateway Payment Form Start Action.
|
791 |
*
|
@@ -947,6 +947,10 @@ class SV_WC_Payment_Gateway_Payment_Form {
|
|
947 |
*/
|
948 |
public function render_js() {
|
949 |
|
|
|
|
|
|
|
|
|
950 |
$args = array(
|
951 |
'plugin_id' => $this->get_gateway()->get_plugin()->get_id(),
|
952 |
'id' => $this->get_gateway()->get_id(),
|
@@ -981,6 +985,19 @@ class SV_WC_Payment_Gateway_Payment_Form {
|
|
981 |
}
|
982 |
|
983 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
984 |
}
|
985 |
|
986 |
endif; // class exists check
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
60 |
|
61 |
// hook up rendering
|
62 |
$this->add_hooks();
|
|
|
|
|
|
|
63 |
}
|
64 |
|
65 |
|
92 |
add_action( "wc_{$gateway_id}_payment_form_end", array( $this, 'render_fieldset_end' ), 5 );
|
93 |
|
94 |
// payment form JS
|
95 |
+
add_action( 'wp_footer', array( $this, 'render_js' ), 5 );
|
96 |
}
|
97 |
|
98 |
|
783 |
*/
|
784 |
public function render() {
|
785 |
|
786 |
+
// maybe load tokens
|
787 |
+
$this->get_tokens();
|
788 |
+
|
789 |
/**
|
790 |
* Payment Gateway Payment Form Start Action.
|
791 |
*
|
947 |
*/
|
948 |
public function render_js() {
|
949 |
|
950 |
+
if ( ! $this->is_payment_form_page() ) {
|
951 |
+
return;
|
952 |
+
}
|
953 |
+
|
954 |
$args = array(
|
955 |
'plugin_id' => $this->get_gateway()->get_plugin()->get_id(),
|
956 |
'id' => $this->get_gateway()->get_id(),
|
985 |
}
|
986 |
|
987 |
|
988 |
+
/**
|
989 |
+
* Determines if we're on a payment form page.
|
990 |
+
*
|
991 |
+
* @since 2.2.1-dev.1
|
992 |
+
*
|
993 |
+
* @return bool
|
994 |
+
*/
|
995 |
+
protected function is_payment_form_page() {
|
996 |
+
|
997 |
+
return ( is_checkout() && ! is_order_received_page() ) || is_checkout_pay_page() || is_add_payment_method_page();
|
998 |
+
}
|
999 |
+
|
1000 |
+
|
1001 |
}
|
1002 |
|
1003 |
endif; // class exists check
|
lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway-privacy.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
@@ -189,6 +189,9 @@ abstract class SV_WC_Payment_Gateway extends \WC_Payment_Gateway {
|
|
189 |
/** @var array of shared setting names, if any. This can be used for instance when a single plugin supports both credit card and echeck payments, and the same credentials can be used for both gateways */
|
190 |
private $shared_settings = array();
|
191 |
|
|
|
|
|
|
|
192 |
/** @var SV_WC_Payment_Gateway_Payment_Tokens_Handler payment tokens handler instance */
|
193 |
protected $payment_tokens_handler;
|
194 |
|
@@ -305,6 +308,9 @@ abstract class SV_WC_Payment_Gateway extends \WC_Payment_Gateway {
|
|
305 |
// pay page fallback
|
306 |
$this->add_pay_page_handler();
|
307 |
|
|
|
|
|
|
|
308 |
// filter order received text for held orders
|
309 |
add_filter( 'woocommerce_thankyou_order_received_text', array( $this, 'maybe_render_held_order_received_text' ), 10, 2 );
|
310 |
|
@@ -727,15 +733,25 @@ abstract class SV_WC_Payment_Gateway extends \WC_Payment_Gateway {
|
|
727 |
}
|
728 |
|
729 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
730 |
/**
|
731 |
* Get the payment form class instance
|
732 |
*
|
733 |
* @since 4.1.2
|
734 |
-
*
|
|
|
735 |
*/
|
736 |
public function get_payment_form_instance() {
|
737 |
|
738 |
-
return
|
739 |
}
|
740 |
|
741 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
189 |
/** @var array of shared setting names, if any. This can be used for instance when a single plugin supports both credit card and echeck payments, and the same credentials can be used for both gateways */
|
190 |
private $shared_settings = array();
|
191 |
|
192 |
+
/** @var SV_WC_Payment_Gateway_Payment_Form payment form handler instance */
|
193 |
+
protected $payment_form_handler;
|
194 |
+
|
195 |
/** @var SV_WC_Payment_Gateway_Payment_Tokens_Handler payment tokens handler instance */
|
196 |
protected $payment_tokens_handler;
|
197 |
|
308 |
// pay page fallback
|
309 |
$this->add_pay_page_handler();
|
310 |
|
311 |
+
// payment form handler
|
312 |
+
$this->init_payment_form_handler();
|
313 |
+
|
314 |
// filter order received text for held orders
|
315 |
add_filter( 'woocommerce_thankyou_order_received_text', array( $this, 'maybe_render_held_order_received_text' ), 10, 2 );
|
316 |
|
733 |
}
|
734 |
|
735 |
|
736 |
+
/**
|
737 |
+
* Initializes the payment form handler.
|
738 |
+
*/
|
739 |
+
public function init_payment_form_handler() {
|
740 |
+
|
741 |
+
$this->payment_form_handler = new SV_WC_Payment_Gateway_Payment_Form( $this );
|
742 |
+
}
|
743 |
+
|
744 |
+
|
745 |
/**
|
746 |
* Get the payment form class instance
|
747 |
*
|
748 |
* @since 4.1.2
|
749 |
+
*
|
750 |
+
* @return SV_WC_Payment_Gateway_Payment_Form
|
751 |
*/
|
752 |
public function get_payment_form_instance() {
|
753 |
|
754 |
+
return $this->payment_form_handler;
|
755 |
}
|
756 |
|
757 |
|
lib/skyverge/woocommerce/payment-gateway/exceptions/class-sv-wc-payment-gateway-exception.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Exceptions
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Exceptions
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/integrations/abstract-sv-wc-payment-gateway-integration.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-pre-orders.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/integrations/class-sv-wc-payment-gateway-integration-subscriptions.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-token.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/payment-tokens/class-sv-wc-payment-gateway-payment-tokens-handler.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Payment-Tokens
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Payment-Gateway/Payment-Tokens
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/payment-gateway/rest-api/class-sv-wc-payment-gateway-plugin-rest-api.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/rest-api/class-sv-wc-plugin-rest-api.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2013-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Plugin/Classes
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
lib/skyverge/woocommerce/utilities/class-sv-wp-async-request.php
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
* @package SkyVerge/WooCommerce/Utilities
|
20 |
* @author SkyVerge / Delicious Brains
|
21 |
* @copyright Copyright (c) 2015-2016 Delicious Brains Inc.
|
22 |
-
* @copyright Copyright (c) 2013-
|
23 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
24 |
*/
|
25 |
|
19 |
* @package SkyVerge/WooCommerce/Utilities
|
20 |
* @author SkyVerge / Delicious Brains
|
21 |
* @copyright Copyright (c) 2015-2016 Delicious Brains Inc.
|
22 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
23 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
24 |
*/
|
25 |
|
lib/skyverge/woocommerce/utilities/class-sv-wp-background-job-handler.php
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
* @package SkyVerge/WooCommerce/Utilities
|
20 |
* @author SkyVerge / Delicious Brains
|
21 |
* @copyright Copyright (c) 2015-2016 Delicious Brains Inc.
|
22 |
-
* @copyright Copyright (c) 2013-
|
23 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
24 |
*/
|
25 |
|
19 |
* @package SkyVerge/WooCommerce/Utilities
|
20 |
* @author SkyVerge / Delicious Brains
|
21 |
* @copyright Copyright (c) 2015-2016 Delicious Brains Inc.
|
22 |
+
* @copyright Copyright (c) 2013-2019, SkyVerge, Inc.
|
23 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
24 |
*/
|
25 |
|
lib/skyverge/woocommerce/utilities/class-sv-wp-job-batch-handler.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Utilities
|
20 |
* @author SkyVerge
|
21 |
-
* @copyright Copyright (c) 2017-
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
18 |
*
|
19 |
* @package SkyVerge/WooCommerce/Utilities
|
20 |
* @author SkyVerge
|
21 |
+
* @copyright Copyright (c) 2017-2019, SkyVerge, Inc.
|
22 |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
|
23 |
*/
|
24 |
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: automattic, akeda, allendav, royho, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, dsmithweb, fullysupportedphil, corsonr, zandyring, skyverge
|
3 |
Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal, braintree
|
4 |
Requires at least: 4.4
|
5 |
-
Tested up to:
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -124,6 +124,13 @@ New feature requests and bugs reports can be made in the plugin forum.
|
|
124 |
|
125 |
== Changelog ==
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
= 2018.11.12 - version 2.2.0 =
|
128 |
* Feature - Add Apple Pay support for iOS users to quickly place orders from the product, cart, and checkout pages
|
129 |
* Feature - Allow the PayPal button to be customized from the plugin settings
|
2 |
Contributors: automattic, akeda, allendav, royho, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, dsmithweb, fullysupportedphil, corsonr, zandyring, skyverge
|
3 |
Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal, braintree
|
4 |
Requires at least: 4.4
|
5 |
+
Tested up to: 5.0.3
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 2.2.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
+
= 2019.02.06 - version 2.2.1 =
|
128 |
+
* Fix - Ensure updated order totals are used for validating 3D Secure when the checkout is refreshed
|
129 |
+
* Fix - Prevent 3D Secure errors when non-US region codes are used during validation
|
130 |
+
* Fix - Ensure payment forms are available for orders that start at $0 but require payment after shipping selection
|
131 |
+
* Fix - Update the recurring flag for new API requirements when processing subscription payments
|
132 |
+
* Misc - Reorder manual connection setting inputs to match documentation
|
133 |
+
|
134 |
= 2018.11.12 - version 2.2.0 =
|
135 |
* Feature - Add Apple Pay support for iOS users to quickly place orders from the product, cart, and checkout pages
|
136 |
* Feature - Allow the PayPal button to be customized from the plugin settings
|
woocommerce-gateway-paypal-powered-by-braintree.php
CHANGED
@@ -5,14 +5,14 @@
|
|
5 |
* Description: Receive credit card or PayPal payments using Paypal Powered by Braintree. A server with cURL, SSL support, and a valid SSL certificate is required (for security reasons) for this gateway to function. Requires PHP 5.4+
|
6 |
* Author: WooCommerce
|
7 |
* Author URI: http://woocommerce.com/
|
8 |
-
* Version: 2.2.
|
9 |
* Text Domain: woocommerce-gateway-paypal-powered-by-braintree
|
10 |
* Domain Path: /i18n/languages/
|
11 |
*
|
12 |
* WC requires at least: 2.6.14
|
13 |
-
* WC tested up to: 3.5.
|
14 |
*
|
15 |
-
* Copyright (c) 2016-
|
16 |
*
|
17 |
* This program is free software: you can redistribute it and/or modify
|
18 |
* it under the terms of the GNU General Public License as published by
|
5 |
* Description: Receive credit card or PayPal payments using Paypal Powered by Braintree. A server with cURL, SSL support, and a valid SSL certificate is required (for security reasons) for this gateway to function. Requires PHP 5.4+
|
6 |
* Author: WooCommerce
|
7 |
* Author URI: http://woocommerce.com/
|
8 |
+
* Version: 2.2.1
|
9 |
* Text Domain: woocommerce-gateway-paypal-powered-by-braintree
|
10 |
* Domain Path: /i18n/languages/
|
11 |
*
|
12 |
* WC requires at least: 2.6.14
|
13 |
+
* WC tested up to: 3.5.4
|
14 |
*
|
15 |
+
* Copyright (c) 2016-2019, Automattic, Inc.
|
16 |
*
|
17 |
* This program is free software: you can redistribute it and/or modify
|
18 |
* it under the terms of the GNU General Public License as published by
|