Plugin Directory

Changeset 2843203


Ignore:
Timestamp:
01/04/2023 06:32:27 AM (3 years ago)
Author:
hoangweb
Message:

update of my plugin

Location:
qh-testpay
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • qh-testpay/tags/1.0.1/inc/class-qhpay-admin-page.php

    r2771861 r2843203  
    261261                                </select>
    262262                            </td>
    263                         <tr>
     263                        </tr>
     264                        <tr>
     265                            <th scope="row"><?php echo __('Webhook', 'qh-testpay') ?></th>
     266                            <td>
     267                                <input type="text" name="settings[webhook]" id="webhook" value="<?php echo isset($settings['webhook'])? $settings['webhook']:'' ?>"/>
     268                            </td>
     269                        </tr>
    264270                        <tr>
    265271                            <th scope="row"><?php echo __('Auto check user paid', 'qh-testpay') ?></th>
  • qh-testpay/tags/1.0.1/qh-testpay.php

    r2771861 r2843203  
    22
    33/**
    4  * Plugin Name: Thanh Toán Quét Mã QR Code Tự Động cho WooCommerce
     4 * Plugin Name: Thanh Toán Quét Mã QR Code Tự Động cho E-commerce
    55 * Plugin URI: https://tichhopthanhtoan.dev4vn.com
    66 * Description: Tự động xác nhận thanh toán quét mã QR Code MoMo, ViettelPay, VNPay, Vietcombank, Vietinbank, Techcombank, MB, ACB, VPBank, TPBank..
     
    99 * Text Domain: qh-testpay
    1010 * Domain Path: /languages
    11  * Version: 1.0.1
     11 * Version: 1.0.2
    1212 * License: GNU General Public License v3.0
    1313 */
     
    616616            if(empty($result['error'])) break;
    617617        }
     618        //other webhook
     619        if(!empty($this->settings['webhook']) && filter_var($this->settings['webhook'], FILTER_VALIDATE_URL)) {
     620            $resp = wp_remote_post ($this->settings['webhook'], [
     621                'method' => 'POST',
     622                'timeout' => 45,
     623                'redirection' => 5,
     624                'httpversion' => '1.0',
     625                'blocking' => false,//true
     626                'headers' => array('Content-Type: application/json'),
     627                'sslverify' => false,
     628                'body'=> $txtBody,//json_decode($txtBody,true)
     629            ]);
     630            if ( is_wp_error( $resp ) ) $result['msg'][] = $resp->get_error_message();
     631        }
     632        //end
    618633        $result['msg'] = join(". ", $result['msg']);
    619634        wp_send_json($result);
  • qh-testpay/tags/1.0.1/readme.txt

    r2766851 r2843203  
    44 - Tags: woocommerce, payment gateway, gateway, ket noi ngan hang, vietcombank, techcombank, plugin thanh toan, acb, ocb, msb, scb, shb, mbbank, sacombank, vpbank, hdbank, momo, viettelpay, vnpay, vietinbank, bidv, agribank, vib, abbank, bac a bank, eximbank, nam a bank, ncb, seabank, lienvietpostbank, viet capital bank, timo, timo plus, cake, tnex, MoMo, thanh toán momo, quét mã qr, quét qr code, ViettelPay, VNPay, thanh toán ngân hàng, Vietcombank, VietinBank, Techcombank, MB, ACB, VPBank, BIDV, TPBank, HDBank, Agribank, VIB, Sacombank, OCB, MSB, LienVietPostBank, Viet Capital Bank, Timo, Cake, TNEX
    55 - Requires WooCommerce at least: 2.1
    6  - Stable Tag: 1.0.1
    7  - Version: 1.0.1
    8  - Tested up to: 6.0.0
     6 - Stable Tag: 1.0.2
     7 - Version: 1.0.2
     8 - Tested up to: 6.0.2
    99 - Author URI: https://dev4vn.com
    1010 - Plugin URI: https://tichhopthanhtoan.dev4vn.com/
  • qh-testpay/trunk/inc/class-qhpay-admin-page.php

    r2771861 r2843203  
    261261                                </select>
    262262                            </td>
    263                         <tr>
     263                        </tr>
     264                        <tr>
     265                            <th scope="row"><?php echo __('Webhook', 'qh-testpay') ?></th>
     266                            <td>
     267                                <input type="text" name="settings[webhook]" id="webhook" value="<?php echo isset($settings['webhook'])? $settings['webhook']:'' ?>"/>
     268                            </td>
     269                        </tr>
    264270                        <tr>
    265271                            <th scope="row"><?php echo __('Auto check user paid', 'qh-testpay') ?></th>
  • qh-testpay/trunk/qh-testpay.php

    r2782874 r2843203  
    616616            if(empty($result['error'])) break;
    617617        }
     618        //other webhook
     619        if(!empty($this->settings['webhook']) && filter_var($this->settings['webhook'], FILTER_VALIDATE_URL)) {
     620            $resp = wp_remote_post ($this->settings['webhook'], [
     621                'method' => 'POST',
     622                'timeout' => 45,
     623                'redirection' => 5,
     624                'httpversion' => '1.0',
     625                'blocking' => false,//true
     626                'headers' => array('Content-Type: application/json'),
     627                'sslverify' => false,
     628                'body'=> $txtBody,//json_decode($txtBody,true)
     629            ]);
     630            if ( is_wp_error( $resp ) ) $result['msg'][] = $resp->get_error_message();
     631        }
     632        //end
    618633        $result['msg'] = join(". ", $result['msg']);
    619634        wp_send_json($result);
Note: See TracChangeset for help on using the changeset viewer.