Plugin Directory

Changeset 2509001


Ignore:
Timestamp:
04/04/2021 03:13:19 PM (5 years ago)
Author:
hasanayoub
Message:

enhanced performance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • paylink/trunk/paylink.php

    r2453776 r2509001  
    1 <?php /** @noinspection PhpUndefinedMethodInspection */
     1<?php
     2/** @noinspection PhpUndefinedMethodInspection */
    23/** @noinspection PhpUndefinedConstantInspection */
    34
     
    67Plugin Name: Paylink
    78Description: Use this woocommerce payment gateway plugin to enable clients of your store to pay using Paylink gateway.
    8 Version: 1.03
     9Version: 1.04
    910Author: Paylink Co
    1011text-domain: paylink
     
    4041        public function __construct()
    4142        {
     43
    4244            load_plugin_textdomain('paylink', false, 'paylink_wc_payment_gateway/languages');
    4345
     
    6264            } else {
    6365                $this->base_server_url = 'https://restapi.paylink.sa';
    64 //                $this->base_server_url = 'https://stageapi.paylink.sa';
    6566            }
    6667            $this->getInvoiceUrl = $this->base_server_url . '/api/getInvoice';
     
    213214            try {
    214215                $response = wp_safe_remote_post($this->addInvoiceUrl, $parameter);
    215                 return sanitize_text_field(json_decode($response['body'])->url);
     216                return json_decode($response['body'])->url;
    216217            } catch (Exception $exception) {
    217218                error_log(print_r($exception, true));
     
    240241                    'body' => wp_json_encode($login_parameter),
    241242                ]);
    242                 return sanitize_text_field(json_decode($login_response['body'])->id_token);
     243                return json_decode($login_response['body'])->id_token;
    243244
    244245            } catch (Exception $ex) {
Note: See TracChangeset for help on using the changeset viewer.