BuddyClients Docs

SuccessfulBookingPayment
in package

Handles a successful payment event.

Tags
since
1.0.27

Table of Contents

Methods

__construct()  : mixed
Constructor method.
unsucceed_payment()  : mixed
Reverts a payment to unpaid.

Methods

__construct()

Constructor method.

public __construct(array<string|int, mixed> $args) : mixed
Parameters
$args : array<string|int, mixed>

{ An array of args to succeed or unsucceed a BookingPayment. Either a PaymentIntent or BookingPayment ID must be passed in the args.

@type    PaymentIntent   $payment_intent Optional. The Stripe PaymentIntent object.
@type    int             $payment_id     Optional. The ID of the BookingPayment to succeed or unsucceed.
@type    bool            $succeed        Optional. Succeed the payment if true, unsucceed if false.
                                         Defaults to true.

}

Tags
since
1.0.27

unsucceed_payment()

Reverts a payment to unpaid.

public static unsucceed_payment() : mixed
Tags
since
1.0.27

        
On this page

Search results