Skip to content

@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";
};

Apache-2.0 · Headless engine, provider adapters and runnable examples.