In-App Checkout (Mac)
Sell one-time or subscription products from within your desktop app
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:
Checkout Options
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.
Pre-fill Checkout Fields
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
andallowQuantity
disableLogout
passthrough
locale
title
message
Additional Parameters
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.