Skip to content

Commit

Permalink
Add method to payment info metadata (#34)
Browse files Browse the repository at this point in the history
* add method

* 1.0.4
  • Loading branch information
ntheile authored Apr 9, 2024
1 parent b804a5d commit aa383e0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions zaprite-payment-gateway/changelog.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 7 additions & 1 deletion zaprite-payment-gateway/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down Expand Up @@ -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.

Expand All @@ -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.

Expand Down
3 changes: 2 additions & 1 deletion zaprite-payment-gateway/zaprite-payment-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit aa383e0

Please sign in to comment.