In-App Checkout (Mac)

A Paddle in-app checkout can be shown at any time, provided you have already initialized both the SDK singleton and the Product you’d like to load in the checkout.

Call the showCheckoutForProduct method to load the checkout:

A full implementation would look something like:

The Checkout is quite flexible and supports numerous configuration, pre-fill, and pricing options. These can be leveraged by passing a PADCheckoutOptions object to the Checkout.

You can also pre-fill certain checkout fields such as the email and the postcode by setting their appropriate properties in the PADCheckoutOptions object.

Additional checkout options that can be set directly on the PADCheckoutOptions object include:

  • quantity and allowQuantity
  • disableLogout
  • passthrough
  • locale
  • title
  • message

If you need to pass additional checkout parameters you can also use the PADCheckoutOptions.additionalCheckoutParameters property.

This property accepts any JS parameter value from the Checkout Parameters used in the web version of the checkout.