From aa383e0b420feb20252d9fa85d342a909c110e9b Mon Sep 17 00:00:00 2001 From: nick theile Date: Tue, 9 Apr 2024 16:44:37 -0500 Subject: [PATCH] Add method to payment info metadata (#34) * add method * 1.0.4 --- zaprite-payment-gateway/changelog.txt | 4 ++++ zaprite-payment-gateway/readme.txt | 8 +++++++- zaprite-payment-gateway/zaprite-payment-gateway.php | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/zaprite-payment-gateway/changelog.txt b/zaprite-payment-gateway/changelog.txt index 66eff25..4afb311 100644 --- a/zaprite-payment-gateway/changelog.txt +++ b/zaprite-payment-gateway/changelog.txt @@ -1,5 +1,9 @@ Zaprite Payment Gateway +## [1.0.4] - 2024-04-09 + +- Update: Add method to order metadata. + ## [1.0.3] - 2024-04-09 - Update: Add payment info in the order metadata. diff --git a/zaprite-payment-gateway/readme.txt b/zaprite-payment-gateway/readme.txt index d1eb205..e3c631c 100644 --- a/zaprite-payment-gateway/readme.txt +++ b/zaprite-payment-gateway/readme.txt @@ -4,7 +4,7 @@ Tags: payment, gateway, woocommerce, bitcoin, lightning Requires at least: 6.4.0 Tested up to: 6.4.3 Requires PHP: 7.2 -Stable tag: 1.0.3 +Stable tag: 1.0.4 License: MIT License URI: https://mit-license.org/ @@ -36,6 +36,9 @@ This plugin integrates seamlessly with your WooCommerce Checkout, providing a fa == Changelog == += 1.0.4 = +* Update: Add method to order metadata. + = 1.0.3 = * Update: Add payment info in the order metadata. @@ -50,6 +53,9 @@ This plugin integrates seamlessly with your WooCommerce Checkout, providing a fa == Upgrade Notice == += 1.0.4 = +This update adds method in the order metadata. + = 1.0.3 = This update adds payment info in the order metadata. diff --git a/zaprite-payment-gateway/zaprite-payment-gateway.php b/zaprite-payment-gateway/zaprite-payment-gateway.php index 562d50e..46310ea 100644 --- a/zaprite-payment-gateway/zaprite-payment-gateway.php +++ b/zaprite-payment-gateway/zaprite-payment-gateway.php @@ -4,7 +4,7 @@ * Plugin Name: Zaprite Payment Gateway * Plugin URI: https://github.com/ZapriteApp/zaprite-for-woocommerce * Description: Accept bitcoin (on-chain and lightning) and fiat payments in one unified Zaprite Checkout. - * Version: 1.0.3 + * Version: 1.0.4 * Author: zaprite * Author URI: https://zaprite.com * Text Domain: zaprite-payment-gateway @@ -326,6 +326,7 @@ function zaprite_server_add_update_status_callback( $data ) { $order->add_meta_data( 'zaprite_txn' . $index . '_amount', $txnAmountMajorUnits, false ); $order->add_meta_data( 'zaprite_txn' . $index . '_currency', $txnCurrency, false ); $order->add_meta_data( 'zaprite_txn' . $index . '_plugin', $transaction['pluginSlug'], false ); + $order->add_meta_data( 'zaprite_txn' . $index . '_method', $transaction['method'], false ); ++$index; } $order->save();