import type * as Square from "../index"; export interface CheckoutOptions { /** Indicates whether the payment allows tipping. */ allowTipping?: boolean | null; /** The custom fields requesting information from the buyer. */ customFields?: Square.CustomField[] | null; /** * The ID of the subscription plan for the buyer to pay and subscribe. * For more information, see [Subscription Plan Checkout](https://developer.squareup.com/docs/checkout-api/subscription-plan-checkout). */ subscriptionPlanId?: string | null; /** The confirmation page URL to redirect the buyer to after Square processes the payment. */ redirectUrl?: string | null; /** The email address that buyers can use to contact the seller. */ merchantSupportEmail?: string | null; /** Indicates whether to include the address fields in the payment form. */ askForShippingAddress?: boolean | null; /** The methods allowed for buyers during checkout. */ acceptedPaymentMethods?: Square.AcceptedPaymentMethods; /** * The amount of money that the developer is taking as a fee for facilitating the payment on behalf of the seller. * * The amount cannot be more than 90% of the total amount of the payment. * * The amount must be specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-monetary-amounts). * * The fee currency code must match the currency associated with the seller that is accepting the payment. The application must be from a developer account in the same country and using the same currency code as the seller. For more information about the application fee scenario, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). * * To set this field, `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/collect-fees/additional-considerations#permissions). */ appFeeMoney?: Square.Money; /** The fee associated with shipping to be applied to the `Order` as a service charge. */ shippingFee?: Square.ShippingFee; /** Indicates whether to include the `Add coupon` section for the buyer to provide a Square marketing coupon in the payment form. */ enableCoupon?: boolean | null; /** Indicates whether to include the `REWARDS` section for the buyer to opt in to loyalty, redeem rewards in the payment form, or both. */ enableLoyalty?: boolean | null; }