Changeset 2509001
- Timestamp:
- 04/04/2021 03:13:19 PM (5 years ago)
- File:
-
- 1 edited
-
paylink/trunk/paylink.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
paylink/trunk/paylink.php
r2453776 r2509001 1 <?php /** @noinspection PhpUndefinedMethodInspection */ 1 <?php 2 /** @noinspection PhpUndefinedMethodInspection */ 2 3 /** @noinspection PhpUndefinedConstantInspection */ 3 4 … … 6 7 Plugin Name: Paylink 7 8 Description: Use this woocommerce payment gateway plugin to enable clients of your store to pay using Paylink gateway. 8 Version: 1.0 39 Version: 1.04 9 10 Author: Paylink Co 10 11 text-domain: paylink … … 40 41 public function __construct() 41 42 { 43 42 44 load_plugin_textdomain('paylink', false, 'paylink_wc_payment_gateway/languages'); 43 45 … … 62 64 } else { 63 65 $this->base_server_url = 'https://restapi.paylink.sa'; 64 // $this->base_server_url = 'https://stageapi.paylink.sa';65 66 } 66 67 $this->getInvoiceUrl = $this->base_server_url . '/api/getInvoice'; … … 213 214 try { 214 215 $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; 216 217 } catch (Exception $exception) { 217 218 error_log(print_r($exception, true)); … … 240 241 'body' => wp_json_encode($login_parameter), 241 242 ]); 242 return sanitize_text_field(json_decode($login_response['body'])->id_token);243 return json_decode($login_response['body'])->id_token; 243 244 244 245 } catch (Exception $ex) {
Note: See TracChangeset
for help on using the changeset viewer.