CardPaymentRequest

constructor(orderId: String, amount: Double, currency: String = "SAR", customer: Customer, card: Card, auth: Boolean = false, recurringInit: Boolean = false, successUrl: String = CheckoutRequest.DEFAULT_SUCCESS_URL, failureUrl: String = CheckoutRequest.DEFAULT_FAILURE_URL)

Parameters

auth

false performs an immediate sale; true performs an authorization (funds are held and must later be captured from your backend).

recurringInit

true starts a recurring agreement (a token is returned via webhook).