Skip to content

Commit

Permalink
Merge pull request #78 from PTNUSASATUINTIARTHA-DOKU/revision-2
Browse files Browse the repository at this point in the history
Update readme.txt for release 1.3.17
  • Loading branch information
rafidoku authored Dec 20, 2024
2 parents 2f1f813 + 1f8d732 commit 4ea0fb8
Show file tree
Hide file tree
Showing 23 changed files with 176 additions and 417 deletions.
6 changes: 3 additions & 3 deletions woo-doku-jokul/Block/DokuCheckoutBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
final class Doku_Checkout_Blocks extends AbstractPaymentMethodType {

private $gateway;
protected $name = 'jokul_checkout';
protected $name = 'doku_checkout';

public function initialize() {
$this->settings = get_option('woocommerce_jokul_gateway_settings');
$this->gateway = new JokulCheckoutModule();
$this->settings = get_option('woocommerce_doku_gateway_settings');
$this->gateway = new DokuCheckoutModule();
}

public function is_active() {
Expand Down
4 changes: 2 additions & 2 deletions woo-doku-jokul/Common/JokulConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if ( ! defined( 'ABSPATH' ) ) exit;

class JokulConfig {
class DokuConfig {

const SANDBOX_BASE_URL = 'https://api-sandbox.doku.com';
const PRODUCTION_BASE_URL = 'https://api.doku.com';
Expand All @@ -12,7 +12,7 @@ class JokulConfig {
*/
public function getBaseUrl($state)
{
return $state ? JokulConfig::PRODUCTION_BASE_URL : JokulConfig::SANDBOX_BASE_URL;
return $state ? DokuConfig::PRODUCTION_BASE_URL : DokuConfig::SANDBOX_BASE_URL;
}
}

2 changes: 1 addition & 1 deletion woo-doku-jokul/Common/JokulDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if ( ! defined( 'ABSPATH' ) ) exit;

class JokulDb {
class DokuDB {

function addData($datainsert) {
global $wpdb;
Expand Down
2 changes: 1 addition & 1 deletion woo-doku-jokul/Common/JokulUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

define("DOKU_PAYMENT_HTML_EMAIL_HEADERS", array('Content-Type: text/html; charset=UTF-8'));

class JokulUtils
class DokuUtils
{
public function generateSignatureCheckStatus($headers, $secret)
{
Expand Down
28 changes: 0 additions & 28 deletions woo-doku-jokul/Form/JokulAlfaO2OSetting.php

This file was deleted.

22 changes: 0 additions & 22 deletions woo-doku-jokul/Form/JokulBcaVaSetting.php

This file was deleted.

22 changes: 0 additions & 22 deletions woo-doku-jokul/Form/JokulBriVaSetting.php

This file was deleted.

22 changes: 0 additions & 22 deletions woo-doku-jokul/Form/JokulBsmVaSetting.php

This file was deleted.

2 changes: 1 addition & 1 deletion woo-doku-jokul/Form/JokulCheckoutSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if ( ! defined( 'ABSPATH' ) ) exit;

return apply_filters(
'jokul_checkout_settings',
'doku_checkout_settings',
array(
'channel_name' => array(
'title' => __('Payment Channel Display Name', 'doku-payment'),
Expand Down
2 changes: 1 addition & 1 deletion woo-doku-jokul/Form/JokulCreditCardSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if ( ! defined( 'ABSPATH' ) ) exit;

return apply_filters(
'jokul_credit_card_settings',
'doku_credit_card_settings',
array(
'channel_name' => array(
'title' => __('Payment Channel Display Name', 'doku-payment'),
Expand Down
23 changes: 0 additions & 23 deletions woo-doku-jokul/Form/JokulDokuVaSetting.php

This file was deleted.

22 changes: 0 additions & 22 deletions woo-doku-jokul/Form/JokulMandiriVaSetting.php

This file was deleted.

22 changes: 0 additions & 22 deletions woo-doku-jokul/Form/JokulPermataVaSetting.php

This file was deleted.

2 changes: 1 addition & 1 deletion woo-doku-jokul/Form/JokulPgSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if ( ! defined( 'ABSPATH' ) ) exit;

return apply_filters(
'jokul_payment_gateway_settings',
'doku_gateway_settings',
array(
'enabled' => array(
'title' => __('Enable :', 'doku-payment'),
Expand Down
8 changes: 4 additions & 4 deletions woo-doku-jokul/Js/checkout.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const settings = window.wc.wcSettings.getSetting( 'jokul_checkout_data', {} );
const label = window.wp.htmlEntities.decodeEntities( settings.title ) || window.wp.i18n.__( 'DOKU', 'jokul_checkout' );
const settings = window.wc.wcSettings.getSetting( 'doku_checkout_data', {} );
const label = window.wp.htmlEntities.decodeEntities( settings.title ) || window.wp.i18n.__( 'DOKU', 'doku_checkout' );
const Content = () => {
return window.wp.htmlEntities.decodeEntities( settings.description || window.wp.i18n.__( 'Bayar Pesanan Dengan DOKU Checkout', 'jokul_checkout' ) );
return window.wp.htmlEntities.decodeEntities( settings.description || window.wp.i18n.__( 'Bayar Pesanan Dengan DOKU Checkout', 'doku_checkout' ) );
};
const Block_Gateway = {
name: 'jokul_checkout',
name: 'doku_checkout',
label: label,
content: Object( window.wp.element.createElement )( Content, null ),
edit: Object( window.wp.element.createElement )( Content, null ),
Expand Down
Loading

0 comments on commit 4ea0fb8

Please sign in to comment.