Changeset 2739476
- Timestamp:
- 06/08/2022 08:28:11 PM (4 years ago)
- Location:
- bixb-gateway/trunk
- Files:
-
- 1 added
- 1 deleted
- 3 edited
-
.wordpress-org/banner-772x250.jpg (added)
-
.wordpress-org/banner-772x250.png (deleted)
-
bixb-payment-gateway.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
src/class-gateway-bixb.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bixb-gateway/trunk/bixb-payment-gateway.php
r2726083 r2739476 4 4 * Plugin URI: https://bix-team.info/bixb-wordpress-gateway 5 5 * Description: Bixb payment gateway 6 * Version: 1. 06 * Version: 1.1 7 7 * Author: BixB Developer 8 8 * Author URI: https://bix-team.info -
bixb-gateway/trunk/readme.txt
r2726083 r2739476 4 4 Tags: API, coding, Paymentgateway, bixbpay 5 5 Requires at least: 4.5 6 Tested up to: 5.96 Tested up to: 6.0 7 7 Stable tag: 1.0 8 8 Requires PHP: 5.6 -
bixb-gateway/trunk/src/class-gateway-bixb.php
r2726083 r2739476 1 1 <?php 2 /* 3 * This action hook registers our PHP class as a WooCommerce payment gateway 4 */ 2 5 3 add_filter( 'woocommerce_payment_gateways', 'bixb_add_gateway_class' ); 6 4 function bixb_add_gateway_class( $gateways ) { 7 $gateways[] = ' WC_Bixb_Gateway'; // your class name is here5 $gateways[] = 'Bixb_Gateway'; // your class name is here 8 6 return $gateways; 9 7 } … … 16 14 function bixb_init_gateway_class() { 17 15 18 class WC_Bixb_Gateway extends WC_Payment_Gateway {16 class Bixb_Gateway extends WC_Payment_Gateway { 19 17 20 18 /** … … 324 322 return; 325 323 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 ); 328 326 ?> 329 327 <h4 style="text-align: center;"><?php esc_html_e( $this->transaction_note_prefix ); ?> <code><?php esc_html_e( $address ); ?></code><br> 330 328 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> 332 330 <?php 333 331 }
Note: See TracChangeset
for help on using the changeset viewer.