@checkout-kit/core / PaymentResult
Type Alias: PaymentResult
ts
type PaymentResult =
| {
intent: PaymentIntent;
status: "succeeded";
}
| {
action: PaymentAction;
intent: PaymentIntent;
status: "requires_action";
}
| {
intent: PaymentIntent;
status: "processing";
}
| {
error: PaymentError;
intent: PaymentIntent;
status: "declined";
}
| {
error: PaymentError;
intent?: PaymentIntent;
status: "error";
};