Changeset 2880214
- Timestamp:
- 03/15/2023 05:02:57 AM (3 years ago)
- Location:
- doshii/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (2 diffs)
-
doshii_function.php (modified) (1 diff)
-
include/woo-doshii-initialise.php (modified) (1 diff)
-
include/woo-doshii-product-sync.php (modified) (1 diff)
-
include/woo-order-api.php (modified) (2 diffs)
-
include/woo-order-status.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
doshii/trunk/README.txt
r2833784 r2880214 5 5 Requires at least: 4.7 6 6 Tested up to: 5.8.0 7 Stable tag: 2.5. 47 Stable tag: 2.5.5 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 59 59 60 60 == Changelog == 61 62 = 2.5.5 = 63 64 Added support for Givex giftcards 61 65 62 66 = 2.5.4 = -
doshii/trunk/doshii_function.php
r2833784 r2880214 7 7 Author URI: https://www.doshii.io 8 8 Contributors: 9 Version: 2.5. 49 Version: 2.5.5 10 10 */ 11 11 -
doshii/trunk/include/woo-doshii-initialise.php
r2833784 r2880214 40 40 'x-doshii-location-id' => $locationId.'', 41 41 'content-Type' => 'application/json', 42 'x-doshii-writeout' => 'WooCommerce 2.5. 4',42 'x-doshii-writeout' => 'WooCommerce 2.5.5', 43 43 ); 44 44 -
doshii/trunk/include/woo-doshii-product-sync.php
r2833784 r2880214 48 48 'x-doshii-location-id' => $locationId.'', 49 49 'content-Type' => 'application/json', 50 'x-doshii-writeout' => 'WooCommerce 2.5. 4',50 'x-doshii-writeout' => 'WooCommerce 2.5.5', 51 51 ) 52 52 )); -
doshii/trunk/include/woo-order-api.php
r2833784 r2880214 57 57 if (!empty($yithGiftcards)) { 58 58 foreach($yithGiftcards as $key => $value) { 59 $transaction = (object)[ 60 'amount' => doshii_to_cents($value), 61 'method' => 'giftcard', 62 'tip' => 0, 63 'reference' => strval($key), 64 'prepaid' => true, 65 'surcounts' => [] 66 ]; 67 array_push($transactionsData, $transaction); 68 } 69 } 70 $wcgxGiftcards = $order->get_meta('_wcgx_applied_gift_certificate'); 71 if (!empty($wcgxGiftcards)) { 72 foreach($wcgxGiftcards as $key => $value) { 59 73 $transaction = (object)[ 60 74 'amount' => doshii_to_cents($value), … … 679 693 'accept' => 'application/json', 680 694 'Accept-encoding' => 'gzip', 681 'x-doshii-writeout' => 'WooCommerce 2.5. 4',695 'x-doshii-writeout' => 'WooCommerce 2.5.5', 682 696 ), 683 697 'body' => json_encode($doshiiOrderPayload) -
doshii/trunk/include/woo-order-status.php
r2833784 r2880214 39 39 'x-doshii-location-id' => $doshii_options['location_id'].'', 40 40 'content-Type' => 'application/json', 41 'x-doshii-writeout' => 'WooCommerce 2.5. 4',41 'x-doshii-writeout' => 'WooCommerce 2.5.5', 42 42 ) 43 43 ));
Note: See TracChangeset
for help on using the changeset viewer.