CardPaymentRequest

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).

recurringInit

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

Constructors

Link copied to clipboard
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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val card: Card
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard