SuccessfulBookingPayment
in package
Handles a successful payment event.
Tags
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
unsucceed_payment()
Reverts a payment to unpaid.
public
static unsucceed_payment() : mixed