PaymentInstruction
@objc(PPCPurchaseUnitPaymentInstruction)
@objcMembers
class PaymentInstruction
extension PurchaseUnit.PaymentInstruction : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Encodable, Equatable, Hashable, NSObjectProtocol
Any additional payment instructions for PayPal Commerce Platform customers. Enables features for the PayPal Commerce Platform, such as delayed disbursement and collection of a platform fee. Applies during order creation for captured payments or during capture of authorized payments.
-
The funds that are held on behalf of the merchant.
Declaration
Swift
let disbursementMode: PurchaseUnit.DisbursementMode
-
Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
Declaration
Swift
required init(from decoder: Decoder) throws
-
Undocumented
Declaration
Swift
init(platformFees: [PurchaseUnit.PlatformFees]? = nil, disbursementMode: PurchaseUnit.DisbursementMode = .none)
-
An array of various fees, commissions, tips, or donations.
Declaration
Swift
let platformFees: [PurchaseUnit.PlatformFees]?