Changeset 2177299
- Timestamp:
- 10/22/2019 07:44:21 AM (6 years ago)
- Location:
- spektra/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
spektra-wc-gatway.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spektra/trunk/readme.txt
r2170429 r2177299 62 62 * Initial version. 63 63 64 = 1.0.2 = 65 * Updated checkout 66 64 67 == Upgrade Notice == 65 68 … … 67 70 No upgrade needed, this is the initial version 68 71 72 = 1.0.1 = 73 Update checkout page 74 69 75 70 76 == Arbitrary section == 71 77 72 This plugin sends requests to https://api.spektra.co for production mode and https://api-test.spektra.co for test mode. 73 The response received loads the checkout form to complete payment request to Spektra. 78 This plugin sends requests to https://api.spektra.co for production mode and https://api-test.spektra.co for test mode, for authentication and obtaining the checkout ID. 79 The response received redirects the user to https://checkout.spektra.co/{checkout-id} for production mode and https://demo-checkout.spektra.co/{checkout-id} for test mode. 80 The user completes the payment from this page. 81 82 -
spektra/trunk/spektra-wc-gatway.php
r2170403 r2177299 66 66 if ($this->livemode) { 67 67 $this->urlprefix = 'https://api.spektra.co/'; 68 $this->checkoutUrl = 'https://checkout.spektra.co/'; 68 69 } else { 69 70 $this->urlprefix = 'https://api-test.spektra.co/'; 71 $this->checkoutUrl = 'https://demo-checkout.spektra.co/'; 70 72 } 71 73 72 74 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) ); 73 add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) );75 // add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) ); 74 76 add_action('woocommerce_thankyou', array($this,'spektra_payment_complete'), 10, 1); 75 77 add_action('woocommerce_cancelled_order', array($this,'spektra_payment_cancelled'), 10, 1); … … 259 261 260 262 return array( 261 'result' => 'success',263 'result' => 'success', 262 264 'checkout_id' => $chekout->checkoutID, 263 265 'cancel_url' => $cancelUrl, 266 'redirect' => $this->checkoutUrl . $chekout->checkoutID, 264 267 ); 265 268 }
Note: See TracChangeset
for help on using the changeset viewer.