Plugin Directory

Changeset 3122840


Ignore:
Timestamp:
07/22/2024 01:05:31 AM (21 months ago)
Author:
boldpay
Message:

Added fail reason for failed transaction

Location:
bold-pay/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bold-pay/trunk/index.php

    r3085367 r3122840  
    44 * Plugin URI: https://boldpay.cc/login
    55 * Description: BOLD.Pay is a cloud-based multi-channel payment access plugin for WooCommerce.
    6  * Version: 1.5.6
     6 * Version: 1.5.7
    77 * Author: MACROKIOSK
    88 * Author URI: https://www.macrokiosk.com/
    99 * WooCommerce requires at least: 2.6.0
    10  * WooCommerce tested up to: 8.8.3
     10 * WooCommerce tested up to: 9.0.2
    1111 **/
    1212
  • bold-pay/trunk/readme.txt

    r3085367 r3122840  
    22Tags: Payment Gateway, Online Banking, e-wallet, payment request, credit card, grabpay, boost, boostpay, touch n go, touchngo, secured, debit card, card, direct carrier billing, multi channel payment, payment plugin, free, MACROKIOSK
    33Requires at least: 5.2.1
    4 Tested up to: 6.5.3
     4Tested up to: 6.5.5
    55WooCommerce requires at least: 2.6.0
    6 WooCommerce tested up to: 8.8.3
    7 Stable tag: 1.5.6
     6WooCommerce tested up to: 9.0.2
     7Stable tag: 1.5.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • bold-pay/trunk/src/boldpay.php

    r2857526 r3122840  
    287287                                                                   
    288288                            $order->update_status( 'failed' );                             
    289                             $order->add_order_note( 'Payment failed made through BOLD.Pay. Transaction ID is ' . sanitize_text_field( $_REQUEST['TransactionID'] ));                               
     289                            if ( isset( $_REQUEST['Reason'] ) ){
     290                                $order->add_order_note( sanitize_text_field( $_REQUEST['Reason'] ) . '. Transaction ID is ' . sanitize_text_field( $_REQUEST['TransactionID'] ));                               
     291                            }
     292                            else{
     293                                $order->add_order_note( 'Payment failed made through BOLD.Pay. Transaction ID is ' . sanitize_text_field( $_REQUEST['TransactionID'] ));                               
     294                            }
    290295                           
    291296                            if ( $is_callback ) {
Note: See TracChangeset for help on using the changeset viewer.