Plugin Directory

Changeset 3055598


Ignore:
Timestamp:
03/20/2024 08:02:58 PM (2 years ago)
Author:
aescobar0
Message:

fix: test env

Location:
zafepay
Files:
15 added
1 edited

Legend:

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

    r3046572 r3055598  
    2424    $this->api_key = $this->testmode ? $this->get_option('test_api_key') : $this->get_option('api_key');
    2525    $this->api_secret = $this->testmode ? $this->get_option('test_api_secret') : $this->get_option('api_secret');
    26     $this->base_url = $this->testmode ? 'http://localhost:3000/api' : 'https://api.zafepay.com/api';
     26    $this->base_url = $this->testmode ? 'http://api.staging.zafepay.com/api' : 'https://api.zafepay.com/api';
    2727
    2828    add_action('woocommerce_update_options_payment_gateways_' . $this->id, array($this, 'process_admin_options'));
Note: See TracChangeset for help on using the changeset viewer.