pub struct CheckoutPaymentMethodOptionsApiSchema {
pub vault_on_success: Option<bool>,
pub descriptor: Option<String>,
pub payment_type: Option<String>,
pub options: Option<Value>,
}
Fields§
§vault_on_success: Option<bool>
Whether the payment method should be vaulted on a successful payment or not.
descriptor: Option<String>
A description of the payment, as it would typically appear on a bank statement.
payment_type: Option<String>
Payment types, primarily to be used for recurring payments.
Note: If you successfully vault a SINGLE_USE
token on payment creation, then there’s no need to set a value for this field and it will be flagged as FIRST_PAYMENT
. Otherwise, see the table below for all possible values.
paymentType | Use case |
---|---|
FIRST_PAYMENT | a customer-initiated payment which is the first in a series of recurring payments or subscription, or a card on file scenario. |
ECOMMERCE | a customer-initiated payment using stored payment details where the cardholder is present. |
SUBSCRIPTION | a merchant-initiated payment as part of a series of payments on a fixed schedule and a set amount. |
UNSCHEDULED | a merchant-initiated payment using stored payment details with no fixed schedule or amount. |
options: Option<Value>
Additional options for the payment methods.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CheckoutPaymentMethodOptionsApiSchema
impl<'de> Deserialize<'de> for CheckoutPaymentMethodOptionsApiSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CheckoutPaymentMethodOptionsApiSchema
impl RefUnwindSafe for CheckoutPaymentMethodOptionsApiSchema
impl Send for CheckoutPaymentMethodOptionsApiSchema
impl Sync for CheckoutPaymentMethodOptionsApiSchema
impl Unpin for CheckoutPaymentMethodOptionsApiSchema
impl UnwindSafe for CheckoutPaymentMethodOptionsApiSchema
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more