Plugin Directory

Changeset 2356760


Ignore:
Timestamp:
08/11/2020 03:25:48 AM (6 years ago)
Author:
boldpay
Message:

Upload Version 1.5.0

Location:
bold-pay
Files:
5 added
2 edited

Legend:

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

    r2317141 r2356760  
    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.3.0
     6 * Version: 1.5.0
    77 * Author: MACROKIOSK
    88 * Author URI: https://www.macrokiosk.com/
  • bold-pay/trunk/src/boldpay.php

    r2340129 r2356760  
    5858                'default'  => __( 'Pay securely with Credit Card, Online Banking & e-wallet through BOLD.Pay (Malaysia Ringgit Only).', 'boldpay' ),
    5959                'css'      => 'max-width:350px;',
    60                 'custom_attributes' => array('readonly' => 'readonly'),
     60                'custom_attributes' => array('required' => 'required'),
    6161            ),
    6262            'user_name' => array(
     
    350350
    351351            $is_callback = isset( $_POST['OrderNumber'] ) ? true : false;
    352 
     352           
    353353            $order = wc_get_order(sanitize_text_field( $_REQUEST['OrderNumber'] ));
    354            
    355             $order->add_order_note( 'Unable connect to BOLD.Pay API. Error code: ' . sanitize_text_field( $_REQUEST['Status'] ));
     354
     355            # if receive (417 - Exceeded transaction limit) remain order status as pending payment 
     356            if ( sanitize_text_field( $_REQUEST['Status'] ) == '417' ) {
     357                $order->add_order_note( 'Payment request rejected. Exceeded transaction limit allowed. Error Code: 417' );
     358            } else {
     359                $order->add_order_note( 'Unable connect to BOLD.Pay API. Error code: ' . sanitize_text_field( $_REQUEST['Status'] ));
     360            }
     361
    356362            add_filter( 'the_content', 'boldpay_payment_fail_connection_msg' );
    357363
Note: See TracChangeset for help on using the changeset viewer.