Changeset 2480483
- Timestamp:
- 02/24/2021 09:26:12 AM (5 years ago)
- Location:
- bux-woocommerce/trunk
- Files:
-
- 2 edited
-
bux-plugin.php (modified) (9 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bux-woocommerce/trunk/bux-plugin.php
r2399893 r2480483 4 4 * Plugin URI: https://bux.ph/static/bux-plugin-wp.zip 5 5 * Description: Bux plugin for Woocommerce, you need to have Woocommerce installed 6 * Version: 1. 0.46 * Version: 1.1.0 7 7 * Author: UBX Philippines 8 8 * Author URI: https://bux.ph … … 119 119 register_setting( 'bux-options', 'bux_redirect_disable' , $args); 120 120 121 $args = array( 122 'default' => false, 123 ); 124 register_setting( 'bux-options', 'bux_test_mode' , $args); 125 121 126 } 122 127 … … 152 157 <th scope="row">Default Expiry (hrs)</th> 153 158 <td><input type="number" name="bux_payment_default_expiry" style="width: 360px" value="<?php echo esc_attr( get_option('bux_payment_default_expiry') ); ?>" min="2" max="168" required/></td> 159 </tr> 160 161 <tr valign="top"> 162 <th scope="row">Test Mode</th> 163 <td><input type="checkbox" id="bux_test_mode" name="bux_test_mode" value="1"<?php checked( 1 == get_option('bux_test_mode')) ?> /></td> 154 164 </tr> 155 165 … … 318 328 $this->has_fields = false; 319 329 $this->method_title = __( 'Bux', 'bux-gateway' ); 320 $this->method_description = __( 'Pay through 7-eleven, Cebuana, Palawan, Mlhuiller, LBC, SM, Bayad Center, Robinsons, etc. (Max 30,000PHP)' );330 $this->method_description = __( 'Pay through GCash, Online Banking (UnionBank, BPI, RCBC), Over the counter (7-Eleven, Cebuana, Palawan, etc)' ); 321 331 322 332 // Load the settings. … … 328 338 $this->description = $this->get_option( 'description' ); 329 339 $this->instructions = $this->get_option( 'instructions', $this->description ); 340 341 342 $this->API_BASE_URL = 'https://api.bux.ph/v1'; 343 $this->BUX_BASE_URL = 'https://bux.ph'; 330 344 // Actions 331 345 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) ); … … 384 398 385 399 $basicauth = get_option('bux_payment_api_key'); 386 $url = 'https://api.bux.ph/v1/api/check_code/'; 400 $url = $this->API_BASE_URL . '/api/check_code/'; 401 402 if(get_option('bux_test_mode')){ 403 404 $url = $this->API_BASE_URL . '/api/sandbox/check_code/'; 405 } 406 387 407 $blog_name = get_bloginfo('name'); 388 408 $data = array( … … 453 473 $basicauth = get_option('bux_payment_api_key'); 454 474 455 $url = 'https://api.bux.ph/v1/api/woocommerce/checkout/'; 475 $url = $this->API_BASE_URL . '/api/woocommerce/checkout/'; 476 477 if(get_option('bux_test_mode')){ 478 479 $url = $this->API_BASE_URL . '/api/sandbox/woocommerce/checkout/'; 480 } 481 456 482 $blog_name = get_bloginfo('name'); 457 483 $data = array( … … 486 512 487 513 $order_data = json_decode( $body ); 514 $checkout_base = $this->BUX_BASE_URL . '/checkout/'; 515 516 if(get_option('bux_test_mode')){ 517 518 $checkout_base = $this->BUX_BASE_URL . '/test/checkout/'; 519 } 488 520 489 521 if($order_data->status == "success"){ … … 500 532 return array( 501 533 'result' => 'success', 502 'redirect' => 'https://bux.ph/checkout/'. $order_data->uid534 'redirect' => $checkout_base . $order_data->uid 503 535 ); 504 536 }else{ 505 537 return array( 506 538 'result' => 'success', 507 'redirect' => 'https://bux.ph/checkout/'. $order_data->uid . '/?redirect_url=' . $return_url539 'redirect' => $checkout_base . $order_data->uid . '/?redirect_url=' . $return_url 508 540 ); 509 541 } -
bux-woocommerce/trunk/readme.txt
r2399893 r2480483 9 9 Tested up to: 5.3.2 10 10 Requires PHP: 5.2.4 11 Stable tag: 1. 0.412 Version: 1. 0.411 Stable tag: 1.1.0 12 Version: 1.1.0 13 13 Donate link: https://bux.ph/ 14 14 … … 20 20 21 21 Bux allows your website to accept payments from Over-the-counter channels (7-Eleven, Cebuana Pawnshop, LBC, Palawan, SM Dept Stores, Bayad Center, etc). 22 Bux also allows you to accept payments from GCash and Online Banking channels such as UnionBank, BPI and RCBC. (Grabpay and Card Payments soon)22 Bux also allows you to accept payments from GCash and Online Banking channels such as UnionBank, BPI and RCBC. 23 23 24 24 This Plugin integrates your online store to Bux Payment Platform. … … 55 55 * Update descriptions 56 56 57 58 = 1.1.0 = 59 * Include Test Mode 60 57 61 == Upgrade Notice == 58 62 … … 69 73 Update descriptions 70 74 75 = 1.1.0 = 76 Include Test mode 77 71 78 72 79 == Screenshots ==
Note: See TracChangeset
for help on using the changeset viewer.