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
merchant Id
Merchant to buy from.
ecode Id
Ecode product id from ActivePerksMerchantDetails.ecode.
denomination
Gift card amount - a fixed denomination or a value inside the ecode's range.
quantity Requested
Number of cards, 1..10.
Throws
if the checkout is rejected.