Plugin Directory

Changeset 3463519


Ignore:
Timestamp:
02/17/2026 12:59:41 PM (6 weeks ago)
Author:
myfatoorah
Message:

Align payment flow with WooCommerce Blocks lifecycle

Location:
myfatoorah-woocommerce
Files:
52 added
8 edited

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-01-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  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: MyFatoorah - WooCommerce 2.2.10\n"
     3"Project-Id-Version: MyFatoorah - WooCommerce 2.2.11\n"
    44"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/myfatoorah-woocommerce\n"
    55"Last-Translator: MyFatoorah Plugins Support <tech@myfatoorah.com>\n"
     
    88"Content-Type: text/plain; charset=UTF-8\n"
    99"Content-Transfer-Encoding: 8bit\n"
    10 "POT-Creation-Date: 2026-01-27T12:25:38+00:00\n"
    11 "PO-Revision-Date: 2026-01-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"
    1212"Language: ar\n"
    1313"X-Generator: Poedit 3.0.1\n"
     
    295295
    296296#: includes/payments/blocks/MyFatoorahV2.php:78
    297 #: includes/payments/class-wc-gateway-myfatoorah.php:645
     297#: includes/payments/class-wc-gateway-myfatoorah.php:631
    298298msgid "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."
    299299msgstr "ماي فاتورة تفرض دفع SSL . عمليات الدفع الخاص بك غير آمنة! يرجى الاتصال بمسؤول الموقع لتفعيل SSL و التأكد من أن الخادم لديه شهادة SSL صالحة."
     
    353353msgstr "عذرا: لا توجد أي بوابات دفع في حسابك. تواصل مع مدير الحساب الخاص بك."
    354354
    355 #: includes/payments/class-wc-gateway-myfatoorah.php:158
     355#: includes/payments/class-wc-gateway-myfatoorah.php:157
    356356msgid "please, refund manually for this order"
    357357msgstr "الرجاء رد الأموال يدويًا لهذا الطلب"
    358358
    359 #: includes/payments/class-wc-gateway-myfatoorah.php:163
     359#: includes/payments/class-wc-gateway-myfatoorah.php:162
    360360msgid "system can't refund order with status "
    361361msgstr "لا يمكن استرداد الطلب مع الحالة "
    362362
    363 #: includes/payments/class-wc-gateway-myfatoorah.php:286
     363#: includes/payments/class-wc-gateway-myfatoorah.php:272
    364364msgid "Total amount for order #"
    365365msgstr "المجموع الكلي للطلب #"
    366366
    367367#. translators: %s: the product name
    368 #: includes/payments/class-wc-gateway-myfatoorah.php:394
     368#: includes/payments/class-wc-gateway-myfatoorah.php:380
    369369msgid "The \"%s\" Item has non number unit price."
    370370msgstr "سعر المنتج \"%s\" غير رقمي."
    371371
    372372#. translators: %s: Payment Code
    373 #: includes/payments/class-wc-gateway-myfatoorah.php:673
     373#: includes/payments/class-wc-gateway-myfatoorah.php:659
    374374msgid "MyFatoorah %s has been disabled."
    375375msgstr "تم إيقاف طريقة ماي فاتورة للدفع %s."
    376376
    377 #: includes/payments/class-wc-gateway-myfatoorah.php:682
    378 #: includes/payments/class-wc-gateway-myfatoorah.php:709
     377#: includes/payments/class-wc-gateway-myfatoorah.php:668
     378#: includes/payments/class-wc-gateway-myfatoorah.php:695
    379379msgid "MyFatoorah Shipping has been disabled."
    380380msgstr "تم إيقاف ماي فاتورة للشحن."
    381381
    382 #: includes/payments/class-wc-gateway-myfatoorah.php:720
     382#: includes/payments/class-wc-gateway-myfatoorah.php:706
    383383msgid "Copy this link to your MyFatoorah Account. After that, Copy your Webhook Secret Key from MyFatoorah Account in the above field."
    384384msgstr "الرجاء نسخ الرابط أعلاه ولصقة في حساب ماي فاتورة. بعد ذلك نسخ مفتاح الويب هوك السري من حساب ماي فاتورة في الحقل أعلاه."
    385385
    386 #: includes/payments/class-wc-gateway-myfatoorah.php:732
     386#: includes/payments/class-wc-gateway-myfatoorah.php:718
    387387msgid "You should add the API key in the \"MyFatoorah - Cards\" payment Settings first."
    388388msgstr "يجب أولاً إضافة رمز التكامل في إعدادات الدفع \"ماي فاتورة - البطاقات\"."
    389389
    390 #: includes/PluginPaymentMyfatoorahWoocommerce.php:19
     390#: includes/PluginPaymentMyfatoorahWoocommerce.php:95
    391391msgid "The Order is not found. Please, contact the store admin."
    392392msgstr "لم يتم العثور على الطلب. من فضلك ، تواصل مع مدير المتجر."
    393393
    394 #: includes/PluginShippingMyfatoorahWoocommerce.php:22
     394#: includes/PluginShippingMyfatoorahWoocommerce.php:135
     395msgid "MyFatoorah: kindly select a country"
     396msgstr "ماي فاتورة: الرجاء اختيار دولة"
     397
     398#: includes/PluginShippingMyfatoorahWoocommerce.php:147
    395399msgid "Select Town / City"
    396400msgstr "اختر المدينة أو القرية"
    397 
    398 #: includes/PluginShippingMyfatoorahWoocommerce.php:140
    399 msgid "MyFatoorah: kindly select a country"
    400 msgstr "ماي فاتورة: الرجاء اختيار دولة"
    401401
    402402#. translators: %s: version number
  • myfatoorah-woocommerce/trunk/languages/myfatoorah-woocommerce.pot

    r3458908 r3463519  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: MyFatoorah - WooCommerce 2.2.10\n"
     5"Project-Id-Version: MyFatoorah - WooCommerce 2.2.11\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/myfatoorah-woocommerce\n"
    77"Last-Translator: MyFatoorah Plugins Support <tech@myfatoorah.com>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-01-27T12:25:38+00:00\n"
     12"POT-Creation-Date: 2026-02-17T11:13:14+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    296296
    297297#: includes/payments/blocks/MyFatoorahV2.php:78
    298 #: includes/payments/class-wc-gateway-myfatoorah.php:645
     298#: includes/payments/class-wc-gateway-myfatoorah.php:631
    299299msgid "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."
    300300msgstr ""
     
    354354msgstr ""
    355355
    356 #: includes/payments/class-wc-gateway-myfatoorah.php:158
     356#: includes/payments/class-wc-gateway-myfatoorah.php:157
    357357msgid "please, refund manually for this order"
    358358msgstr ""
    359359
    360 #: includes/payments/class-wc-gateway-myfatoorah.php:163
     360#: includes/payments/class-wc-gateway-myfatoorah.php:162
    361361msgid "system can't refund order with status "
    362362msgstr ""
    363363
    364 #: includes/payments/class-wc-gateway-myfatoorah.php:286
     364#: includes/payments/class-wc-gateway-myfatoorah.php:272
    365365msgid "Total amount for order #"
    366366msgstr ""
    367367
    368368#. translators: %s: the product name
    369 #: includes/payments/class-wc-gateway-myfatoorah.php:394
     369#: includes/payments/class-wc-gateway-myfatoorah.php:380
    370370msgid "The \"%s\" Item has non number unit price."
    371371msgstr ""
    372372
    373373#. translators: %s: Payment Code
    374 #: includes/payments/class-wc-gateway-myfatoorah.php:673
     374#: includes/payments/class-wc-gateway-myfatoorah.php:659
    375375msgid "MyFatoorah %s has been disabled."
    376376msgstr ""
    377377
    378 #: includes/payments/class-wc-gateway-myfatoorah.php:682
    379 #: includes/payments/class-wc-gateway-myfatoorah.php:709
     378#: includes/payments/class-wc-gateway-myfatoorah.php:668
     379#: includes/payments/class-wc-gateway-myfatoorah.php:695
    380380msgid "MyFatoorah Shipping has been disabled."
    381381msgstr ""
    382382
    383 #: includes/payments/class-wc-gateway-myfatoorah.php:720
     383#: includes/payments/class-wc-gateway-myfatoorah.php:706
    384384msgid "Copy this link to your MyFatoorah Account. After that, Copy your Webhook Secret Key from MyFatoorah Account in the above field."
    385385msgstr ""
    386386
    387 #: includes/payments/class-wc-gateway-myfatoorah.php:732
     387#: includes/payments/class-wc-gateway-myfatoorah.php:718
    388388msgid "You should add the API key in the \"MyFatoorah - Cards\" payment Settings first."
    389389msgstr ""
    390390
    391 #: includes/PluginPaymentMyfatoorahWoocommerce.php:19
     391#: includes/PluginPaymentMyfatoorahWoocommerce.php:95
    392392msgid "The Order is not found. Please, contact the store admin."
    393393msgstr ""
    394394
    395 #: includes/PluginShippingMyfatoorahWoocommerce.php:22
     395#: includes/PluginShippingMyfatoorahWoocommerce.php:135
     396msgid "MyFatoorah: kindly select a country"
     397msgstr ""
     398
     399#: includes/PluginShippingMyfatoorahWoocommerce.php:147
    396400msgid "Select Town / City"
    397 msgstr ""
    398 
    399 #: includes/PluginShippingMyfatoorahWoocommerce.php:140
    400 msgid "MyFatoorah: kindly select a country"
    401401msgstr ""
    402402
  • myfatoorah-woocommerce/trunk/myfatoorah-woocommerce.php

    r3458908 r3463519  
    1010 * Plugin URI:        https://myfatoorah.readme.io/docs/woocommerce/
    1111 * Description:       MyFatoorah Payment Gateway for WooCommerce. Integrated with MyFatoorah DHL/Aramex Shipping Methods.
    12  * Version:           2.2.10
     12 * Version:           2.2.11
    1313 * Author:            MyFatoorah
    1414 * Author URI:        https://www.myfatoorah.com/
     
    3939
    4040//MFWOO_PLUGIN
    41 define('MYFATOORAH_WOO_PLUGIN_VERSION', '2.2.10');
     41define('MYFATOORAH_WOO_PLUGIN_VERSION', '2.2.11');
    4242define('MYFATOORAH_WOO_PLUGIN', plugin_basename(__FILE__));
    4343define('MYFATOORAH_WOO_PLUGIN_NAME', dirname(MYFATOORAH_WOO_PLUGIN));
  • myfatoorah-woocommerce/trunk/readme.txt

    r3458908 r3463519  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 2.2.10
     7Stable tag: 2.2.11
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    9494
    9595== 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
    10498
    10599See [changelog.txt](https://plugins.svn.wordpress.org/myfatoorah-woocommerce/trunk/changelog.txt) for older logs.
     
    107101
    108102== Upgrade Notice ==
    109 = 2.2.10 =
     103= 2.2.11 =
    110104The 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.