Changeset 3426123
- Timestamp:
- 12/23/2025 11:03:54 AM (3 months ago)
- Location:
- stitch-express
- Files:
-
- 5 edited
- 6 copied
-
tags/1.3.0/readme.txt (modified) (1 diff)
-
tags/1.3.1/readme.txt (modified) (1 diff)
-
tags/1.3.2 (copied) (copied from stitch-express/trunk)
-
tags/1.3.2/assets/banner-1544x500.png (copied) (copied from stitch-express/trunk/assets/banner-1544x500.png)
-
tags/1.3.2/includes/stitch-express-client.php (copied) (copied from stitch-express/trunk/includes/stitch-express-client.php) (3 diffs)
-
tags/1.3.2/includes/stitch-express-gateway.php (copied) (copied from stitch-express/trunk/includes/stitch-express-gateway.php)
-
tags/1.3.2/readme.txt (copied) (copied from stitch-express/trunk/readme.txt) (4 diffs)
-
tags/1.3.2/stitch-express.php (copied) (copied from stitch-express/trunk/stitch-express.php) (2 diffs)
-
trunk/includes/stitch-express-client.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/stitch-express.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stitch-express/tags/1.3.0/readme.txt
r3241711 r3426123 37 37 * 2% on Capitec Pay transactions* 38 38 39 For customers who transact more than R100K per month, we offer custom pricing. Please contact jayde@stitch.money to discuss this.39 For customers who transact more than R100K per month, we offer custom pricing. Please contact express-support@stitch.money to discuss this. 40 40 41 41 *All pricing is VAT exclusive -
stitch-express/tags/1.3.1/readme.txt
r3386994 r3426123 37 37 * 2% on Capitec Pay transactions* 38 38 39 For customers who transact more than R100K per month, we offer custom pricing. Please contact jayde@stitch.money to discuss this.39 For customers who transact more than R100K per month, we offer custom pricing. Please contact express-support@stitch.money to discuss this. 40 40 41 41 *All pricing is VAT exclusive -
stitch-express/tags/1.3.2/includes/stitch-express-client.php
r3386994 r3426123 38 38 39 39 class Stitch_Express_Client { 40 private const PLUGIN_VERSION = '1.3.2'; 40 41 private string $baseUrl = 'https://express.stitch.money'; 41 42 private string $client_id; … … 51 52 * @throws Stitch_Express_Failed_Authentication_Exception 52 53 */ 53 public function get_payment_status(string $payment_id): ?string { 54 $response = $this->make_request('/api/v1/payments/'.$payment_id, 'GET'); 54 public function get_payment_status(string $payment_id, ?string $merchant_reference = null): ?string { 55 $path = '/api/v1/payments/'.$payment_id; 56 if ($merchant_reference !== null) { 57 $path .= '?merchantReference='.urlencode($merchant_reference); 58 } 59 60 $response = $this->make_request($path, 'GET'); 55 61 56 62 if ($response->status_code === 404) { … … 132 138 bool $withToken = true 133 139 ): Stitch_Express_Response { 134 $headers = ['Content-Type' => 'application/json', 'X-IS-WC' => 'true']; 140 $headers = [ 141 'Content-Type' => 'application/json', 142 'X-IS-WC' => 'true', 143 'X-Stitch-Express-WC-Plugin-Version' => self::PLUGIN_VERSION, 144 ]; 135 145 136 146 if ($withToken) { -
stitch-express/tags/1.3.2/readme.txt
r3386994 r3426123 3 3 Tags: woocommerce, card, payments, south africa, apple pay, google pay, stitch, express, stitch express 4 4 Tested up to: 6.7 5 Stable tag: 1.3. 15 Stable tag: 1.3.2 6 6 License: GPLv3 7 7 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 37 37 * 2% on Capitec Pay transactions* 38 38 39 For customers who transact more than R100K per month, we offer custom pricing. Please contact jayde@stitch.money to discuss this.39 For customers who transact more than R100K per month, we offer custom pricing. Please contact express-support@stitch.money to discuss this. 40 40 41 41 *All pricing is VAT exclusive … … 83 83 84 84 == Changelog == 85 = 1.3.2 = 86 * Minor improvements 87 85 88 = 1.3.1 = 86 89 * Minor improvements … … 155 158 156 159 == Upgrade Notice == 160 = 1.3.2 = 161 * Minor improvements 162 157 163 = 1.3.1 = 158 164 * Minor improvements -
stitch-express/tags/1.3.2/stitch-express.php
r3386994 r3426123 9 9 * Description: Use Stitch Express to easily and securely accept Card payment on your WooCommerce store. 10 10 * Plugin URI: https://wordpress.org/plugins/stitchexpress/ 11 * Version: 1.3. 111 * Version: 1.3.2 12 12 * Requires at least: 6.5 13 13 * Requires PHP: 8.0 … … 91 91 92 92 try { 93 $payment_status = $stitch_express_client->get_payment_status($payment_id );93 $payment_status = $stitch_express_client->get_payment_status($payment_id, $reference); 94 94 } catch (Exception $exception) { 95 95 $logger->error($exception, ['source' => 'stitch-express']); 96 96 wc_add_notice('Failed to check status of your payment. Please contact the store.', 'error'); 97 98 return stitch_express_generate_webhook_response($order->get_view_order_url()); 99 } 100 101 if ($payment_status === null) { 102 $logger->error("Payment link not found for payment ID: {$payment_id} and reference: {$reference}", ['source' => 'stitch-express']); 103 wc_add_notice('Payment not found', 'error'); 97 104 98 105 return stitch_express_generate_webhook_response($order->get_view_order_url()); -
stitch-express/trunk/includes/stitch-express-client.php
r3386994 r3426123 38 38 39 39 class Stitch_Express_Client { 40 private const PLUGIN_VERSION = '1.3.2'; 40 41 private string $baseUrl = 'https://express.stitch.money'; 41 42 private string $client_id; … … 51 52 * @throws Stitch_Express_Failed_Authentication_Exception 52 53 */ 53 public function get_payment_status(string $payment_id): ?string { 54 $response = $this->make_request('/api/v1/payments/'.$payment_id, 'GET'); 54 public function get_payment_status(string $payment_id, ?string $merchant_reference = null): ?string { 55 $path = '/api/v1/payments/'.$payment_id; 56 if ($merchant_reference !== null) { 57 $path .= '?merchantReference='.urlencode($merchant_reference); 58 } 59 60 $response = $this->make_request($path, 'GET'); 55 61 56 62 if ($response->status_code === 404) { … … 132 138 bool $withToken = true 133 139 ): Stitch_Express_Response { 134 $headers = ['Content-Type' => 'application/json', 'X-IS-WC' => 'true']; 140 $headers = [ 141 'Content-Type' => 'application/json', 142 'X-IS-WC' => 'true', 143 'X-Stitch-Express-WC-Plugin-Version' => self::PLUGIN_VERSION, 144 ]; 135 145 136 146 if ($withToken) { -
stitch-express/trunk/readme.txt
r3386994 r3426123 3 3 Tags: woocommerce, card, payments, south africa, apple pay, google pay, stitch, express, stitch express 4 4 Tested up to: 6.7 5 Stable tag: 1.3. 15 Stable tag: 1.3.2 6 6 License: GPLv3 7 7 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 37 37 * 2% on Capitec Pay transactions* 38 38 39 For customers who transact more than R100K per month, we offer custom pricing. Please contact jayde@stitch.money to discuss this.39 For customers who transact more than R100K per month, we offer custom pricing. Please contact express-support@stitch.money to discuss this. 40 40 41 41 *All pricing is VAT exclusive … … 83 83 84 84 == Changelog == 85 = 1.3.2 = 86 * Minor improvements 87 85 88 = 1.3.1 = 86 89 * Minor improvements … … 155 158 156 159 == Upgrade Notice == 160 = 1.3.2 = 161 * Minor improvements 162 157 163 = 1.3.1 = 158 164 * Minor improvements -
stitch-express/trunk/stitch-express.php
r3386994 r3426123 9 9 * Description: Use Stitch Express to easily and securely accept Card payment on your WooCommerce store. 10 10 * Plugin URI: https://wordpress.org/plugins/stitchexpress/ 11 * Version: 1.3. 111 * Version: 1.3.2 12 12 * Requires at least: 6.5 13 13 * Requires PHP: 8.0 … … 91 91 92 92 try { 93 $payment_status = $stitch_express_client->get_payment_status($payment_id );93 $payment_status = $stitch_express_client->get_payment_status($payment_id, $reference); 94 94 } catch (Exception $exception) { 95 95 $logger->error($exception, ['source' => 'stitch-express']); 96 96 wc_add_notice('Failed to check status of your payment. Please contact the store.', 'error'); 97 98 return stitch_express_generate_webhook_response($order->get_view_order_url()); 99 } 100 101 if ($payment_status === null) { 102 $logger->error("Payment link not found for payment ID: {$payment_id} and reference: {$reference}", ['source' => 'stitch-express']); 103 wc_add_notice('Payment not found', 'error'); 97 104 98 105 return stitch_express_generate_webhook_response($order->get_view_order_url());
Note: See TracChangeset
for help on using the changeset viewer.