pub struct CreatePaymentPayload {
pub description: String,
pub installments: i64,
pub order: Order,
pub payer: BuyerIdentification,
pub payment_method_id: String,
pub token: Option<String>,
pub transaction_amount: f64,
pub external_reference: Option<String>,
pub binary_mode: Option<bool>,
pub statement_descriptor: Option<String>,
pub additional_info: Option<AdditionalInfo>,
pub metadata: Option<Value>,
}Fields§
§description: StringDescription of this transaction.
installments: i64Required.
order: Order§payer: BuyerIdentification§payment_method_id: StringRequired.
token: Option<String>Use MercadoPagoSDK::create_card_token to generate one.
Required for credit card payments.
transaction_amount: f64Total amount of the transaction Required.
external_reference: Option<String>§binary_mode: Option<bool>Defaults to false. When set to true, payments can only be approved or rejected instantly.
statement_descriptor: Option<String>Description that the payment will appear with in the card statement.
additional_info: Option<AdditionalInfo>§metadata: Option<Value>Trait Implementations§
Source§impl Clone for CreatePaymentPayload
impl Clone for CreatePaymentPayload
Source§fn clone(&self) -> CreatePaymentPayload
fn clone(&self) -> CreatePaymentPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreatePaymentPayload
impl Debug for CreatePaymentPayload
Source§impl<'de> Deserialize<'de> for CreatePaymentPayload
impl<'de> Deserialize<'de> for CreatePaymentPayload
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
Source§impl PartialEq for CreatePaymentPayload
impl PartialEq for CreatePaymentPayload
Source§impl Serialize for CreatePaymentPayload
impl Serialize for CreatePaymentPayload
impl StructuralPartialEq for CreatePaymentPayload
Auto Trait Implementations§
impl Freeze for CreatePaymentPayload
impl RefUnwindSafe for CreatePaymentPayload
impl Send for CreatePaymentPayload
impl Sync for CreatePaymentPayload
impl Unpin for CreatePaymentPayload
impl UnwindSafe for CreatePaymentPayload
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