Skip to content

Commit

Permalink
Merge pull request #39 from kkiapay/fix/hpos-block-support
Browse files Browse the repository at this point in the history
fix(front): add support to hpos block
  • Loading branch information
asaje379 authored Mar 3, 2024
2 parents 7cbe95b + b465c96 commit f2855ed
Show file tree
Hide file tree
Showing 26 changed files with 20,191 additions and 744 deletions.
Binary file removed .DS_Store
Binary file not shown.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
vendor/
.idea/
.idea/
.DS_Store
._.DS_Store
node_modules
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Kkiapay

[![Build Status](https://travis-ci.org/kkiapay/wordpress-plugin.svg?branch=master)](https://travis-ci.org/kkiapay/wordpress-plugin)

KkiaPay allows businesses to safely receive payments by mobile money, credit card and bank account.

Kkiapay is developer friendly solution that allows you to accept mobile money and credit card, and direct bank payments in your application or website. Before using this plugin, make sure you have a right Merchant Account on Kkiapay, otherwise go and create your account. It is free and without pain.

KKIAPAY is available in:

* Benin
* Senegal [WIP]
* Côte d'Ivoire
* Togo
* Senegal
* [More details at ](https://kkiapay.me/features/supported-countries)

## Installation
Expand Down
9 changes: 9 additions & 0 deletions admin/kkiapay-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,14 @@
'type' => 'text',
'desc_tip' => true,
'description' => __('When Kkiapay payment form is displayed directly on your site, you can choose the widget color (eg: red) according to your website colors. ', 'kkiapay-woocommerce')
),
'refund' => array(
'title' => __('Refund', 'kkiapay-woocommerce'),
'label' => __('Enable/Disable refund', 'kkiapay-woocommerce'),
'default' => 'false',
'type' => 'checkbox',
'desc_tip' => true,
'description' => __('Kkiapay does not support multiple refunds. This means that a refund for one order will refund the full amount to the customer.', 'kkiapay-woocommerce')
)

);
637 changes: 335 additions & 302 deletions assets/img/kkiapay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/js/admin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
window.addEventListener("load",function () {
const color_input = document.querySelector("#woocommerce_kkiapay_woocommerce_plugin_theme");
color_input.className += "jscolor"
if (color_input) color_input.className += "jscolor"

});
5 changes: 3 additions & 2 deletions assets/js/invoke.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
document.addEventListener('DOMContentLoaded', function () {
const button = document.querySelector('#wc__kkiapay-button');

inputs.sandbox = inputs.testmode === "yes";
inputs.sandbox = inputs.sandbox === "1";
inputs.paymentmethod = [inputs.paymentmethod];

button.addEventListener('click', function (event) {
event.preventDefault();

inputs.sdk = 'woocommerce';
window.openKkiapayWidget(inputs);

let redirectionStart = false;

// If redirection is not trigger by the iframe trigger it manually after 5s
window.addSuccessListener((data) => {
setTimeout(() => {
if (!redirectionStart) {
Expand Down
1 change: 1 addition & 0 deletions build/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('react', 'wp-html-entities'), 'version' => '9b874090de658be21261');
149 changes: 149 additions & 0 deletions build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions composer.json

This file was deleted.

Loading

0 comments on commit f2855ed

Please sign in to comment.