Plugin Directory

Changeset 3269412


Ignore:
Timestamp:
04/09/2025 07:42:14 AM (12 months ago)
Author:
mustangpay
Message:

Initial plugin release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mustangpay/trunk/src/MustangpayApiUtilsV1.php

    r3269356 r3269412  
    126126            $mode=$config->get_option('mode');
    127127            if($mode=='test'){
    128                 if (empty($config->get_option('mustangPayPublicKey_test'))) {
    129                     wp_send_json_error(array('message' => __( 'Please configure mustangPayPublicKey_test', 'mustangpay' )));
    130                 }
     128               
    131129               
    132130                if (empty($config->get_option('rsaPrivateKey_test'))) {
     
    134132                }
    135133               
    136                 if (empty($config->get_option('rsaPublicKey_test'))) {
    137                     wp_send_json_error(array('message' => __( 'Please configure rsaPublicKey_test', 'mustangpay' )));
    138                 }
     134               
    139135            }else{
    140                if (empty($config->get_option('mustangPayPublicKey'))) {
    141                 wp_send_json_error(array('message' => __( 'Please configure mustangPayPublicKey', 'mustangpay' )));
    142                 }
    143                
     136               
    144137                if (empty($config->get_option('rsaPrivateKey'))) {
    145138                    wp_send_json_error(array('message' => __( 'Please configure rsaPrivateKey', 'mustangpay' )));
    146139                }
    147140               
    148                 if (empty($config->get_option('rsaPublicKey'))) {
    149                     wp_send_json_error(array('message' => __( 'Please configure rsaPublicKey', 'mustangpay' )));
    150                 }
     141               
    151142            }
    152143           
Note: See TracChangeset for help on using the changeset viewer.