Paddle Billing
Search

Paddle.Checkout.close()

Closes an opened checkout.

Use Paddle.Checkout.close() to close an opened checkout.

Typically used when working with overlay checkout to close the Paddle Checkout overlay. If used with inline checkout, removes the Paddle Checkout iframe from the DOM.

For success workflows, you can redirect to a success URL or pass an eventCallback to Paddle.Initialize() for checkout.completed.

To learn more, see Handle checkout success.

Example

This example shows how you can use Paddle.Checkout.close() to close an inline checkout.

Events

checkout.closedEmitted when the checkout is closed.

Related pages