Give – Donation Plugin and Fundraising Platform - Version 2.6.2

Version Description

Download this release

Release Info

Developer dlocc
Plugin Icon 128x128 Give – Donation Plugin and Fundraising Platform
Version 2.6.2
Comparing to
See all releases

Code changes from version 2.6.1 to 2.6.2

assets/dist/js/give-stripe-sepa.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function i(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(r,a,function(t){return e[t]}.bind(null,a));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=468)}({468:function(e,t,i){e.exports=i(469)},469:function(e,t){var i=Stripe(give_stripe_vars.publishable_key);give_stripe_vars.stripe_account_id&&(i=Stripe(give_stripe_vars.publishable_key,{stripeAccount:give_stripe_vars.stripe_account_id})),document.addEventListener("DOMContentLoaded",(function(e){for(var t=[],r="",a=[],n=[],l=[],o=give_stripe_vars.preferred_locale,s=document.querySelectorAll(".give-form-wrap"),d=Object.entries(give_stripe_vars.element_font_styles),u=0;u<d.length;u++){var c=d[u];l[c[0]]=c[1]}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Object.keys(t).length;i>0&&t[0].item,Array.prototype.forEach.call(t,(function(t,i){!1===t.isCardMounted&&(t.item.mount(t.selector+e),t.isCardMounted=!0)}))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.prototype.forEach.call(e,(function(e,t){!0===e.isCardMounted&&(e.item.unmount(),e.isCardMounted=!1)}))}Array.prototype.forEach.call(s,(function(e){var s=e.querySelector(".give-form"),d=i.elements({locale:o});l.length>0&&(d=i.elements({fonts:l,locale:o})),null!==s.querySelector(".give-gateway:checked").value&&(r=s.querySelector(".give-gateway:checked").value);var u=s.getAttribute("data-id"),c=s.querySelector(".give-submit");t=function(e,t,i){var a=[],n=give_stripe_vars.element_base_styles,l=give_stripe_vars.element_complete_styles,o=give_stripe_vars.element_empty_styles,s=give_stripe_vars.element_invalid_styles,d=e.querySelector("#give-stripe-sepa-fields-"+i),u={style:{base:n,complete:l,empty:o,invalid:s},classes:{focus:"focus",empty:"empty",invalid:"invalid"},supportedCountries:["SEPA"]};if("stripe_sepa"===r){var c=d.getAttribute("data-hide_icon"),v=d.getAttribute("data-icon_style"),p=d.getAttribute("data-placeholder_country");u.iconStyle=v,u.hideIcon="disabled"!==c,u.placeholderCountry=p}var f=t.create("iban",u);return a.push(f),a}(s,d,u),n=["#give-stripe-sepa-fields-"],a[u]=[],Array.prototype.forEach.call(n,(function(e,i){a[u][i]=[],a[u][i].item=t[i],a[u][i].selector=e,a[u][i].isCardMounted=!1})),jQuery(document).on("give_gateway_loaded",(function(e,t,i){p(a[u]),"stripe_sepa"===s.querySelector(".give-gateway-option-selected .give-gateway").value&&v(u,a[u])})),"stripe_sepa"===r?(c.setAttribute("disabled","disabled"),v(u,a[u]),c.removeAttribute("disabled")):p(t)})),jQuery("body").on("submit",".give-form",(function(e){var t=jQuery(this),r=t.find('input[name="give-form-id-prefix"]').val();"stripe_sepa"===t.find("input.give-gateway:checked").val()&&(!function(e,t){var r={billing_details:{name:"",email:""}},a=e.find('input[name="give-form-id"]').val(),n=e.find('input[name="give_first"]').val(),l=e.find('input[name="give_last"]').val(),o=e.find('input[name="give_email"]').val(),s=e.find("[id^=give-purchase-button]");if(e.find("[id^=give-purchase-button]").attr("disabled","disabled"),r.billing_details.name=n+" "+l,r.billing_details.email=o,give_stripe_vars.checkout_address&&!give_stripe_vars.stripe_card_update){var d=e.find(".card-address").val(),u=e.find(".card-address-2").val(),c=e.find(".card-city").val(),v=e.find(".card_state").val(),p=e.find(".card-zip").val(),f=e.find(".billing-country").val();r.billing_details.address={line1:d||"",line2:u||"",city:c||"",state:v||"",postal_code:p||"",country:f||""}}i.createPaymentMethod("sepa_debit",t,r).then((function(t){if(t.error){var i='<div class="give_errors"><p class="give_error">'+t.error.message+"</p></div>";s.attr("disabled",!1),jQuery(".give-loading-animation").fadeOut(),e.find("[id^=give-stripe-payment-errors-"+a+"]").html(i),give_global_vars.complete_purchase?s.val(give_global_vars.complete_purchase):s.val(s.data("before-validation-label"))}else!function(e,t){e.find('input[name="give_stripe_payment_method"]').val(t.id),e.get(0).submit()}(e,t.paymentMethod)}))}(t,a[r][0].item),e.preventDefault())}))}))}});
1
+ !function(e){var t={};function i(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(r,a,function(t){return e[t]}.bind(null,a));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=468)}({468:function(e,t,i){e.exports=i(469)},469:function(e,t){var i=Stripe(give_stripe_vars.publishable_key);give_stripe_vars.stripe_account_id&&(i=Stripe(give_stripe_vars.publishable_key,{stripeAccount:give_stripe_vars.stripe_account_id})),document.addEventListener("DOMContentLoaded",(function(e){for(var t=[],r="",a=[],n=[],l=[],o=give_stripe_vars.preferred_locale,s=document.querySelectorAll(".give-form-wrap"),d=Object.entries(give_stripe_vars.element_font_styles),u=0;u<d.length;u++){var c=d[u];l[c[0]]=c[1]}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Object.keys(t).length;i>0&&t[0].item,Array.prototype.forEach.call(t,(function(t,i){!1===t.isCardMounted&&(t.item.mount(t.selector+e),t.isCardMounted=!0)}))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.prototype.forEach.call(e,(function(e,t){!0===e.isCardMounted&&(e.item.unmount(),e.isCardMounted=!1)}))}Array.prototype.forEach.call(s,(function(e){var s=e.querySelector(".give-form"),d=i.elements({locale:o});l.length>0&&(d=i.elements({fonts:l,locale:o})),null!==s.querySelector(".give-gateway:checked")&&(r=s.querySelector(".give-gateway:checked").value);var u=s.getAttribute("data-id"),c=s.querySelector(".give-submit");t=function(e,t,i){var a=[],n=give_stripe_vars.element_base_styles,l=give_stripe_vars.element_complete_styles,o=give_stripe_vars.element_empty_styles,s=give_stripe_vars.element_invalid_styles,d=e.querySelector("#give-stripe-sepa-fields-"+i),u={style:{base:n,complete:l,empty:o,invalid:s},classes:{focus:"focus",empty:"empty",invalid:"invalid"},supportedCountries:["SEPA"]};if("stripe_sepa"===r){var c=d.getAttribute("data-hide_icon"),v=d.getAttribute("data-icon_style"),p=d.getAttribute("data-placeholder_country");u.iconStyle=v,u.hideIcon="disabled"!==c,u.placeholderCountry=p}var f=t.create("iban",u);return a.push(f),a}(s,d,u),n=["#give-stripe-sepa-fields-"],a[u]=[],Array.prototype.forEach.call(n,(function(e,i){a[u][i]=[],a[u][i].item=t[i],a[u][i].selector=e,a[u][i].isCardMounted=!1})),jQuery(document).on("give_gateway_loaded",(function(e,t,i){p(a[u]),"stripe_sepa"===s.querySelector(".give-gateway-option-selected .give-gateway").value&&v(u,a[u])})),"stripe_sepa"===r?(c.setAttribute("disabled","disabled"),v(u,a[u]),c.removeAttribute("disabled")):p(t)})),jQuery("body").on("submit",".give-form",(function(e){var t=jQuery(this),r=t.find('input[name="give-form-id-prefix"]').val();"stripe_sepa"===t.find("input.give-gateway:checked").val()&&(!function(e,t){var r={billing_details:{name:"",email:""}},a=e.find('input[name="give-form-id"]').val(),n=e.find('input[name="give_first"]').val(),l=e.find('input[name="give_last"]').val(),o=e.find('input[name="give_email"]').val(),s=e.find("[id^=give-purchase-button]");if(e.find("[id^=give-purchase-button]").attr("disabled","disabled"),r.billing_details.name=n+" "+l,r.billing_details.email=o,give_stripe_vars.checkout_address&&!give_stripe_vars.stripe_card_update){var d=e.find(".card-address").val(),u=e.find(".card-address-2").val(),c=e.find(".card-city").val(),v=e.find(".card_state").val(),p=e.find(".card-zip").val(),f=e.find(".billing-country").val();r.billing_details.address={line1:d||"",line2:u||"",city:c||"",state:v||"",postal_code:p||"",country:f||""}}i.createPaymentMethod("sepa_debit",t,r).then((function(t){if(t.error){var i='<div class="give_errors"><p class="give_error">'+t.error.message+"</p></div>";s.attr("disabled",!1),jQuery(".give-loading-animation").fadeOut(),e.find("[id^=give-stripe-payment-errors-"+a+"]").html(i),give_global_vars.complete_purchase?s.val(give_global_vars.complete_purchase):s.val(s.data("before-validation-label"))}else!function(e,t){e.find('input[name="give_stripe_payment_method"]').val(t.id),e.get(0).submit()}(e,t.paymentMethod)}))}(t,a[r][0].item),e.preventDefault())}))}))}});
assets/dist/js/give-stripe.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function r(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(i,a,function(t){return e[t]}.bind(null,a));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=464)}({464:function(e,t,r){e.exports=r(465)},465:function(e,t){var r=Stripe(give_stripe_vars.publishable_key);give_stripe_vars.stripe_account_id&&(r=Stripe(give_stripe_vars.publishable_key,{stripeAccount:give_stripe_vars.stripe_account_id})),document.addEventListener("DOMContentLoaded",(function(e){for(var t=[],i="",a=[],s=[],l=[],n=give_stripe_vars.preferred_locale,c=document.querySelectorAll(".give-form-wrap"),o=Object.entries(give_stripe_vars.element_font_styles),d=0;d<o.length;d++){var v=o[d];l[v[0]]=v[1]}function u(e,t){t.classList.contains("float-labels-enabled")&&Array.prototype.forEach.call(t.querySelectorAll(".give-stripe-cc-field-wrap"),(function(t,r){var i=t.querySelector("label"),s=t.querySelector("div"),l=t.querySelector(".give-stripe-cc-field"),n=i.parentElement;Array.prototype.includes("give-fl-label",i.classList)||(i.className=i.classList+" give-fl-label"),Array.prototype.includes("give-fl-label",i.classList)||(l.className=l.classList+" give-fl-input"),Array.prototype.includes("give-fl-wrap give-fl-wrap-input give-fl-is-required",s.classList)||(s.className=s.classList+" give-fl-wrap give-fl-wrap-input give-fl-is-required"),Array.prototype.forEach.call(a[e],(function(e){e.selector.indexOf(l.id)>0&&e.item.on("change",(function(e){!1!==e.empty&&!0!==e.complete||Array.prototype.includes("give-fl-is-active",n.classList)?!0===e.empty&&!1===e.complete&&(n.classList.remove("give-fl-is-active"),n.className=n.classList):n.className=n.classList+" give-fl-is-active"}))}))}))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.keys(t).length;r>0&&t[0].item,Array.prototype.forEach.call(t,(function(t,r){!1===t.isCardMounted&&(t.item.mount(t.selector+e),t.isCardMounted=!0)}))}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.prototype.forEach.call(e,(function(e,t){!0===e.isCardMounted&&(e.item.unmount(),e.isCardMounted=!1)}))}Array.prototype.forEach.call(c,(function(e){var c=e.querySelector(".give-form");if(null!==c){var o=r.elements({locale:n});l.length>0&&(o=r.elements({fonts:l,locale:n})),null!==c.querySelector(".give-gateway:checked").value&&(i=c.querySelector(".give-gateway:checked").value);var d=c.getAttribute("data-id"),v=c.querySelector(".give-submit");t=function(e,t,r){var i=[],a=give_stripe_vars.element_base_styles,s=give_stripe_vars.element_complete_styles,l=give_stripe_vars.element_empty_styles,n=give_stripe_vars.element_invalid_styles,c={base:a,complete:s,empty:l,invalid:n},o={focus:"focus",empty:"empty",invalid:"invalid"};if("multi"===give_stripe_vars.cc_fields_format){var d=t.create("cardNumber",{style:c,classes:o,placeholder:give_stripe_vars.card_number_placeholder_text});d.addEventListener("change",(function(t){var r="diners"===t.brand?"dinersclub":t.brand;e.querySelector(".card-type").className="card-type "+r}));var v=t.create("cardExpiry",{style:c,classes:o}),u=t.create("cardCvc",{style:c,classes:o,placeholder:give_stripe_vars.card_cvc_placeholder_text});i.push(d,u,v)}else if("single"===give_stripe_vars.cc_fields_format){var p=t.create("card",{style:c,classes:o,hidePostalCode:!!give_stripe_vars.checkout_address});i.push(p)}return i}(c,o),"single"===give_stripe_vars.cc_fields_format?s=["#give-stripe-single-cc-fields-"]:"multi"===give_stripe_vars.cc_fields_format&&(s=["#give-card-number-field-","#give-card-cvc-field-","#give-card-expiration-field-"]),a[d]=[],Array.prototype.forEach.call(s,(function(e,r){a[d][r]=[],a[d][r].item=t[r],a[d][r].selector=e,a[d][r].isCardMounted=!1})),jQuery(document).on("give_gateway_loaded",(function(e,t,r){f(a[d]),"stripe"===c.querySelector(".give-gateway-option-selected .give-gateway").value&&p(d,a[d]),u(d,c)})),"stripe"===i||give_stripe_vars.stripe_card_update?(v.setAttribute("disabled","disabled"),p(d,a[d]),v.removeAttribute("disabled")):f(t),u(d,c)}})),jQuery("body").on("submit",".give-form",(function(e){var t=jQuery(this),i=t.find('input[name="give-form-id-prefix"]').val();("stripe"===t.find("input.give-gateway:checked").val()||give_stripe_vars.stripe_card_update)&&(!function(e,t){var i={billing_details:{}},a=e.find('input[name="give-form-id"]').val(),s=e.find("[id^=give-purchase-button]"),l=e.find(".card-name").val();e.find("[id^=give-purchase-button]").attr("disabled","disabled"),"multi"===give_stripe_vars.cc_fields_format&&""!==l&&(i.billing_details.name=l);if(give_stripe_vars.checkout_address&&!give_stripe_vars.stripe_card_update){var n=e.find(".card-address").val(),c=e.find(".card-address-2").val(),o=e.find(".card-city").val(),d=e.find(".card_state").val(),v=e.find(".card-zip").val(),u=e.find(".billing-country").val();i.billing_details.address={line1:n||"",line2:c||"",city:o||"",state:d||"",postal_code:v||"",country:u||""}}r.createPaymentMethod("card",t,i).then((function(t){if(t.error){var r='<div class="give_errors"><p class="give_error">'+t.error.message+"</p></div>";s.attr("disabled",!1),jQuery(".give-loading-animation").fadeOut(),e.find("[id^=give-stripe-payment-errors-"+a+"]").html(r),give_global_vars.complete_purchase?s.val(give_global_vars.complete_purchase):s.val(s.data("before-validation-label"))}else!function(e,t){e.find('input[name="give_stripe_payment_method"]').val(t.id),e.get(0).submit()}(e,t.paymentMethod)}))}(t,a[i][0].item),e.preventDefault())}))}))}});
1
+ !function(e){var t={};function r(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(i,a,function(t){return e[t]}.bind(null,a));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=464)}({464:function(e,t,r){e.exports=r(465)},465:function(e,t){var r=Stripe(give_stripe_vars.publishable_key);give_stripe_vars.stripe_account_id&&(r=Stripe(give_stripe_vars.publishable_key,{stripeAccount:give_stripe_vars.stripe_account_id})),document.addEventListener("DOMContentLoaded",(function(e){for(var t=[],i="",a=[],s=[],l=[],n=give_stripe_vars.preferred_locale,c=document.querySelectorAll(".give-form-wrap"),o=Object.entries(give_stripe_vars.element_font_styles),d=0;d<o.length;d++){var v=o[d];l[v[0]]=v[1]}function u(e,t){t.classList.contains("float-labels-enabled")&&Array.prototype.forEach.call(t.querySelectorAll(".give-stripe-cc-field-wrap"),(function(t,r){var i=t.querySelector("label"),s=t.querySelector("div"),l=t.querySelector(".give-stripe-cc-field"),n=i.parentElement;Array.prototype.includes("give-fl-label",i.classList)||(i.className=i.classList+" give-fl-label"),Array.prototype.includes("give-fl-label",i.classList)||(l.className=l.classList+" give-fl-input"),Array.prototype.includes("give-fl-wrap give-fl-wrap-input give-fl-is-required",s.classList)||(s.className=s.classList+" give-fl-wrap give-fl-wrap-input give-fl-is-required"),Array.prototype.forEach.call(a[e],(function(e){e.selector.indexOf(l.id)>0&&e.item.on("change",(function(e){!1!==e.empty&&!0!==e.complete||Array.prototype.includes("give-fl-is-active",n.classList)?!0===e.empty&&!1===e.complete&&(n.classList.remove("give-fl-is-active"),n.className=n.classList):n.className=n.classList+" give-fl-is-active"}))}))}))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.keys(t).length;r>0&&t[0].item,Array.prototype.forEach.call(t,(function(t,r){!1===t.isCardMounted&&(t.item.mount(t.selector+e),t.isCardMounted=!0)}))}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.prototype.forEach.call(e,(function(e,t){!0===e.isCardMounted&&(e.item.unmount(),e.isCardMounted=!1)}))}Array.prototype.forEach.call(c,(function(e){var c=e.querySelector(".give-form");if(null!==c){var o=r.elements({locale:n});l.length>0&&(o=r.elements({fonts:l,locale:n})),null!==c.querySelector(".give-gateway:checked")&&(i=c.querySelector(".give-gateway:checked").value);var d=c.getAttribute("data-id"),v=c.querySelector(".give-submit");t=function(e,t,r){var i=[],a=give_stripe_vars.element_base_styles,s=give_stripe_vars.element_complete_styles,l=give_stripe_vars.element_empty_styles,n=give_stripe_vars.element_invalid_styles,c={base:a,complete:s,empty:l,invalid:n},o={focus:"focus",empty:"empty",invalid:"invalid"};if("multi"===give_stripe_vars.cc_fields_format){var d=t.create("cardNumber",{style:c,classes:o,placeholder:give_stripe_vars.card_number_placeholder_text});d.addEventListener("change",(function(t){var r="diners"===t.brand?"dinersclub":t.brand;e.querySelector(".card-type").className="card-type "+r}));var v=t.create("cardExpiry",{style:c,classes:o}),u=t.create("cardCvc",{style:c,classes:o,placeholder:give_stripe_vars.card_cvc_placeholder_text});i.push(d,u,v)}else if("single"===give_stripe_vars.cc_fields_format){var p=t.create("card",{style:c,classes:o,hidePostalCode:!!give_stripe_vars.checkout_address});i.push(p)}return i}(c,o),"single"===give_stripe_vars.cc_fields_format?s=["#give-stripe-single-cc-fields-"]:"multi"===give_stripe_vars.cc_fields_format&&(s=["#give-card-number-field-","#give-card-cvc-field-","#give-card-expiration-field-"]),a[d]=[],Array.prototype.forEach.call(s,(function(e,r){a[d][r]=[],a[d][r].item=t[r],a[d][r].selector=e,a[d][r].isCardMounted=!1})),jQuery(document).on("give_gateway_loaded",(function(e,t,r){f(a[d]),"stripe"===c.querySelector(".give-gateway-option-selected .give-gateway").value&&p(d,a[d]),u(d,c)})),"stripe"===i||give_stripe_vars.stripe_card_update?(v.setAttribute("disabled","disabled"),p(d,a[d]),v.removeAttribute("disabled")):f(t),u(d,c)}})),jQuery("body").on("submit",".give-form",(function(e){var t=jQuery(this),i=t.find('input[name="give-form-id-prefix"]').val();("stripe"===t.find("input.give-gateway:checked").val()||give_stripe_vars.stripe_card_update)&&(!function(e,t){var i={billing_details:{}},a=e.find('input[name="give-form-id"]').val(),s=e.find("[id^=give-purchase-button]"),l=e.find(".card-name").val();e.find("[id^=give-purchase-button]").attr("disabled","disabled"),"multi"===give_stripe_vars.cc_fields_format&&""!==l&&(i.billing_details.name=l);if(give_stripe_vars.checkout_address&&!give_stripe_vars.stripe_card_update){var n=e.find(".card-address").val(),c=e.find(".card-address-2").val(),o=e.find(".card-city").val(),d=e.find(".card_state").val(),v=e.find(".card-zip").val(),u=e.find(".billing-country").val();i.billing_details.address={line1:n||"",line2:c||"",city:o||"",state:d||"",postal_code:v||"",country:u||""}}r.createPaymentMethod("card",t,i).then((function(t){if(t.error){var r='<div class="give_errors"><p class="give_error">'+t.error.message+"</p></div>";s.attr("disabled",!1),jQuery(".give-loading-animation").fadeOut(),e.find("[id^=give-stripe-payment-errors-"+a+"]").html(r),give_global_vars.complete_purchase?s.val(give_global_vars.complete_purchase):s.val(s.data("before-validation-label"))}else!function(e,t){e.find('input[name="give_stripe_payment_method"]').val(t.id),e.get(0).submit()}(e,t.paymentMethod)}))}(t,a[i][0].item),e.preventDefault())}))}))}});
give.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
6
  * Author: GiveWP
7
  * Author URI: https://givewp.com/
8
- * Version: 2.6.1
9
  * Text Domain: give
10
  * Domain Path: /languages
11
  *
@@ -439,7 +439,7 @@ if ( ! class_exists( 'Give' ) ) :
439
 
440
  // Plugin version.
441
  if ( ! defined( 'GIVE_VERSION' ) ) {
442
- define( 'GIVE_VERSION', '2.6.1' );
443
  }
444
 
445
  // Plugin Root File.
5
  * Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
6
  * Author: GiveWP
7
  * Author URI: https://givewp.com/
8
+ * Version: 2.6.2
9
  * Text Domain: give
10
  * Domain Path: /languages
11
  *
439
 
440
  // Plugin version.
441
  if ( ! defined( 'GIVE_VERSION' ) ) {
442
+ define( 'GIVE_VERSION', '2.6.2' );
443
  }
444
 
445
  // Plugin Root File.
includes/gateways/stripe/includes/payment-methods/class-give-stripe-card.php CHANGED
@@ -276,7 +276,7 @@ if ( ! class_exists( 'Give_Stripe_Card' ) ) {
276
  // Process additional steps for SCA or 3D secure.
277
  give_stripe_process_additional_authentication( $donation_id, $intent );
278
 
279
- if ( ! empty( $intent ) && 'succeeded' === $intent ) {
280
  // Process to success page, only if intent is successful.
281
  give_send_to_success_page();
282
  } else {
276
  // Process additional steps for SCA or 3D secure.
277
  give_stripe_process_additional_authentication( $donation_id, $intent );
278
 
279
+ if ( ! empty( $intent->status ) && 'succeeded' === $intent->status ) {
280
  // Process to success page, only if intent is successful.
281
  give_send_to_success_page();
282
  } else {
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: donation, donations, donation plugin, wordpress donation plugin, givewp, g
5
  Requires at least: 4.8
6
  Tested up to: 5.4
7
  Requires PHP: 5.6
8
- Stable tag: 2.6.1
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -223,6 +223,10 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
223
 
224
  == Changelog ==
225
 
 
 
 
 
226
  = 2.6.1: March 30th, 2020 =
227
  * New: Stripe now has the SEPA Direct Debit gateway integrated. This is a popular payment option in Europe and can be used to accept one-time and recurring donations. [#4571](https://github.com/impress-org/givewp/issues/4571), [#4313](https://github.com/impress-org/givewp/issues/4313)
228
  * Fix: The new Reports screen was not properly caching results which would cause delays in pulling data on larger sites or small resource servers. [#4514](https://github.com/impress-org/givewp/issues/4514)
@@ -230,7 +234,7 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
230
  * Fix: Resolved an issue with the new Reports interface throwing a few PHP notices. [#4515](https://github.com/impress-org/givewp/issues/4515), [#4593](https://github.com/impress-org/givewp/issues/4593), [#4592](https://github.com/impress-org/givewp/issues/4592)
231
  * Fix: Adjusted our Gutenberg styles so that it doesn't conflict with WordPress'. [#4577](https://github.com/impress-org/givewp/issues/4577)
232
  * Fix: Resolved an error when using Stripe's Checkout feature with the Recurring Donations causing "The Stripe Gateway returned an error while creating the Checkout Session" error. [#4566](https://github.com/impress-org/givewp/issues/4566)
233
- * Fix: Resolved an issue with user roles that would display the "Donations" top level menu item in WP-Aamin incorrectly to subscribers. Note: none of the screens would be accessible. [#4524](https://github.com/impress-org/givewp/issues/4524)
234
  * Fix: Solved an issue where Stripe payments with the form grid not rendering correctly when opening and closing donation forms in the popup modal window. [#4467](https://github.com/impress-org/givewp/issues/4467)
235
  * Fix: The "Title" field would not correctly display as optional (the asterisk would not remove) when set as optional. [#4510](https://github.com/impress-org/givewp/issues/4510)
236
 
5
  Requires at least: 4.8
6
  Tested up to: 5.4
7
  Requires PHP: 5.6
8
+ Stable tag: 2.6.2
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
223
 
224
  == Changelog ==
225
 
226
+ = 2.6.2: April 1st, 2020 =
227
+ * Fix: Resolved an issue with Stripe in the latest release which prevented the donation form from properly redirecting to the donation receipt page upon successful donation. [#4605](https://github.com/impress-org/givewp/issues/4605)
228
+ * Fix: Modified how we compare values in Stripe's gateway JavaScript to prevent a Payment Intent error from happening for certain configurations. [#4604](https://github.com/impress-org/givewp/issues/4604)
229
+
230
  = 2.6.1: March 30th, 2020 =
231
  * New: Stripe now has the SEPA Direct Debit gateway integrated. This is a popular payment option in Europe and can be used to accept one-time and recurring donations. [#4571](https://github.com/impress-org/givewp/issues/4571), [#4313](https://github.com/impress-org/givewp/issues/4313)
232
  * Fix: The new Reports screen was not properly caching results which would cause delays in pulling data on larger sites or small resource servers. [#4514](https://github.com/impress-org/givewp/issues/4514)
234
  * Fix: Resolved an issue with the new Reports interface throwing a few PHP notices. [#4515](https://github.com/impress-org/givewp/issues/4515), [#4593](https://github.com/impress-org/givewp/issues/4593), [#4592](https://github.com/impress-org/givewp/issues/4592)
235
  * Fix: Adjusted our Gutenberg styles so that it doesn't conflict with WordPress'. [#4577](https://github.com/impress-org/givewp/issues/4577)
236
  * Fix: Resolved an error when using Stripe's Checkout feature with the Recurring Donations causing "The Stripe Gateway returned an error while creating the Checkout Session" error. [#4566](https://github.com/impress-org/givewp/issues/4566)
237
+ * Fix: Resolved an issue with user roles that would display the "Donations" top level menu item in WP-Admin incorrectly to subscribers. Note: none of the screens would be accessible. [#4524](https://github.com/impress-org/givewp/issues/4524)
238
  * Fix: Solved an issue where Stripe payments with the form grid not rendering correctly when opening and closing donation forms in the popup modal window. [#4467](https://github.com/impress-org/givewp/issues/4467)
239
  * Fix: The "Title" field would not correctly display as optional (the asterisk would not remove) when set as optional. [#4510](https://github.com/impress-org/givewp/issues/4510)
240
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit5248885a3ebd9f18406c80f07b5b7e19::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit41d7e6a6c4c768e428f3c0486e28ac5e::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit5248885a3ebd9f18406c80f07b5b7e19
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit5248885a3ebd9f18406c80f07b5b7e19
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit5248885a3ebd9f18406c80f07b5b7e19', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit5248885a3ebd9f18406c80f07b5b7e19', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit5248885a3ebd9f18406c80f07b5b7e19::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit41d7e6a6c4c768e428f3c0486e28ac5e
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit41d7e6a6c4c768e428f3c0486e28ac5e', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit41d7e6a6c4c768e428f3c0486e28ac5e', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit41d7e6a6c4c768e428f3c0486e28ac5e::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit5248885a3ebd9f18406c80f07b5b7e19
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'S' =>
@@ -56,9 +56,9 @@ class ComposerStaticInit5248885a3ebd9f18406c80f07b5b7e19
56
  public static function getInitializer(ClassLoader $loader)
57
  {
58
  return \Closure::bind(function () use ($loader) {
59
- $loader->prefixLengthsPsr4 = ComposerStaticInit5248885a3ebd9f18406c80f07b5b7e19::$prefixLengthsPsr4;
60
- $loader->prefixDirsPsr4 = ComposerStaticInit5248885a3ebd9f18406c80f07b5b7e19::$prefixDirsPsr4;
61
- $loader->classMap = ComposerStaticInit5248885a3ebd9f18406c80f07b5b7e19::$classMap;
62
 
63
  }, null, ClassLoader::class);
64
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit41d7e6a6c4c768e428f3c0486e28ac5e
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'S' =>
56
  public static function getInitializer(ClassLoader $loader)
57
  {
58
  return \Closure::bind(function () use ($loader) {
59
+ $loader->prefixLengthsPsr4 = ComposerStaticInit41d7e6a6c4c768e428f3c0486e28ac5e::$prefixLengthsPsr4;
60
+ $loader->prefixDirsPsr4 = ComposerStaticInit41d7e6a6c4c768e428f3c0486e28ac5e::$prefixDirsPsr4;
61
+ $loader->classMap = ComposerStaticInit41d7e6a6c4c768e428f3c0486e28ac5e::$classMap;
62
 
63
  }, null, ClassLoader::class);
64
  }