LLMS_Transaction::process_refund( float $amount, string $note = '', string $method = 'manual' )
Process a Refund Called from the admin panel by clicking a refund (manual or gateway) button
Description Description
Parameters Parameters
- $amount
-
(Required) amount to refund
- $note
-
(Optional) note to record in the gateway (if possible) and as an order note
Default value: ''
- $method
-
(Optional) method used to refund, either "manual" (available for all transactions) or "gateway" (where supported)
Default value: 'manual'
Return Return
(string|WP_Error) a refund ID on success or a WP_Error object
Source Source
File: includes/models/model.llms.transaction.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |