type ChargePaymentMethodResult

Outcome of charging a stored payment method. A refusal is a normal result rather than an error: success is false, message carries the provider's reason, and payment is null.

FieldTypeDescription
successBoolean!

Whether the charge was authorized.

messageString

The provider's refusal reason when success is false; null on success.

paymentPayment

The payment created by an authorized charge; null when the charge was refused.