Plugin Directory

Changeset 2739476


Ignore:
Timestamp:
06/08/2022 08:28:11 PM (4 years ago)
Author:
bixbcoin
Message:

Fixed some issues

Location:
bixb-gateway/trunk
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • bixb-gateway/trunk/bixb-payment-gateway.php

    r2726083 r2739476  
    44 * Plugin URI: https://bix-team.info/bixb-wordpress-gateway
    55 * Description: Bixb payment gateway
    6  * Version: 1.0
     6 * Version: 1.1
    77 * Author: BixB Developer
    88 * Author URI: https://bix-team.info
  • bixb-gateway/trunk/readme.txt

    r2726083 r2739476  
    44Tags: API, coding, Paymentgateway, bixbpay
    55Requires at least: 4.5
    6 Tested up to: 5.9
     6Tested up to: 6.0
    77Stable tag: 1.0
    88Requires PHP: 5.6
  • bixb-gateway/trunk/src/class-gateway-bixb.php

    r2726083 r2739476  
    11<?php
    2 /*
    3  * This action hook registers our PHP class as a WooCommerce payment gateway
    4  */
     2
    53add_filter( 'woocommerce_payment_gateways', 'bixb_add_gateway_class' );
    64function bixb_add_gateway_class( $gateways ) {
    7     $gateways[] = 'WC_Bixb_Gateway'; // your class name is here
     5    $gateways[] = 'Bixb_Gateway'; // your class name is here
    86    return $gateways;
    97}
     
    1614function bixb_init_gateway_class() {
    1715
    18     class WC_Bixb_Gateway extends WC_Payment_Gateway {
     16    class Bixb_Gateway extends WC_Payment_Gateway {
    1917
    2018        /**
     
    324322                return;
    325323           
    326             $address = WC_Bixb_Gateway::get_order_address($order_id);
    327             $amount = WC_Bixb_Gateway::get_bixb_total( $order_id );
     324            $address = Bixb_Gateway::get_order_address($order_id);
     325            $amount = Bixb_Gateway::get_bixb_total( $order_id );
    328326            ?>
    329327                <h4 style="text-align: center;"><?php esc_html_e( $this->transaction_note_prefix ); ?> <code><?php esc_html_e( $address ); ?></code><br>
    330328            Amount of bixb You should send: <?php esc_html_e( $amount ); ?> <br>
    331             <?php _e( WC_Bixb_Gateway::get_qr_image($address, $amount) ); ?></h4>
     329            <?php _e( Bixb_Gateway::get_qr_image($address, $amount) ); ?></h4>
    332330            <?php
    333331        }
Note: See TracChangeset for help on using the changeset viewer.