From e2d6656124ab131c84f5e23a8afaac11a24b45f8 Mon Sep 17 00:00:00 2001 From: Jeff Stieler Date: Tue, 17 Apr 2018 15:47:21 -0600 Subject: [PATCH] OBW: show PayFast payment gateway to merchants in South Africa. --- assets/css/wc-setup.scss | 4 +++ assets/images/payfast.png | Bin 0 -> 12840 bytes .../admin/class-wc-admin-setup-wizard.php | 24 +++++++++++++++--- 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 assets/images/payfast.png diff --git a/assets/css/wc-setup.scss b/assets/css/wc-setup.scss index 7594111dd98..dcf82240820 100644 --- a/assets/css/wc-setup.scss +++ b/assets/css/wc-setup.scss @@ -638,6 +638,10 @@ body { max-width: 87px; } + &.payfast-logo .wc-wizard-service-name img { + max-width: 140px; + } + .wc-wizard-service-description { flex-grow: 1; padding: 20px; diff --git a/assets/images/payfast.png b/assets/images/payfast.png new file mode 100644 index 0000000000000000000000000000000000000000..1ff033096e9f2bda4d694123bd1f63d553f0f28f GIT binary patch literal 12840 zcmc(GWl&sQvn~n2Ex1GQ;DiLX0KwheEw~36B*;Jl2`<4QxD7hE6Wn$1!QCAOxs&fy zo$u6Jbfdn%yYhHztR1eimv@p?bEAI5rmx_EdAh@ z=(3zSvOix-pfV)J?4=lIiahh-y=Mpd#lQ6l*l7trIHreMGN$YR7M~xnzJ2>9`@Vfm z;p3-Ie@q!@Y0WF~aB<)1euv9D<^QV;Hze_YlF=fw;^O|J-9KcXFturE{|6aK*{4tc zrQN@j`R`@_R{G!V{vrE^asO)f57|Eq{$DuZABOzvdH<087eoHjf&Y~KTj_s0@E@}O zbOMApYX;q`m$`vA0Hv?Q%hdmiXjyzg_lHAe5*T)H6$F6vxV!(wznfMcD%vQ*w!zeOwXEH-w`o5LACgVjKCP#g52zP&u$*XxFp!+y z+x;}g4*pf%IpVfgeLCc8B8h0uXN0$GL>+col7B?guqx*VpS*0D{iNwye2`qIMPK&y z9hmyx3y?J5zy#9s<#hWPJ3m$DF_9at^Skf=P|R4ckcgyEh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p4r;WbXsmI-q+@#!gXt$wrA|So7oQgq`W&({Tk(+ zE^~0T%}96Vt~Pv9RK9p?PnXD2zju2a?SZgLoL5=!~5yh=n+fYwnao_G9cjI4bt3TN7I=`D3E-e!76W-Icz)v%#oUVqDDRMcJM` zV|1b#nqCK-Nc>31|8C#-&^}`ug1y3pF#6kMmS(s&M8?(n+K+;Y3lp|*)4MWFUe)aB zbvRK;c?f7uRVW|Db-9jgY&hL#p&<7cn`~YVZFK~gn>1(6E!N457{HH-;{uyX-2*VH zup__QxKI`0vrv{I)iYr=z5dG;z{$+L;q+j?OBq2{%wsk9dt&(!btw=PXtc>+m{>R|(r-=}$n?vZ4M6 zD`XtkX9DS!MuQ=D-pH7HVjV8o+arE#h>9%j-7{&UqYxyUzIu>#0t#X zWco-u0*W2uMXIa8)^OG(ORZI4iAIS3z*;{{T~jm9i6l>P1CCU8^9qQ_Jk69e!2|s} z*(J~Tt?~ixcyaN(~1YbwtJ7Ek)=Wia7h_%s5H-CD8R1`1j~`9 zo6wgADclDCy&V*f;L*Is0q)9mbvNdaKI>)Ye`ihmrPmXcLmhXDOeTCeWOA6T4Gpeg z{z3R5r-+~j8}{-Cig0HtH5ji8JvI(WRO=DI%%)~~JTZx^@Quik^{&@RIAm`y03L!^o_DZ~i3;|r%-IR2%zP?CmCWra~iKeF8h0R8ytk9r-;IjNMD%y(BbOczfN;vOf{2z$q|2Km8 ze<7FuCu#gYWdC5q|BH$L57|E$@&5~!JlvfBKd%M+>wo`yC;Y>>{}+P^Y@cx?nc~}X Uc``BKZ)_mQNhyB 'eway-logo', 'repo-slug' => 'woocommerce-gateway-eway', ), + 'payfast' => array( + 'name' => __( 'PayFast', 'woocommerce' ), + 'description' => __( 'The PayFast extension for WooCommerce enables you to accept payments by Credit Card and EFT via one of South Africa’s most popular payment gateways. No setup fees or monthly subscription costs.', 'woocommerce' ), + 'image' => WC()->plugin_url() . '/assets/images/payfast.png', + 'class' => 'payfast-logo', + 'enabled' => false, + 'repo-slug' => 'woocommerce-gateway-payfast', + 'file' => 'gateway-payfast.php', + ), ); } @@ -1302,9 +1311,10 @@ class WC_Admin_Setup_Wizard { return array( 'paypal' => $gateways['paypal'] ); } - $country = WC()->countries->get_base_country(); - $can_stripe = $this->is_stripe_supported_country( $country ); - $can_eway = $this->is_eway_payments_supported_country( $country ); + $country = WC()->countries->get_base_country(); + $can_stripe = $this->is_stripe_supported_country( $country ); + $can_eway = $this->is_eway_payments_supported_country( $country ); + $can_payfast = ( 'ZA' === $country ); // South Africa. if ( $this->is_klarna_checkout_supported_country( $country ) ) { $spotlight = 'klarna_checkout'; @@ -1328,6 +1338,10 @@ class WC_Admin_Setup_Wizard { $offered_gateways += array( 'eway' => $gateways['eway'] ); } + if ( $can_payfast ) { + $offered_gateways += array( 'payfast' => $gateways['payfast'] ); + } + return $offered_gateways; } @@ -1345,6 +1359,10 @@ class WC_Admin_Setup_Wizard { $offered_gateways += array( 'eway' => $gateways['eway'] ); } + if ( $can_payfast ) { + $offered_gateways += array( 'payfast' => $gateways['payfast'] ); + } + return $offered_gateways; }