OPPCheckoutData
@objc
public class OPPCheckoutData : NSObject
Represents the checkout data, shipping and billing address, cart items and more.
-
Checkout Data shopper’s shipping address.
Declaration
Swift
@objc public var shipping: OPPCDShipping?
-
Checkout Data shopper’s billing address.
Declaration
Swift
@objc public var billing: OPPCDBilling?
-
Checkout Data shopper’s cart object.
Declaration
Swift
@objc public var cart: OPPCDCart?
-
Checkout Data shopper’s cart total amount.
Declaration
Swift
@objc public var amount: String?
-
Checkout Data shopper’s currency.
Declaration
Swift
@objc public var currency: String?
-
Checkout Data tax amount.
Declaration
Swift
@objc public var taxAmount: String?
-
Checkout Data merchant transaction id.
Declaration
Swift
@objc public var merchantTransactionID: String?
-
Checkout Data merchant object.
Declaration
Swift
@objc public var merchant: OPPCDMerchant?
-
Creates checkout info object from the JSON that can be received from the Server by checkout ID. param JSON A dictionary with parameters received from the Server. param error An error if JSON is invalid. return Returns an
OPPCheckoutInfo
object, ornil
if JSON is invalid.Declaration
Swift
@objc public static func checkoutData(_ JSON: [String : Any]) throws -> OPPCheckoutData