PaymentOption
public class PaymentOption : Codable
Definition of payment method:
- payment type.
- the ways of its confirmation.
- the availability and Commission rate to the buyer.
-
Type of the source of funds for the payment.
- Example: bank_card
Declaration
Swift
public let paymentMethodType: PaymentMethodType
-
List of possible methods of payment confirmation. If payment confirmation is not required, the field is missing. Read more about the scenarios of confirmation of payment by the buyer.
- Example: redirect
Declaration
Swift
public let confirmationTypes: Set<ConfirmationType>?
-
The amount to be paid by the buyer subject to possible currency conversion and additional fees in excess of the payment amount.
Declaration
Swift
public let charge: MonetaryAmount
-
Required type of user identification.
Declaration
Swift
public let identificationRequirement: IdentificationRequirement?
-
Commission from the buyer in excess of the payment amount. The field is present if there are commissions in excess of the payment amount.
Declaration
Swift
public let fee: Fee?
-
Indication of the possibility of saving payment data for repeated payments.
Declaration
Swift
public let savePaymentMethod: SavePaymentMethod
-
Creates instance of
PaymentOption
.Declaration
Swift
public init(paymentMethodType: PaymentMethodType, confirmationTypes: Set<ConfirmationType>?, charge: MonetaryAmount, identificationRequirement: IdentificationRequirement?, fee: Fee?, savePaymentMethod: SavePaymentMethod)
Parameters
paymentMethodType
Type of the source of funds for the payment.
confirmationType
List of possible methods of payment confirmation. If payment confirmation is not required, the field is missing. Read more about the scenarios of confirmation of payment by the buyer.
charge
The amount to be paid by the buyer subject to possible currency conversion and additional fees in excess of the payment amount.
identificationRequirement
Required type of user identification.
fee
Commission from the buyer in excess of the payment amount. The field is present if there are commissions in excess of the payment amount.
savePaymentMethod
Indication of the possibility of saving payment data for repeated payments.
Return Value
Instance of
PaymentOption