checkout

abstract suspend fun checkout(merchantId: Int, ecodeId: Int, denomination: Double, quantityRequested: Int): ActivePerksCheckout

Opens a gift card checkout and returns its server-side pricing.

Return

The open ActivePerksCheckout with its checkoutToken.

Parameters

merchantId

Merchant to buy from.

ecodeId

Ecode product id from ActivePerksMerchantDetails.ecode.

denomination

Gift card amount - a fixed denomination or a value inside the ecode's range.

quantityRequested

Number of cards, 1..10.

Throws

if the checkout is rejected.