Changeset 3136445
- Timestamp:
- 08/16/2024 06:29:19 AM (20 months ago)
- Location:
- bold-pay
- Files:
-
- 15 added
- 2 edited
-
tags/1.5.5 (added)
-
tags/1.5.5/index.php (added)
-
tags/1.5.5/readme.txt (added)
-
tags/1.5.5/src (added)
-
tags/1.5.5/src/boldpay.php (added)
-
tags/1.5.6 (added)
-
tags/1.5.6/index.php (added)
-
tags/1.5.6/readme.txt (added)
-
tags/1.5.6/src (added)
-
tags/1.5.6/src/boldpay.php (added)
-
tags/1.5.7 (added)
-
tags/1.5.7/index.php (added)
-
tags/1.5.7/readme.txt (added)
-
tags/1.5.7/src (added)
-
tags/1.5.7/src/boldpay.php (added)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/boldpay.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bold-pay/trunk/readme.txt
r3122840 r3136445 2 2 Tags: 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 3 3 Requires at least: 5.2.1 4 Tested up to: 6. 5.54 Tested up to: 6.6.1 5 5 WooCommerce requires at least: 2.6.0 6 WooCommerce tested up to: 9. 0.27 Stable tag: 1.5. 76 WooCommerce tested up to: 9.1.4 7 Stable tag: 1.5.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
bold-pay/trunk/src/boldpay.php
r3122840 r3136445 218 218 $query_request_url .= '&CallBackUrl=' .urlencode(esc_url_raw( $this->callbackurl )); 219 219 220 if ($is_callback) { 221 sleep(2); 222 } 223 220 224 # Initialize cURL 221 225 $ch = curl_init(); … … 262 266 } 263 267 } 268 else if ( strtolower( $query['Status'] ) == 'pending' ) { 269 # only update if order is pending or failed or on-hold 270 if ( strtolower( $order->get_status() ) == 'pending' || strtolower( $order->get_status() ) == 'failed' || strtolower( $order->get_status() ) == 'on-hold' ) { 271 272 $order->update_status( 'on-hold' ); 273 $order->add_order_note( 'Payment pending made through BOLD.Pay. Transaction ID is ' . sanitize_text_field( $_REQUEST['TransactionID'] )); 274 275 if ( $is_callback ) { 276 echo 'OK'; 277 } else { 278 # redirect to order receive page 279 wp_redirect( $order->get_checkout_order_received_url() ); 280 } 281 282 exit(); 283 } 284 } 264 285 265 286 } else if ( strtoupper(sanitize_text_field( $_REQUEST['Status'] )) == 'PENDING' ) {
Note: See TracChangeset
for help on using the changeset viewer.