pub struct CreatePaymentsParams {Show 18 fields
pub account_sid: String,
pub call_sid: String,
pub idempotency_key: String,
pub status_callback: String,
pub bank_account_type: Option<String>,
pub charge_amount: Option<f64>,
pub currency: Option<String>,
pub description: Option<String>,
pub input: Option<String>,
pub min_postal_code_length: Option<i32>,
pub parameter: Option<Value>,
pub payment_connector: Option<String>,
pub payment_method: Option<String>,
pub postal_code: Option<bool>,
pub security_code: Option<bool>,
pub timeout: Option<i32>,
pub token_type: Option<String>,
pub valid_card_types: Option<String>,
}
Expand description
struct for passing parameters to the method create_payments
Fields§
§account_sid: String
The SID of the Account that will create the resource.
call_sid: String
The SID of the call that will create the resource. Call leg associated with this sid is expected to provide payment information thru DTMF.
idempotency_key: String
A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.
status_callback: String
Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the expected StatusCallback values
bank_account_type: Option<String>
§charge_amount: Option<f64>
A positive decimal value less than 1,000,000 to charge against the credit card or bank account. Default currency can be overwritten with currency
field. Leave blank or set to 0 to tokenize.
currency: Option<String>
The currency of the charge_amount
, formatted as ISO 4127 format. The default value is USD
and all values allowed from the Pay Connector are accepted.
description: Option<String>
The description can be used to provide more details regarding the transaction. This information is submitted along with the payment details to the Payment Connector which are then posted on the transactions.
input: Option<String>
A list of inputs that should be accepted. Currently only dtmf
is supported. All digits captured during a pay session are redacted from the logs.
min_postal_code_length: Option<i32>
A positive integer that is used to validate the length of the PostalCode
inputted by the user. User must enter this many digits.
parameter: Option<Value>
A single-level JSON object used to pass custom parameters to payment processors. (Required for ACH payments). The information that has to be included here depends on the
payment_connector: Option<String>
This is the unique name corresponding to the Pay Connector installed in the Twilio Add-ons. Learn more about Default
.
payment_method: Option<String>
§postal_code: Option<bool>
Indicates whether the credit card postal code (zip code) is a required piece of payment information that must be provided by the caller. The default is true
.
security_code: Option<bool>
Indicates whether the credit card security code is a required piece of payment information that must be provided by the caller. The default is true
.
timeout: Option<i32>
The number of seconds that 5
, maximum is 600
.
token_type: Option<String>
§valid_card_types: Option<String>
Credit card types separated by space that Pay should accept. The default value is visa mastercard amex
Trait Implementations§
Source§impl Clone for CreatePaymentsParams
impl Clone for CreatePaymentsParams
Source§fn clone(&self) -> CreatePaymentsParams
fn clone(&self) -> CreatePaymentsParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more