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'


Top ↑

Return Return

(string|WP_Error) a refund ID on success or a WP_Error object


Top ↑

Source Source

File: includes/models/model.llms.transaction.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.