Changeset 3033055
- Timestamp:
- 02/08/2024 09:23:55 AM (2 years ago)
- Location:
- bob-pay
- Files:
-
- 4 added
- 22 deleted
- 12 edited
- 1 copied
-
tags/1.0.16 (copied) (copied from bob-pay/trunk)
-
tags/1.0.16/.wp-env.json (modified) (1 diff)
-
tags/1.0.16/Makefile (deleted)
-
tags/1.0.16/assets/images/capitec-pay.svg (deleted)
-
tags/1.0.16/assets/images/mastercard.png (deleted)
-
tags/1.0.16/assets/images/scan-to-pay.png (deleted)
-
tags/1.0.16/assets/images/visa.png (deleted)
-
tags/1.0.16/bobpay-plugin.php (modified) (8 diffs)
-
tags/1.0.16/build/js/frontend/index.asset.php (modified) (1 diff)
-
tags/1.0.16/build/js/frontend/index.js (modified) (1 diff)
-
tags/1.0.16/includes/abstract-payment-method.php (deleted)
-
tags/1.0.16/includes/blocks-support (deleted)
-
tags/1.0.16/includes/class-wc-bobpay-plugin-blocks-support.php (added)
-
tags/1.0.16/includes/class-wc-bobpay-plugin-capitec-pay.php (deleted)
-
tags/1.0.16/includes/class-wc-bobpay-plugin-credit-card.php (deleted)
-
tags/1.0.16/includes/class-wc-bobpay-plugin-instant-eft.php (deleted)
-
tags/1.0.16/includes/class-wc-bobpay-plugin-scan-to-pay.php (deleted)
-
tags/1.0.16/includes/class-wc-bobpay-plugin.php (added)
-
tags/1.0.16/readme.txt (modified) (2 diffs)
-
tags/1.0.16/resources/js/frontend/index.js (modified) (6 diffs)
-
trunk/.wp-env.json (modified) (1 diff)
-
trunk/Makefile (deleted)
-
trunk/assets/images/capitec-pay.svg (deleted)
-
trunk/assets/images/mastercard.png (deleted)
-
trunk/assets/images/scan-to-pay.png (deleted)
-
trunk/assets/images/visa.png (deleted)
-
trunk/bobpay-plugin.php (modified) (8 diffs)
-
trunk/build/js/frontend/index.asset.php (modified) (1 diff)
-
trunk/build/js/frontend/index.js (modified) (1 diff)
-
trunk/includes/abstract-payment-method.php (deleted)
-
trunk/includes/blocks-support (deleted)
-
trunk/includes/class-wc-bobpay-plugin-blocks-support.php (added)
-
trunk/includes/class-wc-bobpay-plugin-capitec-pay.php (deleted)
-
trunk/includes/class-wc-bobpay-plugin-credit-card.php (deleted)
-
trunk/includes/class-wc-bobpay-plugin-instant-eft.php (deleted)
-
trunk/includes/class-wc-bobpay-plugin-scan-to-pay.php (deleted)
-
trunk/includes/class-wc-bobpay-plugin.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/resources/js/frontend/index.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bob-pay/tags/1.0.16/.wp-env.json
r3033006 r3033055 1 1 { 2 "plugins": [ 3 ".", 4 "https://downloads.wordpress.org/plugin/woocommerce.8.5.1.zip" 5 ], 6 "config": { 7 "BOBPAY_LOCAL_DEV": "true", 8 "WP_DEBUG": "true", 9 "NGROK_TUNNEL_URL": "https://d014-196-210-25-77.ngrok-free.app" 10 }, 11 "phpVersion": "8.2" 2 "plugins": [ 3 ".", 4 "https://downloads.wordpress.org/plugin/woocommerce.8.3.0.zip" 5 ], 6 "config": { 7 "BOBPAY_LOCAL_DEV": "true" 8 } 12 9 } -
bob-pay/tags/1.0.16/bobpay-plugin.php
r3033043 r3033055 8 8 * Requires at least: 5.0 9 9 * Requires PHP: 7.0 10 * Version: 1.0.1 410 * Version: 1.0.16 11 11 * License: GPLv2 or later 12 12 */ … … 17 17 defined('ABSPATH') || exit; 18 18 19 define('WC_BOBPAY_PLUGIN_VERSION', '1.0.1 4');19 define('WC_BOBPAY_PLUGIN_VERSION', '1.0.16'); 20 20 define('WC_BOBPAY_PLUGIN_URL', untrailingslashit(plugins_url(basename(plugin_dir_path(__FILE__)), basename(__FILE__)))); 21 21 define('WC_BOBPAY_PLUGIN_PATH', untrailingslashit(plugin_dir_path(__FILE__))); … … 27 27 } 28 28 29 require_once(plugin_basename('includes/class-wc-bobpay-plugin-credit-card.php')); 30 require_once(plugin_basename('includes/class-wc-bobpay-plugin-instant-eft.php')); 31 require_once(plugin_basename('includes/class-wc-bobpay-plugin-capitec-pay.php')); 32 require_once(plugin_basename('includes/class-wc-bobpay-plugin-scan-to-pay.php')); 29 require_once(plugin_basename('includes/class-wc-bobpay-plugin.php')); 33 30 require_once(plugin_basename('includes/class-wc-bobpay-plugin-privacy.php')); 34 31 load_plugin_textdomain('bob-pay', false, trailingslashit(dirname(plugin_basename(__FILE__)))); … … 39 36 function woocommerce_bobpay_add_plugin($methods) 40 37 { 41 $methods[] = 'WC_BobPay_Plugin_Credit_Card'; 42 $methods[] = 'WC_BobPay_Plugin_Instant_EFT'; 43 $methods[] = 'WC_BobPay_Plugin_Capitec_Pay'; 44 $methods[] = 'WC_BobPay_Plugin_Scan_To_Pay'; 38 $methods[] = 'WC_BobPay_Plugin'; 45 39 return $methods; 46 40 } … … 52 46 'page' => 'wc-settings', 53 47 'tab' => 'checkout', 48 'section' => 'wc_bobpay_plugin', 54 49 ), 55 50 admin_url('admin.php') … … 69 64 { 70 65 if (class_exists('Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType')) { 71 require_once dirname(__FILE__) . '/includes/blocks-support/class-wc-bobpay-credit-card-blocks-support.php'; 72 require_once dirname(__FILE__) . '/includes/blocks-support/class-wc-bobpay-scan-to-pay-blocks-support.php'; 73 require_once dirname(__FILE__) . '/includes/blocks-support/class-wc-bobpay-capitec-pay-blocks-support.php'; 74 require_once dirname(__FILE__) . '/includes/blocks-support/class-wc-bobpay-instant-eft-blocks-support.php'; 66 require_once dirname(__FILE__) . '/includes/class-wc-bobpay-plugin-blocks-support.php'; 75 67 add_action( 76 68 'woocommerce_blocks_payment_method_type_registration', 77 69 function (Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry $payment_method_registry) { 78 $payment_method_registry->register(new WC_Bobpay_Credit_Card_Blocks_Support); 79 $payment_method_registry->register(new WC_Bobpay_Scan_To_Pay_Blocks_Support); 80 $payment_method_registry->register(new WC_Bobpay_Capitec_Pay_Blocks_Support); 81 $payment_method_registry->register(new WC_Bobpay_Instant_EFT_Blocks_Support); 70 $payment_method_registry->register(new WC_Bobpay_Blocks_Support); 82 71 } 83 72 ); … … 96 85 } 97 86 98 if (isset($gateway_order['bobpay _credit_card'], $gateway_order['bobpay_instant_eft'], $gateway_order['bobpay_capitec_pay'], $gateway_order['bobpay_scan_to_pay'])) {99 unset($gateway_order['bobpay _credit_card'], $gateway_order['bobpay_instant_eft'], $gateway_order['bobpay_capitec_pay'], $gateway_order['bobpay_scan_to_pay']);87 if (isset($gateway_order['bobpay'])) { 88 unset($gateway_order['bobpay']); 100 89 } 101 90 102 $gateway_order = array_merge(['bobpay _credit_card' => 0, 'bobpay_instant_eft' => 1, 'bobpay_capitec_pay' => 2, 'bobpay_scan_to_pay' => 3], $gateway_order);91 $gateway_order = array_merge(['bobpay' => 0], $gateway_order); 103 92 104 93 $i = 0; … … 115 104 116 105 // Set bobpay as default payment method 117 WC()->session->set('chosen_payment_method', 'bobpay _credit_card');106 WC()->session->set('chosen_payment_method', 'bobpay'); 118 107 } 119 120 // Check if each payment method has settings in wp_options121 // If not, check if woocommerce_bobpay_settings has been set and use that to populate the settings122 function populate_empty_settings()123 {124 $payment_methods = array(125 'bobpay_credit_card',126 'bobpay_instant_eft',127 'bobpay_capitec_pay',128 'bobpay_scan_to_pay',129 );130 131 foreach ($payment_methods as $payment_method) {132 $settings = get_option('woocommerce_' . $payment_method . '_settings');133 if (!empty($settings)) {134 continue;135 }136 137 $settings = get_option('woocommerce_bobpay_settings');138 if (!empty($settings)) {139 update_option('woocommerce_' . $payment_method . '_settings', $settings);140 }141 }142 }143 add_action('init', 'populate_empty_settings'); -
bob-pay/tags/1.0.16/build/js/frontend/index.asset.php
r3033006 r3033055 1 <?php return array('dependencies' => array('wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-html-entities'), 'version' => ' fad5407c76547eca00a39b63d12c8ded');1 <?php return array('dependencies' => array('wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-html-entities'), 'version' => 'd108c06a647d7dbcf9335dd4aa826233'); -
bob-pay/tags/1.0.16/build/js/frontend/index.js
r3033006 r3033055 1 !function(e){var t={};function r(n){if(t[n])return t[n].exports;var l=t[n]={i:n,l:!1,exports:{}};return e[n].call(l.exports,l,l.exports,r),l.l=!0,l.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)r.d(n,l,function(t){return e[t]}.bind(null,l));return n},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=4)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wc.wcBlocksRegistry},function(e,t){e.exports=window.wc.wcSettings},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,r){"use strict";r.r(t);var n=r(0),l=r(1),a=r( 3),c=r(2);const i=Object(c.getSetting)("bobpay_data",{}),s=Object(c.getSetting)("bobpay_credit_card_data",{}),p=Object(c.getSetting)("bobpay_scan_to_pay_data",{}),b=Object(c.getSetting)("bobpay_capitec_pay_data",{}),m=Object(c.getSetting)("bobpay_instant_eft_data",{}),o=Object(a.decodeEntities)(i.title)||"Bob Pay",u=()=>Object(a.decodeEntities)(i.description||""),g={name:"bobpay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:i.logo_url,width:70,style:{margin:0}}),i.title," - ",Object(n.createElement)("img",{style:{height:"21px",margin:0},src:i.absa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.bank_zero_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.capitec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.discovery_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.fnb_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.investec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.nedbank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.standard_bank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.tyme_bank_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:i.supports}};Object(l.registerPaymentMethod)(g);const y={name:"bobpay_credit_card",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:s.logo_url,width:70,style:{margin:0}}),s.title," - ",Object(n.createElement)("img",{style:{height:"15px"},src:s.visa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:s.mastercard_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:i.supports}};Object(l.registerPaymentMethod)(y);const d={name:"bobpay_scan_to_pay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:p.logo_url,width:70,style:{margin:0}}),p.title," - ",Object(n.createElement)("img",{style:{height:"20px"},src:p.scan_to_pay_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:p.supports}};Object(l.registerPaymentMethod)(d);const j={name:"bobpay_capitec_pay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:b.logo_url,width:70,style:{margin:0}}),b.title," - ",Object(n.createElement)("img",{style:{height:"20px"},src:b.capitec_pay_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:b.supports}};Object(l.registerPaymentMethod)(j);const O={name:"bobpay_instant_eft",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:m.logo_url,width:70,style:{margin:0}}),m.title," - ",Object(n.createElement)("img",{style:{height:"21px",margin:0},src:m.absa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.bank_zero_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.capitec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.discovery_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.fnb_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.investec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.nedbank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.standard_bank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.tyme_bank_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:m.supports}};Object(l.registerPaymentMethod)(O)}]);1 !function(e){var t={};function r(n){if(t[n])return t[n].exports;var l=t[n]={i:n,l:!1,exports:{}};return e[n].call(l.exports,l,l.exports,r),l.l=!0,l.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)r.d(n,l,function(t){return e[t]}.bind(null,l));return n},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=4)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wc.wcBlocksRegistry},function(e,t){e.exports=window.wc.wcSettings},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,r){"use strict";r.r(t);var n=r(0),l=r(1),a=r(2),c=r(3);const i=Object(a.getSetting)("bobpay_data",{}),s=Object(a.getSetting)("bobpay_credit_card_data",{}),p=Object(a.getSetting)("bobpay_scan_to_pay_data",{}),b=Object(a.getSetting)("bobpay_capitec_pay_data",{}),m=Object(a.getSetting)("bobpay_instant_eft_data",{}),o=Object(c.decodeEntities)(i.title)||"Bob Pay",u=()=>Object(c.decodeEntities)(i.description||""),g={name:"bobpay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:i.logo_url,width:70,style:{margin:0}}),i.title," - ",Object(n.createElement)("img",{style:{height:"21px",margin:0},src:i.absa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.bank_zero_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.capitec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.discovery_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.fnb_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.investec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.nedbank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.standard_bank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.tyme_bank_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:i.supports}};Object(l.registerPaymentMethod)(g);const y={name:"bobpay_credit_card",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:s.logo_url,width:70,style:{margin:0}}),s.title," - ",Object(n.createElement)("img",{style:{height:"15px"},src:s.visa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:s.mastercard_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:i.supports}};Object(l.registerPaymentMethod)(y);const d={name:"bobpay_scan_to_pay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:p.logo_url,width:70,style:{margin:0}}),p.title," - ",Object(n.createElement)("img",{style:{height:"20px"},src:p.scan_to_pay_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:p.supports}};Object(l.registerPaymentMethod)(d);const j={name:"bobpay_capitec_pay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:b.logo_url,width:70,style:{margin:0}}),b.title," - ",Object(n.createElement)("img",{style:{height:"20px"},src:b.capitec_pay_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:b.supports}};Object(l.registerPaymentMethod)(j);const O={name:"bobpay_instant_eft",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:m.logo_url,width:70,style:{margin:0}}),m.title," - ",Object(n.createElement)("img",{style:{height:"21px",margin:0},src:m.absa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.bank_zero_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.capitec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.discovery_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.fnb_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.investec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.nedbank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.standard_bank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.tyme_bank_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:m.supports}};Object(l.registerPaymentMethod)(O)}]); -
bob-pay/tags/1.0.16/readme.txt
r3033043 r3033055 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 7.0.0 7 Stable tag: 1.0.1 47 Stable tag: 1.0.16 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 1.0.14 = 53 Bug fix 54 55 = 1.0.13 = 52 = 1.0.15 = 56 53 Bug fix 57 54 -
bob-pay/tags/1.0.16/resources/js/frontend/index.js
r3033006 r3033055 1 1 import { registerPaymentMethod } from "@woocommerce/blocks-registry"; 2 import { getSetting } from "@woocommerce/settings"; 2 3 import { decodeEntities } from "@wordpress/html-entities"; 3 import { getSetting } from "@woocommerce/settings";4 4 5 5 const settings = getSetting("bobpay_data", {}); … … 66 66 }} 67 67 > 68 <img src={creditCardSettings.logo_url} width={70} style={{ margin: 0 }} /> 68 <img 69 src={creditCardSettings.logo_url} 70 width={70} 71 style={{ margin: 0 }} 72 /> 69 73 {creditCardSettings.title} - 70 74 <img style={{ height: "15px" }} src={creditCardSettings.visa_url} /> 71 <img style={{ height: "20px" }} src={creditCardSettings.mastercard_url} /> 72 </span> 73 ); 74 } 75 <img 76 style={{ height: "20px" }} 77 src={creditCardSettings.mastercard_url} 78 /> 79 </span> 80 ); 81 }; 75 82 const BobPayCreditCard = { 76 83 name: "bobpay_credit_card", … … 97 104 }} 98 105 > 99 <img src={scanToPaySettings.logo_url} width={70} style={{ margin: 0 }} /> 106 <img 107 src={scanToPaySettings.logo_url} 108 width={70} 109 style={{ margin: 0 }} 110 /> 100 111 {scanToPaySettings.title} - 101 <img style={{ height: "20px" }} src={scanToPaySettings.scan_to_pay_url} /> 102 </span> 103 ); 104 } 112 <img 113 style={{ height: "20px" }} 114 src={scanToPaySettings.scan_to_pay_url} 115 /> 116 </span> 117 ); 118 }; 105 119 const BobPayScanToPay = { 106 120 name: "bobpay_scan_to_pay", … … 127 141 }} 128 142 > 129 <img src={capitecPaySettings.logo_url} width={70} style={{ margin: 0 }} /> 143 <img 144 src={capitecPaySettings.logo_url} 145 width={70} 146 style={{ margin: 0 }} 147 /> 130 148 {capitecPaySettings.title} - 131 <img style={{ height: "20px" }} src={capitecPaySettings.capitec_pay_url} /> 132 </span> 133 ); 134 } 149 <img 150 style={{ height: "20px" }} 151 src={capitecPaySettings.capitec_pay_url} 152 /> 153 </span> 154 ); 155 }; 135 156 const BobPayCapitecPay = { 136 157 name: "bobpay_capitec_pay", … … 157 178 }} 158 179 > 159 <img src={instantEFTSettings.logo_url} width={70} style={{ margin: 0 }} /> 180 <img 181 src={instantEFTSettings.logo_url} 182 width={70} 183 style={{ margin: 0 }} 184 /> 160 185 {instantEFTSettings.title} - 161 186 <img … … 163 188 src={instantEFTSettings.absa_url} 164 189 /> 165 <img style={{ height: "20px" }} src={instantEFTSettings.bank_zero_url} /> 166 <img style={{ height: "20px" }} src={instantEFTSettings.capitec_url} /> 167 <img style={{ height: "20px" }} src={instantEFTSettings.discovery_url} /> 190 <img 191 style={{ height: "20px" }} 192 src={instantEFTSettings.bank_zero_url} 193 /> 194 <img 195 style={{ height: "20px" }} 196 src={instantEFTSettings.capitec_url} 197 /> 198 <img 199 style={{ height: "20px" }} 200 src={instantEFTSettings.discovery_url} 201 /> 168 202 <img style={{ height: "20px" }} src={instantEFTSettings.fnb_url} /> 169 <img style={{ height: "20px" }} src={instantEFTSettings.investec_url} /> 170 <img style={{ height: "20px" }} src={instantEFTSettings.nedbank_url} /> 171 <img style={{ height: "20px" }} src={instantEFTSettings.standard_bank_url} /> 172 <img style={{ height: "20px" }} src={instantEFTSettings.tyme_bank_url} /> 173 </span> 174 ); 175 } 203 <img 204 style={{ height: "20px" }} 205 src={instantEFTSettings.investec_url} 206 /> 207 <img 208 style={{ height: "20px" }} 209 src={instantEFTSettings.nedbank_url} 210 /> 211 <img 212 style={{ height: "20px" }} 213 src={instantEFTSettings.standard_bank_url} 214 /> 215 <img 216 style={{ height: "20px" }} 217 src={instantEFTSettings.tyme_bank_url} 218 /> 219 </span> 220 ); 221 }; 176 222 const BobPayInstantEFT = { 177 223 name: "bobpay_instant_eft", -
bob-pay/trunk/.wp-env.json
r3033006 r3033055 1 1 { 2 "plugins": [ 3 ".", 4 "https://downloads.wordpress.org/plugin/woocommerce.8.5.1.zip" 5 ], 6 "config": { 7 "BOBPAY_LOCAL_DEV": "true", 8 "WP_DEBUG": "true", 9 "NGROK_TUNNEL_URL": "https://d014-196-210-25-77.ngrok-free.app" 10 }, 11 "phpVersion": "8.2" 2 "plugins": [ 3 ".", 4 "https://downloads.wordpress.org/plugin/woocommerce.8.3.0.zip" 5 ], 6 "config": { 7 "BOBPAY_LOCAL_DEV": "true" 8 } 12 9 } -
bob-pay/trunk/bobpay-plugin.php
r3033043 r3033055 8 8 * Requires at least: 5.0 9 9 * Requires PHP: 7.0 10 * Version: 1.0.1 410 * Version: 1.0.16 11 11 * License: GPLv2 or later 12 12 */ … … 17 17 defined('ABSPATH') || exit; 18 18 19 define('WC_BOBPAY_PLUGIN_VERSION', '1.0.1 4');19 define('WC_BOBPAY_PLUGIN_VERSION', '1.0.16'); 20 20 define('WC_BOBPAY_PLUGIN_URL', untrailingslashit(plugins_url(basename(plugin_dir_path(__FILE__)), basename(__FILE__)))); 21 21 define('WC_BOBPAY_PLUGIN_PATH', untrailingslashit(plugin_dir_path(__FILE__))); … … 27 27 } 28 28 29 require_once(plugin_basename('includes/class-wc-bobpay-plugin-credit-card.php')); 30 require_once(plugin_basename('includes/class-wc-bobpay-plugin-instant-eft.php')); 31 require_once(plugin_basename('includes/class-wc-bobpay-plugin-capitec-pay.php')); 32 require_once(plugin_basename('includes/class-wc-bobpay-plugin-scan-to-pay.php')); 29 require_once(plugin_basename('includes/class-wc-bobpay-plugin.php')); 33 30 require_once(plugin_basename('includes/class-wc-bobpay-plugin-privacy.php')); 34 31 load_plugin_textdomain('bob-pay', false, trailingslashit(dirname(plugin_basename(__FILE__)))); … … 39 36 function woocommerce_bobpay_add_plugin($methods) 40 37 { 41 $methods[] = 'WC_BobPay_Plugin_Credit_Card'; 42 $methods[] = 'WC_BobPay_Plugin_Instant_EFT'; 43 $methods[] = 'WC_BobPay_Plugin_Capitec_Pay'; 44 $methods[] = 'WC_BobPay_Plugin_Scan_To_Pay'; 38 $methods[] = 'WC_BobPay_Plugin'; 45 39 return $methods; 46 40 } … … 52 46 'page' => 'wc-settings', 53 47 'tab' => 'checkout', 48 'section' => 'wc_bobpay_plugin', 54 49 ), 55 50 admin_url('admin.php') … … 69 64 { 70 65 if (class_exists('Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType')) { 71 require_once dirname(__FILE__) . '/includes/blocks-support/class-wc-bobpay-credit-card-blocks-support.php'; 72 require_once dirname(__FILE__) . '/includes/blocks-support/class-wc-bobpay-scan-to-pay-blocks-support.php'; 73 require_once dirname(__FILE__) . '/includes/blocks-support/class-wc-bobpay-capitec-pay-blocks-support.php'; 74 require_once dirname(__FILE__) . '/includes/blocks-support/class-wc-bobpay-instant-eft-blocks-support.php'; 66 require_once dirname(__FILE__) . '/includes/class-wc-bobpay-plugin-blocks-support.php'; 75 67 add_action( 76 68 'woocommerce_blocks_payment_method_type_registration', 77 69 function (Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry $payment_method_registry) { 78 $payment_method_registry->register(new WC_Bobpay_Credit_Card_Blocks_Support); 79 $payment_method_registry->register(new WC_Bobpay_Scan_To_Pay_Blocks_Support); 80 $payment_method_registry->register(new WC_Bobpay_Capitec_Pay_Blocks_Support); 81 $payment_method_registry->register(new WC_Bobpay_Instant_EFT_Blocks_Support); 70 $payment_method_registry->register(new WC_Bobpay_Blocks_Support); 82 71 } 83 72 ); … … 96 85 } 97 86 98 if (isset($gateway_order['bobpay _credit_card'], $gateway_order['bobpay_instant_eft'], $gateway_order['bobpay_capitec_pay'], $gateway_order['bobpay_scan_to_pay'])) {99 unset($gateway_order['bobpay _credit_card'], $gateway_order['bobpay_instant_eft'], $gateway_order['bobpay_capitec_pay'], $gateway_order['bobpay_scan_to_pay']);87 if (isset($gateway_order['bobpay'])) { 88 unset($gateway_order['bobpay']); 100 89 } 101 90 102 $gateway_order = array_merge(['bobpay _credit_card' => 0, 'bobpay_instant_eft' => 1, 'bobpay_capitec_pay' => 2, 'bobpay_scan_to_pay' => 3], $gateway_order);91 $gateway_order = array_merge(['bobpay' => 0], $gateway_order); 103 92 104 93 $i = 0; … … 115 104 116 105 // Set bobpay as default payment method 117 WC()->session->set('chosen_payment_method', 'bobpay _credit_card');106 WC()->session->set('chosen_payment_method', 'bobpay'); 118 107 } 119 120 // Check if each payment method has settings in wp_options121 // If not, check if woocommerce_bobpay_settings has been set and use that to populate the settings122 function populate_empty_settings()123 {124 $payment_methods = array(125 'bobpay_credit_card',126 'bobpay_instant_eft',127 'bobpay_capitec_pay',128 'bobpay_scan_to_pay',129 );130 131 foreach ($payment_methods as $payment_method) {132 $settings = get_option('woocommerce_' . $payment_method . '_settings');133 if (!empty($settings)) {134 continue;135 }136 137 $settings = get_option('woocommerce_bobpay_settings');138 if (!empty($settings)) {139 update_option('woocommerce_' . $payment_method . '_settings', $settings);140 }141 }142 }143 add_action('init', 'populate_empty_settings'); -
bob-pay/trunk/build/js/frontend/index.asset.php
r3033006 r3033055 1 <?php return array('dependencies' => array('wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-html-entities'), 'version' => ' fad5407c76547eca00a39b63d12c8ded');1 <?php return array('dependencies' => array('wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-html-entities'), 'version' => 'd108c06a647d7dbcf9335dd4aa826233'); -
bob-pay/trunk/build/js/frontend/index.js
r3033006 r3033055 1 !function(e){var t={};function r(n){if(t[n])return t[n].exports;var l=t[n]={i:n,l:!1,exports:{}};return e[n].call(l.exports,l,l.exports,r),l.l=!0,l.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)r.d(n,l,function(t){return e[t]}.bind(null,l));return n},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=4)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wc.wcBlocksRegistry},function(e,t){e.exports=window.wc.wcSettings},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,r){"use strict";r.r(t);var n=r(0),l=r(1),a=r( 3),c=r(2);const i=Object(c.getSetting)("bobpay_data",{}),s=Object(c.getSetting)("bobpay_credit_card_data",{}),p=Object(c.getSetting)("bobpay_scan_to_pay_data",{}),b=Object(c.getSetting)("bobpay_capitec_pay_data",{}),m=Object(c.getSetting)("bobpay_instant_eft_data",{}),o=Object(a.decodeEntities)(i.title)||"Bob Pay",u=()=>Object(a.decodeEntities)(i.description||""),g={name:"bobpay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:i.logo_url,width:70,style:{margin:0}}),i.title," - ",Object(n.createElement)("img",{style:{height:"21px",margin:0},src:i.absa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.bank_zero_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.capitec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.discovery_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.fnb_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.investec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.nedbank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.standard_bank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.tyme_bank_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:i.supports}};Object(l.registerPaymentMethod)(g);const y={name:"bobpay_credit_card",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:s.logo_url,width:70,style:{margin:0}}),s.title," - ",Object(n.createElement)("img",{style:{height:"15px"},src:s.visa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:s.mastercard_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:i.supports}};Object(l.registerPaymentMethod)(y);const d={name:"bobpay_scan_to_pay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:p.logo_url,width:70,style:{margin:0}}),p.title," - ",Object(n.createElement)("img",{style:{height:"20px"},src:p.scan_to_pay_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:p.supports}};Object(l.registerPaymentMethod)(d);const j={name:"bobpay_capitec_pay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:b.logo_url,width:70,style:{margin:0}}),b.title," - ",Object(n.createElement)("img",{style:{height:"20px"},src:b.capitec_pay_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:b.supports}};Object(l.registerPaymentMethod)(j);const O={name:"bobpay_instant_eft",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:m.logo_url,width:70,style:{margin:0}}),m.title," - ",Object(n.createElement)("img",{style:{height:"21px",margin:0},src:m.absa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.bank_zero_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.capitec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.discovery_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.fnb_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.investec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.nedbank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.standard_bank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.tyme_bank_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:m.supports}};Object(l.registerPaymentMethod)(O)}]);1 !function(e){var t={};function r(n){if(t[n])return t[n].exports;var l=t[n]={i:n,l:!1,exports:{}};return e[n].call(l.exports,l,l.exports,r),l.l=!0,l.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)r.d(n,l,function(t){return e[t]}.bind(null,l));return n},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=4)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wc.wcBlocksRegistry},function(e,t){e.exports=window.wc.wcSettings},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,r){"use strict";r.r(t);var n=r(0),l=r(1),a=r(2),c=r(3);const i=Object(a.getSetting)("bobpay_data",{}),s=Object(a.getSetting)("bobpay_credit_card_data",{}),p=Object(a.getSetting)("bobpay_scan_to_pay_data",{}),b=Object(a.getSetting)("bobpay_capitec_pay_data",{}),m=Object(a.getSetting)("bobpay_instant_eft_data",{}),o=Object(c.decodeEntities)(i.title)||"Bob Pay",u=()=>Object(c.decodeEntities)(i.description||""),g={name:"bobpay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:i.logo_url,width:70,style:{margin:0}}),i.title," - ",Object(n.createElement)("img",{style:{height:"21px",margin:0},src:i.absa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.bank_zero_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.capitec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.discovery_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.fnb_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.investec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.nedbank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.standard_bank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:i.tyme_bank_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:i.supports}};Object(l.registerPaymentMethod)(g);const y={name:"bobpay_credit_card",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:s.logo_url,width:70,style:{margin:0}}),s.title," - ",Object(n.createElement)("img",{style:{height:"15px"},src:s.visa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:s.mastercard_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:i.supports}};Object(l.registerPaymentMethod)(y);const d={name:"bobpay_scan_to_pay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:p.logo_url,width:70,style:{margin:0}}),p.title," - ",Object(n.createElement)("img",{style:{height:"20px"},src:p.scan_to_pay_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:p.supports}};Object(l.registerPaymentMethod)(d);const j={name:"bobpay_capitec_pay",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:b.logo_url,width:70,style:{margin:0}}),b.title," - ",Object(n.createElement)("img",{style:{height:"20px"},src:b.capitec_pay_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:b.supports}};Object(l.registerPaymentMethod)(j);const O={name:"bobpay_instant_eft",label:Object(n.createElement)(()=>Object(n.createElement)("span",{style:{display:"inline-flex",width:"80%",gridGap:"3px",alignItems:"center",flexWrap:"wrap"}},Object(n.createElement)("img",{src:m.logo_url,width:70,style:{margin:0}}),m.title," - ",Object(n.createElement)("img",{style:{height:"21px",margin:0},src:m.absa_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.bank_zero_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.capitec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.discovery_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.fnb_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.investec_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.nedbank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.standard_bank_url}),Object(n.createElement)("img",{style:{height:"20px"},src:m.tyme_bank_url})),null),content:Object(n.createElement)(u,null),edit:Object(n.createElement)(u,null),canMakePayment:()=>!0,ariaLabel:o,supports:{features:m.supports}};Object(l.registerPaymentMethod)(O)}]); -
bob-pay/trunk/readme.txt
r3033043 r3033055 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 7.0.0 7 Stable tag: 1.0.1 47 Stable tag: 1.0.16 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 1.0.14 = 53 Bug fix 54 55 = 1.0.13 = 52 = 1.0.15 = 56 53 Bug fix 57 54 -
bob-pay/trunk/resources/js/frontend/index.js
r3033006 r3033055 1 1 import { registerPaymentMethod } from "@woocommerce/blocks-registry"; 2 import { getSetting } from "@woocommerce/settings"; 2 3 import { decodeEntities } from "@wordpress/html-entities"; 3 import { getSetting } from "@woocommerce/settings";4 4 5 5 const settings = getSetting("bobpay_data", {}); … … 66 66 }} 67 67 > 68 <img src={creditCardSettings.logo_url} width={70} style={{ margin: 0 }} /> 68 <img 69 src={creditCardSettings.logo_url} 70 width={70} 71 style={{ margin: 0 }} 72 /> 69 73 {creditCardSettings.title} - 70 74 <img style={{ height: "15px" }} src={creditCardSettings.visa_url} /> 71 <img style={{ height: "20px" }} src={creditCardSettings.mastercard_url} /> 72 </span> 73 ); 74 } 75 <img 76 style={{ height: "20px" }} 77 src={creditCardSettings.mastercard_url} 78 /> 79 </span> 80 ); 81 }; 75 82 const BobPayCreditCard = { 76 83 name: "bobpay_credit_card", … … 97 104 }} 98 105 > 99 <img src={scanToPaySettings.logo_url} width={70} style={{ margin: 0 }} /> 106 <img 107 src={scanToPaySettings.logo_url} 108 width={70} 109 style={{ margin: 0 }} 110 /> 100 111 {scanToPaySettings.title} - 101 <img style={{ height: "20px" }} src={scanToPaySettings.scan_to_pay_url} /> 102 </span> 103 ); 104 } 112 <img 113 style={{ height: "20px" }} 114 src={scanToPaySettings.scan_to_pay_url} 115 /> 116 </span> 117 ); 118 }; 105 119 const BobPayScanToPay = { 106 120 name: "bobpay_scan_to_pay", … … 127 141 }} 128 142 > 129 <img src={capitecPaySettings.logo_url} width={70} style={{ margin: 0 }} /> 143 <img 144 src={capitecPaySettings.logo_url} 145 width={70} 146 style={{ margin: 0 }} 147 /> 130 148 {capitecPaySettings.title} - 131 <img style={{ height: "20px" }} src={capitecPaySettings.capitec_pay_url} /> 132 </span> 133 ); 134 } 149 <img 150 style={{ height: "20px" }} 151 src={capitecPaySettings.capitec_pay_url} 152 /> 153 </span> 154 ); 155 }; 135 156 const BobPayCapitecPay = { 136 157 name: "bobpay_capitec_pay", … … 157 178 }} 158 179 > 159 <img src={instantEFTSettings.logo_url} width={70} style={{ margin: 0 }} /> 180 <img 181 src={instantEFTSettings.logo_url} 182 width={70} 183 style={{ margin: 0 }} 184 /> 160 185 {instantEFTSettings.title} - 161 186 <img … … 163 188 src={instantEFTSettings.absa_url} 164 189 /> 165 <img style={{ height: "20px" }} src={instantEFTSettings.bank_zero_url} /> 166 <img style={{ height: "20px" }} src={instantEFTSettings.capitec_url} /> 167 <img style={{ height: "20px" }} src={instantEFTSettings.discovery_url} /> 190 <img 191 style={{ height: "20px" }} 192 src={instantEFTSettings.bank_zero_url} 193 /> 194 <img 195 style={{ height: "20px" }} 196 src={instantEFTSettings.capitec_url} 197 /> 198 <img 199 style={{ height: "20px" }} 200 src={instantEFTSettings.discovery_url} 201 /> 168 202 <img style={{ height: "20px" }} src={instantEFTSettings.fnb_url} /> 169 <img style={{ height: "20px" }} src={instantEFTSettings.investec_url} /> 170 <img style={{ height: "20px" }} src={instantEFTSettings.nedbank_url} /> 171 <img style={{ height: "20px" }} src={instantEFTSettings.standard_bank_url} /> 172 <img style={{ height: "20px" }} src={instantEFTSettings.tyme_bank_url} /> 173 </span> 174 ); 175 } 203 <img 204 style={{ height: "20px" }} 205 src={instantEFTSettings.investec_url} 206 /> 207 <img 208 style={{ height: "20px" }} 209 src={instantEFTSettings.nedbank_url} 210 /> 211 <img 212 style={{ height: "20px" }} 213 src={instantEFTSettings.standard_bank_url} 214 /> 215 <img 216 style={{ height: "20px" }} 217 src={instantEFTSettings.tyme_bank_url} 218 /> 219 </span> 220 ); 221 }; 176 222 const BobPayInstantEFT = { 177 223 name: "bobpay_instant_eft",
Note: See TracChangeset
for help on using the changeset viewer.