Description
This function will process a pending point purchase and “complete” it by paying the buyer the point they purchased. This processing is done using the payment gateway set in the pending payment object, by using the gateways complete_payment()
method.
Returns
(bool) Returns TRUE
if the transaction was completed successfully else FALSE
.
Parameters
Param | Type | Required | Description | |
---|---|---|---|---|
function buycred_complete_pending_payment( |
||||
$payment_id |
int or string | Yes | The pending payment public ID in string format or the WordPress post object ID. |
|
) { ... } |