Changeset 3269412
- Timestamp:
- 04/09/2025 07:42:14 AM (12 months ago)
- File:
-
- 1 edited
-
mustangpay/trunk/src/MustangpayApiUtilsV1.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mustangpay/trunk/src/MustangpayApiUtilsV1.php
r3269356 r3269412 126 126 $mode=$config->get_option('mode'); 127 127 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 131 129 132 130 if (empty($config->get_option('rsaPrivateKey_test'))) { … … 134 132 } 135 133 136 if (empty($config->get_option('rsaPublicKey_test'))) { 137 wp_send_json_error(array('message' => __( 'Please configure rsaPublicKey_test', 'mustangpay' ))); 138 } 134 139 135 }else{ 140 if (empty($config->get_option('mustangPayPublicKey'))) { 141 wp_send_json_error(array('message' => __( 'Please configure mustangPayPublicKey', 'mustangpay' ))); 142 } 143 136 144 137 if (empty($config->get_option('rsaPrivateKey'))) { 145 138 wp_send_json_error(array('message' => __( 'Please configure rsaPrivateKey', 'mustangpay' ))); 146 139 } 147 140 148 if (empty($config->get_option('rsaPublicKey'))) { 149 wp_send_json_error(array('message' => __( 'Please configure rsaPublicKey', 'mustangpay' ))); 150 } 141 151 142 } 152 143
Note: See TracChangeset
for help on using the changeset viewer.