Plugin Directory

Changeset 2840631


Ignore:
Timestamp:
12/28/2022 08:20:10 PM (3 years ago)
Author:
ventipay
Message:

Update to version 2.0.3 from GitHub

Location:
ventipay
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ventipay/tags/2.0.3/includes/class-wc-gateway-ventipay.php

    r2816251 r2840631  
    127127      );
    128128      $return_url = $this->get_return_url($order);
     129      $cancel_url = $order->get_cancel_order_url();
    129130
    130131      /**
     
    143144            'authorize' => true,
    144145            'currency' => $currency,
    145             'cancel_url' => $return_url,
     146            'cancel_url' => $cancel_url,
    146147            'cancel_url_method' => 'post',
    147148            'items' => array(
     
    243244     * Check if it's a valid order
    244245     */
    245     if (!isset($order) || !$order->get_id()) {
     246    if (!isset($order) || !$order || !is_a($order, 'WC_Order') || !$order->get_id()) {
    246247      header('HTTP/1.1 400 Bad Request (Order ID Not Found)');
    247248      return;
     
    328329  {
    329330    $order = wc_get_order($order_id);
    330     if (isset($order) && ($order->get_id())) {
     331    if (isset($order) && $order && is_a($order, 'WC_Order') && ($order->get_id())) {
    331332      $meta_payment_id = $order->get_meta('ventipay_checkout_id');
    332333      if (!empty($meta_payment_id)) {
  • ventipay/tags/2.0.3/readme.txt

    r2816251 r2840631  
    44Requires at least: 5.7
    55Tested up to: 6.1
    6 Stable tag: 2.0.2
     6Stable tag: 2.0.3
    77Requires PHP: 7.0
    88License: MIT
  • ventipay/tags/2.0.3/ventipay.php

    r2816251 r2840631  
    66 * Author: VentiPay
    77 * Author URI: https://www.ventipay.com/
    8  * Version: 2.0.2
     8 * Version: 2.0.3
    99 * Requires at least: 5.7
    1010 * Tested up to: 6.1
  • ventipay/trunk/includes/class-wc-gateway-ventipay.php

    r2816251 r2840631  
    127127      );
    128128      $return_url = $this->get_return_url($order);
     129      $cancel_url = $order->get_cancel_order_url();
    129130
    130131      /**
     
    143144            'authorize' => true,
    144145            'currency' => $currency,
    145             'cancel_url' => $return_url,
     146            'cancel_url' => $cancel_url,
    146147            'cancel_url_method' => 'post',
    147148            'items' => array(
     
    243244     * Check if it's a valid order
    244245     */
    245     if (!isset($order) || !$order->get_id()) {
     246    if (!isset($order) || !$order || !is_a($order, 'WC_Order') || !$order->get_id()) {
    246247      header('HTTP/1.1 400 Bad Request (Order ID Not Found)');
    247248      return;
     
    328329  {
    329330    $order = wc_get_order($order_id);
    330     if (isset($order) && ($order->get_id())) {
     331    if (isset($order) && $order && is_a($order, 'WC_Order') && ($order->get_id())) {
    331332      $meta_payment_id = $order->get_meta('ventipay_checkout_id');
    332333      if (!empty($meta_payment_id)) {
  • ventipay/trunk/readme.txt

    r2816251 r2840631  
    44Requires at least: 5.7
    55Tested up to: 6.1
    6 Stable tag: 2.0.2
     6Stable tag: 2.0.3
    77Requires PHP: 7.0
    88License: MIT
  • ventipay/trunk/ventipay.php

    r2816251 r2840631  
    66 * Author: VentiPay
    77 * Author URI: https://www.ventipay.com/
    8  * Version: 2.0.2
     8 * Version: 2.0.3
    99 * Requires at least: 5.7
    1010 * Tested up to: 6.1
Note: See TracChangeset for help on using the changeset viewer.