Skip to content

Commit 43fd48e

Browse files
committed
Minor doc updates.
1 parent a773144 commit 43fd48e

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,11 @@ protected function update_transaction_payment_method( \WC_Order $order ) {
567567

568568

569569
/**
570-
* Add payment and transaction information as class members of WC_Order
571-
* instance. The standard information that can be added includes:
570+
* Add payment and transaction information to $order object.
571+
*
572+
* The standard information that can be added includes:
573+
*
574+
* It is set and get using Dynamic_Props class and not directly on $order object, but documented here for reference.
572575
*
573576
* $order->payment_total - the payment total
574577
* $order->customer_id - optional payment gateway customer id (useful for tokenized payments for certain gateways, etc)

woocommerce/payment-gateway/class-sv-wc-payment-gateway.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,10 +1916,12 @@ public function get_payment_method_image_url( $type ) {
19161916

19171917

19181918
/**
1919-
* Adds payment and transaction information as class members of {@see WC_Order} instance.
1919+
* Adds payment and transaction information on $order object.
19201920
*
19211921
* The standard information that can be added includes:
19221922
*
1923+
* It is set and get using Dynamic_Props class and not directly on $order object, but documented here for reference.
1924+
*
19231925
* $order->payment_total - the payment total
19241926
* $order->customer_id - optional payment gateway customer id (useful for tokenized payments, etc)
19251927
* $order->payment->type - one of 'credit_card' or 'check'
@@ -2216,8 +2218,11 @@ public function process_refund( $order_id, $amount = null, $reason = '' ) {
22162218

22172219

22182220
/**
2219-
* Add refund information as class members of WC_Order
2220-
* instance for use in refund transactions. Standard information includes:
2221+
* Add refund information to $order object.
2222+
*
2223+
* It is set and get using Dynamic_Props class and not directly on $order object, but documented here for reference.
2224+
*
2225+
* Standard information includes:
22212226
*
22222227
* $order->refund->amount = refund amount
22232228
* $order->refund->reason = user-entered reason text for the refund

0 commit comments

Comments
 (0)