Changeset 3463519
- Timestamp:
- 02/17/2026 12:59:41 PM (6 weeks ago)
- Location:
- myfatoorah-woocommerce
- Files:
-
- 52 added
- 8 edited
-
tags/2.2.10 (added)
-
tags/2.2.10/build (added)
-
tags/2.2.10/build/index.asset.php (added)
-
tags/2.2.10/build/index.js (added)
-
tags/2.2.10/changelog.txt (added)
-
tags/2.2.10/includes (added)
-
tags/2.2.10/includes/PluginPaymentMyfatoorahWoocommerce.php (added)
-
tags/2.2.10/includes/PluginShippingMyfatoorahWoocommerce.php (added)
-
tags/2.2.10/includes/PluginWebhookMyfatoorahWoocommerce.php (added)
-
tags/2.2.10/includes/admin (added)
-
tags/2.2.10/includes/admin/embedded.php (added)
-
tags/2.2.10/includes/admin/shipping.php (added)
-
tags/2.2.10/includes/admin/v2.php (added)
-
tags/2.2.10/includes/libraries (added)
-
tags/2.2.10/includes/libraries/MyfatoorahLibrary.php (added)
-
tags/2.2.10/includes/libraries/MyfatoorahLoader.php (added)
-
tags/2.2.10/includes/libraries/mf-config.json (added)
-
tags/2.2.10/includes/payments (added)
-
tags/2.2.10/includes/payments/blocks (added)
-
tags/2.2.10/includes/payments/blocks/MyFatoorahV2.php (added)
-
tags/2.2.10/includes/payments/class-wc-gateway-myfatoorah-embedded.php (added)
-
tags/2.2.10/includes/payments/class-wc-gateway-myfatoorah-v2.php (added)
-
tags/2.2.10/includes/payments/class-wc-gateway-myfatoorah.php (added)
-
tags/2.2.10/includes/shipping (added)
-
tags/2.2.10/includes/shipping/class-wc-shipping-myfatoorah.php (added)
-
tags/2.2.10/includes/templates (added)
-
tags/2.2.10/includes/templates/error.php (added)
-
tags/2.2.10/includes/templates/loader.php (added)
-
tags/2.2.10/includes/templates/paymentFields.php (added)
-
tags/2.2.10/includes/templates/paymentFieldsEmbedded.php (added)
-
tags/2.2.10/includes/templates/paymentFieldsV2.php (added)
-
tags/2.2.10/includes/templates/pre_payment_fields.php (added)
-
tags/2.2.10/includes/templates/sectionApple.php (added)
-
tags/2.2.10/includes/templates/sectionCards.php (added)
-
tags/2.2.10/includes/templates/sectionForm.php (added)
-
tags/2.2.10/includes/templates/sectionGoogle.php (added)
-
tags/2.2.10/languages (added)
-
tags/2.2.10/languages/myfatoorah-woocommerce-ar-dfbff627e6c248bcb3b61d7d06da9ca9.json (added)
-
tags/2.2.10/languages/myfatoorah-woocommerce-ar.mo (added)
-
tags/2.2.10/languages/myfatoorah-woocommerce-ar.po (added)
-
tags/2.2.10/languages/myfatoorah-woocommerce.pot (added)
-
tags/2.2.10/myfatoorah-woocommerce.php (added)
-
tags/2.2.10/public (added)
-
tags/2.2.10/public/css (added)
-
tags/2.2.10/public/css/admin.css (added)
-
tags/2.2.10/public/css/myfatoorah.css (added)
-
tags/2.2.10/public/images (added)
-
tags/2.2.10/public/images/myfatoorah.png (added)
-
tags/2.2.10/public/js (added)
-
tags/2.2.10/public/js/admin.js (added)
-
tags/2.2.10/public/js/cities.js (added)
-
tags/2.2.10/readme.txt (added)
-
trunk/build/index.asset.php (modified) (1 diff)
-
trunk/build/index.js (modified) (1 diff)
-
trunk/languages/myfatoorah-woocommerce-ar-dfbff627e6c248bcb3b61d7d06da9ca9.json (modified) (1 diff)
-
trunk/languages/myfatoorah-woocommerce-ar.mo (modified) (previous)
-
trunk/languages/myfatoorah-woocommerce-ar.po (modified) (4 diffs)
-
trunk/languages/myfatoorah-woocommerce.pot (modified) (4 diffs)
-
trunk/myfatoorah-woocommerce.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
myfatoorah-woocommerce/trunk/build/index.asset.php
r3458908 r3463519 1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-data', 'wp-i18n'), 'version' => ' 561ab7966bf43ca8d740');1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-data', 'wp-i18n'), 'version' => 'd6a607880d140b6f0848'); -
myfatoorah-woocommerce/trunk/build/index.js
r3458908 r3463519 1 (()=>{"use strict";var e={n:t=>{var a=t&&t.__esModule?()=>t.default:()=>t;return e.d(a,{a}),a},d:(t,a)=>{for(var o in a)e.o(a,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React;var a=e.n(t);const o=window.wp.i18n;class n extends a().Component{componentDidMount(){var e=this.props.data.session,t=this.props.data.gateways.ap.GatewayData,a=t.GatewayTotalAmount.replace(",",""),o={countryCode:e.CountryCode,sessionId:e.SessionId,amount:a,currencyCode:t.GatewayCurrency,cardViewId:"mf-ap-element",callback:this.mfPaymentCallback.bind(this),style:{frameHeight:51,button:{height:"35px",text:"Pay with",borderRadius:"8px"}}};myFatoorahAP.init(o)}mfPaymentCallback(e){this.props.handel(e.sessionId), jQuery(".wc-block-components-checkout-place-order-button").click()}render(){return(0,t.createElement)("div",{id:"mf-ap-element",style:{height:"40px",marginTop:"5px"}})}}const r=n;class s extends a().Component{componentDidMount(){var e=this.props.data.session,t=this.props.data.gateways.gp.GatewayData,a={countryCode:e.CountryCode,sessionId:e.SessionId,amount:t.GatewayTotalAmount,currencyCode:t.GatewayCurrency,cardViewId:"mf-gp-element",callback:this.mfPaymentCallback.bind(this),style:{frameHeight:51,button:{height:"35px",text:"Pay with",color:"black",language:"en",borderRadius:"8px"}}};myFatoorahGP.init(a)}mfPaymentCallback(e){this.props.handel(e.sessionId),jQuery(".wc-block-components-checkout-place-order-button").click()}render(){return(0,t.createElement)("div",{id:"mf-gp-element",style:{height:"40px",marginTop:"5px"}})}}const c=s,i=function({data:e,handel:a}){const n={fontFamily:e.design.designFont,fontSize:e.design.designFontSize+"px",color:e.design.themeColor},r={fontFamily:e.design.designFont,fontSize:e.design.designFontSize+"px",color:e.design.themeColor,textAlign:"end"},s=t=>"ar"===e.mfLang?t.PaymentMethodAr:t.PaymentMethodEn,c="ar"===e.mfLang?"ar":"en";function i({mfCard:e}){return(0,t.createElement)("div",{className:"mf-card-container",title:s(e),"data-mfcardcode":e.PaymentMethodCode,"data-mfcardid":e.PaymentMethodId,onClick:()=>{return t=e.PaymentMethodId,a(t),void jQuery(".wc-block-components-checkout-place-order-button").click();var t}},(0,t.createElement)("div",{className:"mf-row-container"},(0,t.createElement)("img",{className:"mf-payment-logo",src:e.ImageUrl,alt:s(e)}),(0,t.createElement)("span",{className:"mf-card-title",style:n},s(e))),(0,t.createElement)("span",{className:"mf-price-tag",style:r},e.GatewayData.GatewayTotalAmount," ",e.GatewayData.GatewayTransCurrency[c]))}const m=null!==e.gateways.ap&&0!==e.gateways.ap.length,d=null!==e.gateways.gp&&0!==e.gateways.gp.length,l=e.gateways.cards.map((e=>(0,t.createElement)(i,{mfCard:e,key:e.PaymentMethodId})));return(0,t.createElement)("div",{id:"mf-sectionCard"},(0,t.createElement)("div",{className:"mf-divider card-divider"},(0,t.createElement)("span",{className:"mf-divider-span"},(0,t.createElement)("span",{id:"mf-or-cardsDivider"},m||d?(0,o.__)("Or ","myfatoorah-woocommerce"):""),(0,o.__)("Pay With","myfatoorah-woocommerce"))),(0,t.createElement)("div",null,l))};class m extends a().Component{componentDidMount(){this.handleFormSubmit.bind(this);var e=this.props.data,t=e.session,a=e.design,n=e.mfLang,r={countryCode:t.CountryCode,sessionId:t.SessionId,cardViewId:"mf-form-element",style:{hideCardIcons:a.hideCardIcons,cardHeight:e.isSaveCard?160:130,direction:"ar"===n?"rtl":"ltr",input:{color:a.designColor,fontSize:a.designFontSize+"px",fontFamily:a.designFont,inputHeight:"32px",inputMargin:"-1px",borderColor:a.designColor,borderWidth:"1px",borderRadius:"0px",boxShadow:"",placeHolder:{holderName:(0,o.__)("Name On Card","myfatoorah-woocommerce"),cardNumber:(0,o.__)("Number","myfatoorah-woocommerce"),expiryDate:(0,o.__)("MM / YY","myfatoorah-woocommerce"),securityCode:(0,o.__)("CVV","myfatoorah-woocommerce")}},error:{borderColor:"red",borderRadius:"8px",boxShadow:"0px"},text:{saveCard:(0,o.__)("Save card number for future payments","myfatoorah-woocommerce"),addCard:(0,o.__)("Use another card","myfatoorah-woocommerce"),deleteAlert:{tilte:(0,o.__)("Delete Card","myfatoorah-woocommerce"),message:(0,o.__)("Are you sure you want to remove this card?","myfatoorah-woocommerce"),confirm:(0,o.__)("Yes","myfatoorah-woocommerce"),cancel:(0,o.__)("No","myfatoorah-woocommerce")}}}};myFatoorah.init(r)}handleFormSubmit(e){e.preventDefault(),this.props.handel(""),this.props.error("");var t=this;myFatoorah.submit(t.props.data.currency).then((function(e){t.props.handel(e.sessionId),jQuery(".wc-block-components-checkout-place-order-button").click()}),(function(e){t.props.error(e),jQuery([document.documentElement,document.body]).animate({scrollTop:jQuery("#payment-method").first().offset().top},2e3),jQuery(".wc-block-components-checkout-place-order-button").click()}))}render(){var e=this.props.data.gateways;const a=null!==e.ap,n=null!==e.gp,r=e.cards.length>0;var s=this.props.data.design;return(0,t.createElement)("div",{id:"mf-sectionForm"},(0,t.createElement)("div",{class:"mf-divider"},(0,t.createElement)("span",{class:"mf-divider-span"},(0,t.createElement)("span",{id:"mf-or-formDivider"},a||n||r?(0,o.__)("Or ","myfatoorah-woocommerce"):""),(0,o.__)("Insert Card Details","myfatoorah-woocommerce"))),(0,t.createElement)("div",{id:"mf-form-element"}),(0,t.createElement)("button",{class:"mf-pay-now-btn",onClick:e=>this.handleFormSubmit(e),style:{backgroundColor:s.themeColor}},(0,t.createElement)("span",{class:"mf-pay-now-span",style:{fontFamily:s.designFont,fontSize:s.designFontSize+"px"}},(0,o.__)("Pay Now","myfatoorah-woocommerce"))))}}const d=m,l=function(){jQuery(document).ready((function(e){e(".wc-block-components-checkout-place-order-button").hide(),e("input[name=radio-control-wc-payment-method-options]").on("change",(function(){"myfatoorah_v2"===this.value?e(".wc-block-components-checkout-place-order-button").hide():e(".wc-block-components-checkout-place-order-button").show()}))}))},p=window.wp.data,y=window.wp.apiFetch;var u=e.n(y);const h=window.wc.wcSettings.getPaymentMethodData("myfatoorah_v2");let f=0;const w=window.wc.wcSettings.getPaymentMethodData("myfatoorah_v2"),g=()=>window.wp.htmlEntities.decodeEntities(w.description),b=w.error?(0,t.createElement)((()=>{const e=window.wp.htmlEntities.decodeEntities(w.error);return(0,t.createElement)("font",{color:"red"},e)}),null):w.gateways?(0,t.createElement)((e=>{const{Inner:a,...o}=e,[,n]=(0,t.useState)(0),[r,s]=(0,t.useState)(!1),c=(0,p.useSelect)((e=>{const t=e("wc/store/cart");return t?t.getCartTotals():null}),[]),i=c?.total_price;return(0,t.useEffect)((()=>{if(!i)return;const e=++f;let t=!0;return s(!0),(async()=>{try{const a=await u()({path:"/myfatoorah/v2/refresh",method:"POST"});if(!t||e!==f)return;a?.gateways&&(h.gateways=a.gateways),n((e=>e+1))}catch(e){}finally{if(!t||e!==f)return;s(!1)}})(),()=>{t=!1}}),[i]),r?(0,t.createElement)("div",{style:{padding:"20px",textAlign:"center",opacity:.7}},"Loading payment methods..."):(0,t.createElement)(a,{...o,data:h})}),{Inner:e=>{const[a,n]=(0,t.useState)(""),[s,m]=(0,t.useState)(""),[p,y]=(0,t.useState)(""),u=(0,t.useRef)(""),f=(0,t.useRef)(""),w=(0,t.useRef)(""),g=e=>{f.current=e,m(e)},{eventRegistration:b,emitResponse:E}=e,{onPaymentSetup:C}=b;(0,t.useEffect)((()=>{const e=C((async()=>w.current?{type:E.responseTypes.ERROR,message:w.current}:{type:E.responseTypes.SUCCESS,meta:{paymentMethodData:{mfCardData:String(u.current),mfData:f.current}}}));return()=>e()}),[a,s,p,E.responseTypes.ERROR,E.responseTypes.SUCCESS,C]);const v=null!==h.gateways.ap&&0!==h.gateways.ap.length,_=null!==h.gateways.gp&&0!==h.gateways.gp.length,S=h.gateways.cards.length>0,k=h.gateways.form.length>0,x=parseInt(h.design.designFontSize)+2,F={fontFamily:h.design.designFont,fontSize:x+"px",color:h.design.designColor},P={fontFamily:h.design.designFont,fontSize:x+"px"};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{id:"paymentGateways",className:"mf-payment-methods-container",style:F},(0,t.createElement)("div",{className:"mf-grey-text",style:P},(0,o.__)("How would you like to pay?","myfatoorah-woocommerce")),v?(0,t.createElement)(r,{data:h,handel:g}):"",_?(0,t.createElement)(c,{data:h,handel:g}):"",S?(0,t.createElement)(i,{data:h,handel:e=>{u.current=e,n(e)}}):"",k?(0,t.createElement)(d,{data:h,handel:g,error:e=>{w.current=e,y(e)}}):""),(0,t.createElement)(l,null))}}):(0,t.createElement)(g,null),E={name:"myfatoorah_v2",label:(0,t.createElement)((()=>{const e=window.wp.htmlEntities.decodeEntities(w.title);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("input",{type:"hidden",disabled:!0,"data-mfVersion":w.mfVersion}),(0,t.createElement)("img",{src:w.icon})," ",e)}),null),content:b,edit:(0,t.createElement)(g,null),canMakePayment:()=>!0,ariaLabel:w.title,supports:{features:w.supports}};window.wc.wcBlocksRegistry.registerPaymentMethod(E)})();1 (()=>{"use strict";var e={n:t=>{var a=t&&t.__esModule?()=>t.default:()=>t;return e.d(a,{a}),a},d:(t,a)=>{for(var o in a)e.o(a,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React;var a=e.n(t);const o=window.wp.i18n;class n extends a().Component{componentDidMount(){var e=this.props.data.session,t=this.props.data.gateways.ap.GatewayData,a=t.GatewayTotalAmount.replace(",",""),o={countryCode:e.CountryCode,sessionId:e.SessionId,amount:a,currencyCode:t.GatewayCurrency,cardViewId:"mf-ap-element",callback:this.mfPaymentCallback.bind(this),style:{frameHeight:51,button:{height:"35px",text:"Pay with",borderRadius:"8px"}}};myFatoorahAP.init(o)}mfPaymentCallback(e){this.props.handel(e.sessionId),this.props.error(""),jQuery(".wc-block-components-checkout-place-order-button").click()}render(){return(0,t.createElement)("div",{id:"mf-ap-element",style:{height:"40px",marginTop:"5px"}})}}const r=n;class s extends a().Component{componentDidMount(){var e=this.props.data.session,t=this.props.data.gateways.gp.GatewayData,a={countryCode:e.CountryCode,sessionId:e.SessionId,amount:t.GatewayTotalAmount,currencyCode:t.GatewayCurrency,cardViewId:"mf-gp-element",callback:this.mfPaymentCallback.bind(this),style:{frameHeight:51,button:{height:"35px",text:"Pay with",color:"black",language:"en",borderRadius:"8px"}}};myFatoorahGP.init(a)}mfPaymentCallback(e){this.props.handel(e.sessionId),this.props.error(""),jQuery(".wc-block-components-checkout-place-order-button").click()}render(){return(0,t.createElement)("div",{id:"mf-gp-element",style:{height:"40px",marginTop:"5px"}})}}const c=s;class i extends a().Component{render(){var e=this.props.data;const a={fontFamily:e.design.designFont,fontSize:e.design.designFontSize+"px",color:e.design.themeColor},n={fontFamily:e.design.designFont,fontSize:e.design.designFontSize+"px",color:e.design.themeColor,textAlign:"end"},r=e=>{this.props.handel(e),this.props.error(""),jQuery(".wc-block-components-checkout-place-order-button").click()},s=t=>"ar"===e.mfLang?t.PaymentMethodAr:t.PaymentMethodEn,c="ar"===e.mfLang?"ar":"en";function i({mfCard:e}){return(0,t.createElement)("div",{className:"mf-card-container",title:s(e),"data-mfcardcode":e.PaymentMethodCode,"data-mfcardid":e.PaymentMethodId,onClick:()=>r(e.PaymentMethodId)},(0,t.createElement)("div",{className:"mf-row-container"},(0,t.createElement)("img",{className:"mf-payment-logo",src:e.ImageUrl,alt:s(e)}),(0,t.createElement)("span",{className:"mf-card-title",style:a},s(e))),(0,t.createElement)("span",{className:"mf-price-tag",style:n},e.GatewayData.GatewayTotalAmount," ",e.GatewayData.GatewayTransCurrency[c]))}const m=null!==e.gateways.ap&&0!==e.gateways.ap.length,d=null!==e.gateways.gp&&0!==e.gateways.gp.length,l=e.gateways.cards.map((e=>(0,t.createElement)(i,{mfCard:e,key:e.PaymentMethodId})));return(0,t.createElement)("div",{id:"mf-sectionCard"},(0,t.createElement)("div",{className:"mf-divider card-divider"},(0,t.createElement)("span",{className:"mf-divider-span"},(0,t.createElement)("span",{id:"mf-or-cardsDivider"},m||d?(0,o.__)("Or ","myfatoorah-woocommerce"):""),(0,o.__)("Pay With","myfatoorah-woocommerce"))),(0,t.createElement)("div",null,l))}}const m=i;class d extends a().Component{componentDidMount(){this.handleFormSubmit.bind(this);var e=this.props.data,t=e.session,a=e.design,n=e.mfLang,r={countryCode:t.CountryCode,sessionId:t.SessionId,cardViewId:"mf-form-element",style:{hideCardIcons:a.hideCardIcons,cardHeight:e.isSaveCard?160:130,direction:"ar"===n?"rtl":"ltr",input:{color:a.designColor,fontSize:a.designFontSize+"px",fontFamily:a.designFont,inputHeight:"32px",inputMargin:"-1px",borderColor:a.designColor,borderWidth:"1px",borderRadius:"0px",boxShadow:"",placeHolder:{holderName:(0,o.__)("Name On Card","myfatoorah-woocommerce"),cardNumber:(0,o.__)("Number","myfatoorah-woocommerce"),expiryDate:(0,o.__)("MM / YY","myfatoorah-woocommerce"),securityCode:(0,o.__)("CVV","myfatoorah-woocommerce")}},error:{borderColor:"red",borderRadius:"8px",boxShadow:"0px"},text:{saveCard:(0,o.__)("Save card number for future payments","myfatoorah-woocommerce"),addCard:(0,o.__)("Use another card","myfatoorah-woocommerce"),deleteAlert:{tilte:(0,o.__)("Delete Card","myfatoorah-woocommerce"),message:(0,o.__)("Are you sure you want to remove this card?","myfatoorah-woocommerce"),confirm:(0,o.__)("Yes","myfatoorah-woocommerce"),cancel:(0,o.__)("No","myfatoorah-woocommerce")}}}};myFatoorah.init(r)}handleFormSubmit(e){e.preventDefault(),this.props.handel(""),this.props.error("");var t=this;myFatoorah.submit(t.props.data.currency).then((function(e){t.props.handel(e.sessionId),jQuery(".wc-block-components-checkout-place-order-button").click()}),(function(e){t.props.error(e),jQuery([document.documentElement,document.body]).animate({scrollTop:jQuery("#payment-method").first().offset().top},2e3),jQuery(".wc-block-components-checkout-place-order-button").click()}))}render(){var e=this.props.data.gateways;const a=null!==e.ap,n=null!==e.gp,r=e.cards.length>0;var s=this.props.data.design;return(0,t.createElement)("div",{id:"mf-sectionForm"},(0,t.createElement)("div",{class:"mf-divider"},(0,t.createElement)("span",{class:"mf-divider-span"},(0,t.createElement)("span",{id:"mf-or-formDivider"},a||n||r?(0,o.__)("Or ","myfatoorah-woocommerce"):""),(0,o.__)("Insert Card Details","myfatoorah-woocommerce"))),(0,t.createElement)("div",{id:"mf-form-element"}),(0,t.createElement)("button",{class:"mf-pay-now-btn",onClick:e=>this.handleFormSubmit(e),style:{backgroundColor:s.themeColor}},(0,t.createElement)("span",{class:"mf-pay-now-span",style:{fontFamily:s.designFont,fontSize:s.designFontSize+"px"}},(0,o.__)("Pay Now","myfatoorah-woocommerce"))))}}const l=d,p=function(){jQuery(document).ready((function(e){e(".wc-block-components-checkout-place-order-button").hide(),e("input[name=radio-control-wc-payment-method-options]").on("change",(function(){"myfatoorah_v2"===this.value?e(".wc-block-components-checkout-place-order-button").hide():e(".wc-block-components-checkout-place-order-button").show()}))}))},y=window.wp.data,u=window.wp.apiFetch;var h=e.n(u);const f=window.wc.wcSettings.getPaymentMethodData("myfatoorah_v2");let w=0;const g=window.wc.wcSettings.getPaymentMethodData("myfatoorah_v2"),b=()=>window.wp.htmlEntities.decodeEntities(g.description),E=g.error?(0,t.createElement)((()=>{const e=window.wp.htmlEntities.decodeEntities(g.error);return(0,t.createElement)("font",{color:"red"},e)}),null):g.gateways?(0,t.createElement)((e=>{const{Inner:a,...o}=e,[,n]=(0,t.useState)(0),[r,s]=(0,t.useState)(!1),c=(0,y.useSelect)((e=>{const t=e("wc/store/cart");return t?t.getCartTotals():null}),[]),i=c?.total_price;return(0,t.useEffect)((()=>{if(!i)return;const e=++w;let t=!0;return s(!0),(async()=>{try{const a=await h()({path:"/myfatoorah/v2/refresh",method:"POST"});if(!t||e!==w)return;a?.gateways&&(f.gateways=a.gateways),n((e=>e+1))}catch(e){}finally{if(!t||e!==w)return;s(!1)}})(),()=>{t=!1}}),[i]),r?(0,t.createElement)("div",{style:{padding:"20px",textAlign:"center",opacity:.7}},"Loading payment methods..."):(0,t.createElement)(a,{...o,data:f})}),{Inner:e=>{const[a,n]=(0,t.useState)(""),[s,i]=(0,t.useState)(""),[d,y]=(0,t.useState)(""),u=(0,t.useRef)(""),h=(0,t.useRef)(""),w=(0,t.useRef)(""),g=e=>{h.current=e,i(e)},b=e=>{w.current=e,y(e)},{eventRegistration:E,emitResponse:C}=e,{onPaymentSetup:v}=E;(0,t.useEffect)((()=>{const e=v((async()=>w.current?{type:C.responseTypes.ERROR,message:w.current}:{type:C.responseTypes.SUCCESS,meta:{paymentMethodData:{mfCardData:String(u.current),mfData:h.current}}}));return()=>e()}),[a,s,d,C.responseTypes.ERROR,C.responseTypes.SUCCESS,v]);const _=null!==f.gateways.ap&&0!==f.gateways.ap.length,S=null!==f.gateways.gp&&0!==f.gateways.gp.length,k=f.gateways.cards.length>0,x=f.gateways.form.length>0,F=parseInt(f.design.designFontSize)+2,P={fontFamily:f.design.designFont,fontSize:F+"px",color:f.design.designColor},I={fontFamily:f.design.designFont,fontSize:F+"px"};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("input",{type:"hidden",disabled:!0,"data-mfVersion":f.mfVersion}),(0,t.createElement)("div",{id:"paymentGateways",className:"mf-payment-methods-container",style:P},(0,t.createElement)("div",{className:"mf-grey-text",style:I},(0,o.__)("How would you like to pay?","myfatoorah-woocommerce")),_?(0,t.createElement)(r,{data:f,handel:g,error:b}):"",S?(0,t.createElement)(c,{data:f,handel:g,error:b}):"",k?(0,t.createElement)(m,{data:f,handel:e=>{u.current=e,n(e)},error:b}):"",x?(0,t.createElement)(l,{data:f,handel:g,error:b}):""),(0,t.createElement)(p,null))}}):(0,t.createElement)(b,null),C={name:"myfatoorah_v2",label:(0,t.createElement)((()=>{const e=window.wp.htmlEntities.decodeEntities(g.title);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("input",{type:"hidden",disabled:!0,"data-mfVersion":g.mfVersion}),(0,t.createElement)("img",{src:g.icon})," ",e)}),null),content:E,edit:(0,t.createElement)(b,null),canMakePayment:()=>!0,ariaLabel:g.title,supports:{features:g.supports}};window.wc.wcBlocksRegistry.registerPaymentMethod(C)})(); -
myfatoorah-woocommerce/trunk/languages/myfatoorah-woocommerce-ar-dfbff627e6c248bcb3b61d7d06da9ca9.json
r3458908 r3463519 1 {"translation-revision-date":"2026-0 1-27 14:34+0200","generator":"WP-CLI\/2.10.0","source":"build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ar","plural-forms":"nplurals=2; plural=(n != 1);"},"Or ":["\u0623\u0648 "],"How would you like to pay?":["\u0643\u064a\u0641 \u062a\u0631\u064a\u062f \u0623\u0646 \u062a\u062f\u0641\u0639\u061f"],"Pay With":["\u0627\u062f\u0641\u0639 \u0628\u0648\u0627\u0633\u0637\u0629"],"Insert Card Details":["\u0627\u062f\u062e\u0644 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0628\u0637\u0627\u0642\u0629"],"Pay Now":["\u0627\u062f\u0641\u0639 \u0627\u0644\u0623\u0646"],"Name On Card":["\u0627\u0633\u0645 \u062d\u0627\u0645\u0644 \u0627\u0644\u0628\u0637\u0627\u0642\u0629"],"Number":["\u0631\u0642\u0645 \u0627\u0644\u0628\u0637\u0627\u0642\u0629"],"MM \/ YY":["YY \/ MM"],"CVV":["\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0633\u0631\u064a"],"Save card number for future payments":["\u062d\u0641\u0638 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0628\u0637\u0627\u0642\u0629 \u0644\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0645\u0633\u062a\u0642\u0628\u0644\u064a"],"Use another card":["\u0625\u0636\u0627\u0641\u0629 \u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629"],"Delete Card":["\u062d\u0630\u0641 \u0627\u0644\u0628\u0637\u0627\u0642\u0629"],"Are you sure you want to remove this card?":["\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u062d\u0630\u0641 \u0627\u0644\u0628\u0637\u0627\u0642\u0629\u061f"],"Yes":["\u0645\u0648\u0627\u0641\u0642"],"No":["\u063a\u064a\u0631 \u0645\u0648\u0627\u0641\u0642"]}}}1 {"translation-revision-date":"2026-02-17 13:18+0200","generator":"WP-CLI\/2.10.0","source":"build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ar","plural-forms":"nplurals=2; plural=(n != 1);"},"Or ":["\u0623\u0648 "],"How would you like to pay?":["\u0643\u064a\u0641 \u062a\u0631\u064a\u062f \u0623\u0646 \u062a\u062f\u0641\u0639\u061f"],"Pay With":["\u0627\u062f\u0641\u0639 \u0628\u0648\u0627\u0633\u0637\u0629"],"Insert Card Details":["\u0627\u062f\u062e\u0644 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0628\u0637\u0627\u0642\u0629"],"Pay Now":["\u0627\u062f\u0641\u0639 \u0627\u0644\u0623\u0646"],"Name On Card":["\u0627\u0633\u0645 \u062d\u0627\u0645\u0644 \u0627\u0644\u0628\u0637\u0627\u0642\u0629"],"Number":["\u0631\u0642\u0645 \u0627\u0644\u0628\u0637\u0627\u0642\u0629"],"MM \/ YY":["YY \/ MM"],"CVV":["\u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0633\u0631\u064a"],"Save card number for future payments":["\u062d\u0641\u0638 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0628\u0637\u0627\u0642\u0629 \u0644\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0645\u0633\u062a\u0642\u0628\u0644\u064a"],"Use another card":["\u0625\u0636\u0627\u0641\u0629 \u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629"],"Delete Card":["\u062d\u0630\u0641 \u0627\u0644\u0628\u0637\u0627\u0642\u0629"],"Are you sure you want to remove this card?":["\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u062d\u0630\u0641 \u0627\u0644\u0628\u0637\u0627\u0642\u0629\u061f"],"Yes":["\u0645\u0648\u0627\u0641\u0642"],"No":["\u063a\u064a\u0631 \u0645\u0648\u0627\u0641\u0642"]}}} -
myfatoorah-woocommerce/trunk/languages/myfatoorah-woocommerce-ar.po
r3458908 r3463519 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: MyFatoorah - WooCommerce 2.2.1 0\n"3 "Project-Id-Version: MyFatoorah - WooCommerce 2.2.11\n" 4 4 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/myfatoorah-woocommerce\n" 5 5 "Last-Translator: MyFatoorah Plugins Support <tech@myfatoorah.com>\n" … … 8 8 "Content-Type: text/plain; charset=UTF-8\n" 9 9 "Content-Transfer-Encoding: 8bit\n" 10 "POT-Creation-Date: 2026-0 1-27T12:25:38+00:00\n"11 "PO-Revision-Date: 2026-0 1-27 14:34+0200\n"10 "POT-Creation-Date: 2026-02-17T11:13:14+00:00\n" 11 "PO-Revision-Date: 2026-02-17 13:18+0200\n" 12 12 "Language: ar\n" 13 13 "X-Generator: Poedit 3.0.1\n" … … 295 295 296 296 #: includes/payments/blocks/MyFatoorahV2.php:78 297 #: includes/payments/class-wc-gateway-myfatoorah.php:6 45297 #: includes/payments/class-wc-gateway-myfatoorah.php:631 298 298 msgid "MyFatoorah forces SSL checkout Payment. Your checkout is not secure! Please, contact the site admin to enable SSL and ensure that the server has a valid SSL certificate." 299 299 msgstr "ماي فاتورة تفرض دفع SSL . عمليات الدفع الخاص بك غير آمنة! يرجى الاتصال بمسؤول الموقع لتفعيل SSL و التأكد من أن الخادم لديه شهادة SSL صالحة." … … 353 353 msgstr "عذرا: لا توجد أي بوابات دفع في حسابك. تواصل مع مدير الحساب الخاص بك." 354 354 355 #: includes/payments/class-wc-gateway-myfatoorah.php:15 8355 #: includes/payments/class-wc-gateway-myfatoorah.php:157 356 356 msgid "please, refund manually for this order" 357 357 msgstr "الرجاء رد الأموال يدويًا لهذا الطلب" 358 358 359 #: includes/payments/class-wc-gateway-myfatoorah.php:16 3359 #: includes/payments/class-wc-gateway-myfatoorah.php:162 360 360 msgid "system can't refund order with status " 361 361 msgstr "لا يمكن استرداد الطلب مع الحالة " 362 362 363 #: includes/payments/class-wc-gateway-myfatoorah.php:2 86363 #: includes/payments/class-wc-gateway-myfatoorah.php:272 364 364 msgid "Total amount for order #" 365 365 msgstr "المجموع الكلي للطلب #" 366 366 367 367 #. translators: %s: the product name 368 #: includes/payments/class-wc-gateway-myfatoorah.php:3 94368 #: includes/payments/class-wc-gateway-myfatoorah.php:380 369 369 msgid "The \"%s\" Item has non number unit price." 370 370 msgstr "سعر المنتج \"%s\" غير رقمي." 371 371 372 372 #. translators: %s: Payment Code 373 #: includes/payments/class-wc-gateway-myfatoorah.php:6 73373 #: includes/payments/class-wc-gateway-myfatoorah.php:659 374 374 msgid "MyFatoorah %s has been disabled." 375 375 msgstr "تم إيقاف طريقة ماي فاتورة للدفع %s." 376 376 377 #: includes/payments/class-wc-gateway-myfatoorah.php:6 82378 #: includes/payments/class-wc-gateway-myfatoorah.php: 709377 #: includes/payments/class-wc-gateway-myfatoorah.php:668 378 #: includes/payments/class-wc-gateway-myfatoorah.php:695 379 379 msgid "MyFatoorah Shipping has been disabled." 380 380 msgstr "تم إيقاف ماي فاتورة للشحن." 381 381 382 #: includes/payments/class-wc-gateway-myfatoorah.php:7 20382 #: includes/payments/class-wc-gateway-myfatoorah.php:706 383 383 msgid "Copy this link to your MyFatoorah Account. After that, Copy your Webhook Secret Key from MyFatoorah Account in the above field." 384 384 msgstr "الرجاء نسخ الرابط أعلاه ولصقة في حساب ماي فاتورة. بعد ذلك نسخ مفتاح الويب هوك السري من حساب ماي فاتورة في الحقل أعلاه." 385 385 386 #: includes/payments/class-wc-gateway-myfatoorah.php:7 32386 #: includes/payments/class-wc-gateway-myfatoorah.php:718 387 387 msgid "You should add the API key in the \"MyFatoorah - Cards\" payment Settings first." 388 388 msgstr "يجب أولاً إضافة رمز التكامل في إعدادات الدفع \"ماي فاتورة - البطاقات\"." 389 389 390 #: includes/PluginPaymentMyfatoorahWoocommerce.php: 19390 #: includes/PluginPaymentMyfatoorahWoocommerce.php:95 391 391 msgid "The Order is not found. Please, contact the store admin." 392 392 msgstr "لم يتم العثور على الطلب. من فضلك ، تواصل مع مدير المتجر." 393 393 394 #: includes/PluginShippingMyfatoorahWoocommerce.php:22 394 #: includes/PluginShippingMyfatoorahWoocommerce.php:135 395 msgid "MyFatoorah: kindly select a country" 396 msgstr "ماي فاتورة: الرجاء اختيار دولة" 397 398 #: includes/PluginShippingMyfatoorahWoocommerce.php:147 395 399 msgid "Select Town / City" 396 400 msgstr "اختر المدينة أو القرية" 397 398 #: includes/PluginShippingMyfatoorahWoocommerce.php:140399 msgid "MyFatoorah: kindly select a country"400 msgstr "ماي فاتورة: الرجاء اختيار دولة"401 401 402 402 #. translators: %s: version number -
myfatoorah-woocommerce/trunk/languages/myfatoorah-woocommerce.pot
r3458908 r3463519 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: MyFatoorah - WooCommerce 2.2.1 0\n"5 "Project-Id-Version: MyFatoorah - WooCommerce 2.2.11\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/myfatoorah-woocommerce\n" 7 7 "Last-Translator: MyFatoorah Plugins Support <tech@myfatoorah.com>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 1-27T12:25:38+00:00\n"12 "POT-Creation-Date: 2026-02-17T11:13:14+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.10.0\n" … … 296 296 297 297 #: includes/payments/blocks/MyFatoorahV2.php:78 298 #: includes/payments/class-wc-gateway-myfatoorah.php:6 45298 #: includes/payments/class-wc-gateway-myfatoorah.php:631 299 299 msgid "MyFatoorah forces SSL checkout Payment. Your checkout is not secure! Please, contact the site admin to enable SSL and ensure that the server has a valid SSL certificate." 300 300 msgstr "" … … 354 354 msgstr "" 355 355 356 #: includes/payments/class-wc-gateway-myfatoorah.php:15 8356 #: includes/payments/class-wc-gateway-myfatoorah.php:157 357 357 msgid "please, refund manually for this order" 358 358 msgstr "" 359 359 360 #: includes/payments/class-wc-gateway-myfatoorah.php:16 3360 #: includes/payments/class-wc-gateway-myfatoorah.php:162 361 361 msgid "system can't refund order with status " 362 362 msgstr "" 363 363 364 #: includes/payments/class-wc-gateway-myfatoorah.php:2 86364 #: includes/payments/class-wc-gateway-myfatoorah.php:272 365 365 msgid "Total amount for order #" 366 366 msgstr "" 367 367 368 368 #. translators: %s: the product name 369 #: includes/payments/class-wc-gateway-myfatoorah.php:3 94369 #: includes/payments/class-wc-gateway-myfatoorah.php:380 370 370 msgid "The \"%s\" Item has non number unit price." 371 371 msgstr "" 372 372 373 373 #. translators: %s: Payment Code 374 #: includes/payments/class-wc-gateway-myfatoorah.php:6 73374 #: includes/payments/class-wc-gateway-myfatoorah.php:659 375 375 msgid "MyFatoorah %s has been disabled." 376 376 msgstr "" 377 377 378 #: includes/payments/class-wc-gateway-myfatoorah.php:6 82379 #: includes/payments/class-wc-gateway-myfatoorah.php: 709378 #: includes/payments/class-wc-gateway-myfatoorah.php:668 379 #: includes/payments/class-wc-gateway-myfatoorah.php:695 380 380 msgid "MyFatoorah Shipping has been disabled." 381 381 msgstr "" 382 382 383 #: includes/payments/class-wc-gateway-myfatoorah.php:7 20383 #: includes/payments/class-wc-gateway-myfatoorah.php:706 384 384 msgid "Copy this link to your MyFatoorah Account. After that, Copy your Webhook Secret Key from MyFatoorah Account in the above field." 385 385 msgstr "" 386 386 387 #: includes/payments/class-wc-gateway-myfatoorah.php:7 32387 #: includes/payments/class-wc-gateway-myfatoorah.php:718 388 388 msgid "You should add the API key in the \"MyFatoorah - Cards\" payment Settings first." 389 389 msgstr "" 390 390 391 #: includes/PluginPaymentMyfatoorahWoocommerce.php: 19391 #: includes/PluginPaymentMyfatoorahWoocommerce.php:95 392 392 msgid "The Order is not found. Please, contact the store admin." 393 393 msgstr "" 394 394 395 #: includes/PluginShippingMyfatoorahWoocommerce.php:22 395 #: includes/PluginShippingMyfatoorahWoocommerce.php:135 396 msgid "MyFatoorah: kindly select a country" 397 msgstr "" 398 399 #: includes/PluginShippingMyfatoorahWoocommerce.php:147 396 400 msgid "Select Town / City" 397 msgstr ""398 399 #: includes/PluginShippingMyfatoorahWoocommerce.php:140400 msgid "MyFatoorah: kindly select a country"401 401 msgstr "" 402 402 -
myfatoorah-woocommerce/trunk/myfatoorah-woocommerce.php
r3458908 r3463519 10 10 * Plugin URI: https://myfatoorah.readme.io/docs/woocommerce/ 11 11 * Description: MyFatoorah Payment Gateway for WooCommerce. Integrated with MyFatoorah DHL/Aramex Shipping Methods. 12 * Version: 2.2.1 012 * Version: 2.2.11 13 13 * Author: MyFatoorah 14 14 * Author URI: https://www.myfatoorah.com/ … … 39 39 40 40 //MFWOO_PLUGIN 41 define('MYFATOORAH_WOO_PLUGIN_VERSION', '2.2.1 0');41 define('MYFATOORAH_WOO_PLUGIN_VERSION', '2.2.11'); 42 42 define('MYFATOORAH_WOO_PLUGIN', plugin_basename(__FILE__)); 43 43 define('MYFATOORAH_WOO_PLUGIN_NAME', dirname(MYFATOORAH_WOO_PLUGIN)); -
myfatoorah-woocommerce/trunk/readme.txt
r3458908 r3463519 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 2.2.1 07 Stable tag: 2.2.11 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 94 94 95 95 == Changelog == 96 = 2.2.10 (2025-02-11) = 97 - Introduced support for Webhook v2 98 - Added Webhook support for multi-vendor functionality 99 - Updated the payment form to reflect total changes on the Blocks Checkout page 100 - Added mfVersion to the Blocks Checkout page 101 - Fixed the thousand separator display issue for the Apple Pay button in the Blocks Checkout page 102 - Fix plugin loaded order 103 - Sends expiry minutes to MyFatoorah to calculate the invoice expiration based on the vendor’s timezone 96 = 2.2.11 (2025-02-17) = 97 - Align payment flow with WooCommerce Blocks lifecycle 104 98 105 99 See [changelog.txt](https://plugins.svn.wordpress.org/myfatoorah-woocommerce/trunk/changelog.txt) for older logs. … … 107 101 108 102 == Upgrade Notice == 109 = 2.2.1 0=103 = 2.2.11 = 110 104 The old design and the MyFatoorah Embedded payment is deprecated and will be removed soon. Please, use MyFatoorah's new design ONLY.
Note: See TracChangeset
for help on using the changeset viewer.