Plugin Directory

Changeset 3024402


Ignore:
Timestamp:
01/20/2024 09:12:58 AM (2 years ago)
Author:
zify
Message:

Update class-wc-gateway-zify.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zify-gateway/trunk/class-wc-gateway-zify.php

    r3022799 r3024402  
    1212        public function __construct(){
    1313           
    14             $this->id = 'zify_woo';
     14            $this->id = 'zifyWoo';
    1515            $this->method_title = __('پرداخت از طریق درگاه زیفای', 'woocommerce');
    1616            $this->method_description = __('تنظیمات درگاه پرداخت زیفای برای افزونه فروشگاه ساز ووکامرس', 'woocommerce');
     
    159159                'br' => array(),
    160160            ));
    161            
     161            //echo $form;
    162162            do_action('zify_woo_Gateway_After_Form', $order_id, $woocommerce);
    163163
    164             $CallbackUrl = add_query_arg('wc_order', $order_id, WC()->api_request_url('zify_woo'));
     164            $CallbackUrl = add_query_arg('wc_order', $order_id, WC()->api_request_url('zifyWoo'));
    165165
    166166            $products = array();
     
    287287                        update_post_meta($order_id, '_zify_orderCode', $order_code );
    288288                        $Note = 'ساخت موفق پرداخت، کد پرداخت: '.$order_code;
    289                         $order->add_order_note($Note, 1, false);
     289                        //$order->add_order_note($Note, 1, false);
    290290                        wp_redirect(sprintf('%s/order/accept/%s', $this->baseurl, $order_code));
    291291                        exit;
     
    392392                        $Fault = 'پرداخت ناموفق بود.';
    393393                    }
     394                   
    394395                }
    395396               
Note: See TracChangeset for help on using the changeset viewer.