Card Payment Request
data class CardPaymentRequest(val orderId: String, val amount: Double, val currency: String = "SAR", val customer: Customer, val card: Card, val auth: Boolean = false, val recurringInit: Boolean = false, val successUrl: String = CheckoutRequest.DEFAULT_SUCCESS_URL, val failureUrl: String = CheckoutRequest.DEFAULT_FAILURE_URL) : Serializable
Input for a server-to-server (S2S) card payment via com.digetpay.sdk.DigetPay.payWithCard.
WARNING: S2S sends the full card number from the device. Using it makes the host app responsible for PCI DSS scope. Prefer the hosted checkout when possible.
Parameters
auth
false performs an immediate sale; true performs an authorization (funds are held and must later be captured from your backend).
recurring Init
true starts a recurring agreement (a token is returned via webhook).