-
\ No newline at end of file
+
diff --git a/app/code/Payfast/Payfast/view/frontend/templates/html/rk.phtml b/app/code/Payfast/Payfast/view/frontend/templates/html/rk.phtml
index 6d399c4..f3c4799 100644
--- a/app/code/Payfast/Payfast/view/frontend/templates/html/rk.phtml
+++ b/app/code/Payfast/Payfast/view/frontend/templates/html/rk.phtml
@@ -1,11 +1,16 @@
-
-
-getSubmitForm(); ?>
+getSubmitForm(); ?>
diff --git a/app/code/Payfast/Payfast/view/frontend/web/css/payfast_checkout.css b/app/code/Payfast/Payfast/view/frontend/web/css/payfast_checkout.css
new file mode 100755
index 0000000..8d72ef5
--- /dev/null
+++ b/app/code/Payfast/Payfast/view/frontend/web/css/payfast_checkout.css
@@ -0,0 +1,3 @@
+img.payment-icon {
+ max-width: 30%;
+}
diff --git a/app/code/Payfast/Payfast/view/frontend/web/images/logo.png b/app/code/Payfast/Payfast/view/frontend/web/images/logo.png
deleted file mode 100644
index a1c64b7..0000000
Binary files a/app/code/Payfast/Payfast/view/frontend/web/images/logo.png and /dev/null differ
diff --git a/app/code/Payfast/Payfast/view/frontend/web/images/logo.svg b/app/code/Payfast/Payfast/view/frontend/web/images/logo.svg
new file mode 100644
index 0000000..8ba1a09
--- /dev/null
+++ b/app/code/Payfast/Payfast/view/frontend/web/images/logo.svg
@@ -0,0 +1,18 @@
+
diff --git a/app/code/Payfast/Payfast/view/frontend/web/js/view/payment/method-renderer/payfast-method.js b/app/code/Payfast/Payfast/view/frontend/web/js/view/payment/method-renderer/payfast-method.js
index 8400c05..6de9d82 100644
--- a/app/code/Payfast/Payfast/view/frontend/web/js/view/payment/method-renderer/payfast-method.js
+++ b/app/code/Payfast/Payfast/view/frontend/web/js/view/payment/method-renderer/payfast-method.js
@@ -1,71 +1,71 @@
/**
- * Copyright (c) 2008 PayFast (Pty) Ltd
- * You (being anyone who is not PayFast (Pty) Ltd) may download and use this plugin / code in your own website in conjunction with a registered and active PayFast account. If your PayFast account is terminated for any reason, you may not use this plugin / code or part thereof.
+ * Copyright (c) 2023 Payfast (Pty) Ltd
+ * You (being anyone who is not Payfast (Pty) Ltd) may download and use this plugin / code in your own website in conjunction with a registered and active Payfast account. If your Payfast account is terminated for any reason, you may not use this plugin / code or part thereof.
* Except as expressly indicated in this licence, you may not use, copy, modify or distribute this plugin / code or part thereof in any way.
*/
define(
- [
- 'jquery',
- 'Magento_Checkout/js/view/payment/default',
- 'Magento_Checkout/js/action/place-order',
- 'Magento_Checkout/js/action/select-payment-method',
- 'Magento_Customer/js/model/customer',
- 'Magento_Checkout/js/checkout-data',
- 'Magento_Checkout/js/model/payment/additional-validators',
- 'mage/url',
- 'Magento_Checkout/js/model/quote',
- 'Magento_Ui/js/view/messages'
- ],
- function ($,
- Component,
- placeOrderAction,
- selectPaymentMethodAction,
- customer,
- checkoutData,
- additionalValidators,
- url,
- quote,
- ) {
- 'use strict';
+ [
+ 'jquery',
+ 'Magento_Checkout/js/view/payment/default',
+ 'Magento_Checkout/js/action/place-order',
+ 'Magento_Checkout/js/action/select-payment-method',
+ 'Magento_Customer/js/model/customer',
+ 'Magento_Checkout/js/checkout-data',
+ 'Magento_Checkout/js/model/payment/additional-validators',
+ 'mage/url',
+ 'Magento_Checkout/js/model/quote',
+ 'Magento_Ui/js/view/messages'
+ ],
+ function ($,
+ Component,
+ placeOrderAction,
+ selectPaymentMethodAction,
+ customer,
+ checkoutData,
+ additionalValidators,
+ url,
+ quote,
+ ) {
+ 'use strict'
- return Component.extend(
- {
- defaults: {
- template: 'Payfast_Payfast/payment/payfast'
- },
- redirectAfterPlaceOrder: false,
+ return Component.extend(
+ {
+ defaults: {
+ template: 'Payfast_Payfast/payment/payfast'
+ },
+ redirectAfterPlaceOrder: false,
- getCode: function () {
- return 'payfast';
- },
- /**
- * Get value of instruction field.
- *
- * @returns {String}
- */
- getInstructions: function () {
- return window.checkoutConfig.payment.instructions[this.item.method];
- },
- isAvailable: function () {
- return quote.totals().grand_total <= 0;
- },
+ getCode: function () {
+ return 'payfast'
+ },
+ /**
+ * Get value of instruction field.
+ *
+ * @returns {String}
+ */
+ getInstructions: function () {
+ return window.checkoutConfig.payment.instructions[this.item.method]
+ },
+ isAvailable: function () {
+ return quote.totals().grand_total <= 0
+ },
- afterPlaceOrder: function () {
- window.location.replace(url.build(window.checkoutConfig.payment.payfast.redirectUrl.payfast));
- },
- /**
- * Returns payment acceptance mark link path
- */
- getPaymentAcceptanceMarkHref: function () {
- return window.checkoutConfig.payment.payfast.paymentAcceptanceMarkHref;
- },
- /**
- * Returns payment acceptance mark image path
- */
- getPaymentAcceptanceMarkSrc: function () {
- return window.checkoutConfig.payment.payfast.paymentAcceptanceMarkSrc;
- },
- }
- );
- }
-);
\ No newline at end of file
+ afterPlaceOrder: function () {
+ window.location.replace(url.build(window.checkoutConfig.payment.payfast.redirectUrl.payfast))
+ },
+ /**
+ * Returns payment acceptance mark link path
+ */
+ getPaymentAcceptanceMarkHref: function () {
+ return window.checkoutConfig.payment.payfast.paymentAcceptanceMarkHref
+ },
+ /**
+ * Returns payment acceptance mark image path
+ */
+ getPaymentAcceptanceMarkSrc: function () {
+ return window.checkoutConfig.payment.payfast.paymentAcceptanceMarkSrc
+ },
+ }
+ )
+ }
+)
diff --git a/app/code/Payfast/Payfast/view/frontend/web/js/view/payment/payfast-payments.js b/app/code/Payfast/Payfast/view/frontend/web/js/view/payment/payfast-payments.js
index fce9fcb..6bf873b 100644
--- a/app/code/Payfast/Payfast/view/frontend/web/js/view/payment/payfast-payments.js
+++ b/app/code/Payfast/Payfast/view/frontend/web/js/view/payment/payfast-payments.js
@@ -1,27 +1,27 @@
/*browser:true*/
/*global define*/
-/*Copyright (c) 2008 PayFast (Pty) Ltd
-You (being anyone who is not PayFast (Pty) Ltd) may download and use this plugin / code in your own website in conjunction with a registered and active PayFast account. If your PayFast account is terminated for any reason, you may not use this plugin / code or part thereof.
+/*Copyright (c) 2023 Payfast (Pty) Ltd
+You (being anyone who is not Payfast (Pty) Ltd) may download and use this plugin / code in your own website in conjunction with a registered and active Payfast account. If your Payfast account is terminated for any reason, you may not use this plugin / code or part thereof.
Except as expressly indicated in this licence, you may not use, copy, modify or distribute this plugin / code or part thereof in any way.*/
define(
- [
- 'uiComponent',
- 'Magento_Checkout/js/model/payment/renderer-list'
- ],
- function (Component,
- rendererList
- ) {
- 'use strict';
+ [
+ 'uiComponent',
+ 'Magento_Checkout/js/model/payment/renderer-list'
+ ],
+ function (Component,
+ rendererList
+ ) {
+ 'use strict'
- rendererList.push(
- {
- type: 'payfast',
- component: 'Payfast_Payfast/js/view/payment/method-renderer/payfast-method'
- }
- );
- /**
- * Add view logic here if needed
- */
- return Component.extend({});
- }
-);
\ No newline at end of file
+ rendererList.push(
+ {
+ type: 'payfast',
+ component: 'Payfast_Payfast/js/view/payment/method-renderer/payfast-method'
+ }
+ )
+ /**
+ * Add view logic here if needed
+ */
+ return Component.extend({})
+ }
+)
diff --git a/app/code/Payfast/Payfast/view/frontend/web/template/payment/payfast.html b/app/code/Payfast/Payfast/view/frontend/web/template/payment/payfast.html
index 3239687..dcf467f 100644
--- a/app/code/Payfast/Payfast/view/frontend/web/template/payment/payfast.html
+++ b/app/code/Payfast/Payfast/view/frontend/web/template/payment/payfast.html
@@ -1,23 +1,25 @@
-