pub struct PaymentApiResponse {Show 15 fields
pub payment_method: Option<PaymentResponsePaymentMethodOptionsApiSchema>,
pub order_id: Option<String>,
pub customer_id: Option<String>,
pub customer: Option<CustomerDetailsApiSchema>,
pub processor: Option<PaymentResponseProcessorApiSchema>,
pub transactions: Option<Vec<TransactionOverviewApiSchema>>,
pub date: Option<String>,
pub metadata: Option<Value>,
pub order: Option<OrderDetailsApiSchema>,
pub id: Option<String>,
pub status_reason: Option<StatusReasonApiSchema>,
pub status: Option<String>,
pub currency_code: Option<String>,
pub amount: Option<Value>,
pub required_action: Option<PaymentRequiredActionApiSchema>,
}Fields§
§payment_method: Option<PaymentResponsePaymentMethodOptionsApiSchema>The payment method options provided in the request, as well as the token used to process the payment.
order_id: Option<String>Your reference for the payment.
customer_id: Option<String>The unique identifier for your customer.
customer: Option<CustomerDetailsApiSchema>More information associated with the customer.
processor: Option<PaymentResponseProcessorApiSchema>More information associated with the payment processor, including the processor name.
transactions: Option<Vec<TransactionOverviewApiSchema>>A list summarizing the transactions that occurred while processing the payment.
Note: a refund is a separate transaction and so will appear in this transactions list if a refund was performed.
date: Option<String>The date and time at which the payment was created in UTC format.
metadata: Option<Value>Additional data to be used throughout the payment lifecycle.
order: Option<OrderDetailsApiSchema>More information associated with the order.
id: Option<String>The unique payment ID.
You can use this ID to retrieve the payment details, or perform downstream operations.
status_reason: Option<StatusReasonApiSchema>Check this field for more information regarding the payment’s status. This is especially useful when the status is DECLINED or FAILED.
status: Option<String>See the payment status table for more information.
currency_code: Option<String>The 3-letter currency code in ISO 4217 format.
e.g. use USD for US dollars.
amount: Option<Value>The amount you charged the customer, in minor units.
required_action: Option<PaymentRequiredActionApiSchema>Required action to perform in order to resume the payment workflow. This can be requiring a 3DS check from the customer for instance.