buycred_complete_pending_payment

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.

This function is only available if the buyCRED add-on is enabled.

Available since version 1.7

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.

) { ... }

Examples

No example found.

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.

This function is only available if the buyCRED add-on is enabled.

Available since version 1.7

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.

) { ... }

Examples

No example found.