pub struct CheckoutOptions {
pub speed_policy: Option<SpeedPolicy>,
pub payment_methods: Option<Vec<String>>,
pub default_payment_method: Option<String>,
pub expiration_minutes: Option<Box<TimeSpanMinutes>>,
pub monitoring_minutes: Option<Box<TimeSpanMinutes>>,
pub payment_tolerance: Option<f64>,
pub redirect_url: Option<String>,
pub redirect_automatically: Option<bool>,
pub requires_refund_email: Option<bool>,
pub default_language: Option<String>,
}Fields§
§speed_policy: Option<SpeedPolicy>§payment_methods: Option<Vec<String>>A specific set of payment methods to use for this invoice (ie. BTC, BTC-LightningNetwork). By default, select all payment methods enabled in the store.
default_payment_method: Option<String>Default payment type for the invoice (e.g., BTC, BTC-LightningNetwork). Default payment method set for the store is used if this parameter is not specified.
expiration_minutes: Option<Box<TimeSpanMinutes>>The number of minutes after which an invoice becomes expired. Defaults to the store’s settings. (The default store settings is 15)
monitoring_minutes: Option<Box<TimeSpanMinutes>>The number of minutes after an invoice expired after which we are still monitoring for incoming payments. Defaults to the store’s settings. (The default store settings is 1440, 1 day)
payment_tolerance: Option<f64>A percentage determining whether to count the invoice as paid when the invoice is paid within the specified margin of error. Defaults to the store’s settings. (The default store settings is 100)
redirect_url: Option<String>When the customer has paid the invoice, the URL where the customer will be redirected when clicking on the return to store button. You can use placeholders {InvoiceId} or {OrderId} in the URL, BTCPay Server will replace those with this invoice id or metadata.orderId respectively.
redirect_automatically: Option<bool>When the customer has paid the invoice, and a redirectURL is set, the checkout is redirected to redirectURL automatically if redirectAutomatically is true. Defaults to the store’s settings. (The default store settings is false)
requires_refund_email: Option<bool>Invoice will require user to provide a refund email if this option is set to true. Has no effect if buyerEmail metadata is set as there is no email to collect in this case.
default_language: Option<String>The language code (eg. en-US, en, fr-FR…) of the language presented to your customer in the checkout page. BTCPay Server tries to match the best language available. If null or not set, will fallback on the store’s default language. You can see the list of language codes with this operation.
Implementations§
Source§impl CheckoutOptions
impl CheckoutOptions
pub fn new() -> CheckoutOptions
Trait Implementations§
Source§impl Clone for CheckoutOptions
impl Clone for CheckoutOptions
Source§fn clone(&self) -> CheckoutOptions
fn clone(&self) -> CheckoutOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CheckoutOptions
impl Debug for CheckoutOptions
Source§impl Default for CheckoutOptions
impl Default for CheckoutOptions
Source§fn default() -> CheckoutOptions
fn default() -> CheckoutOptions
Source§impl<'de> Deserialize<'de> for CheckoutOptions
impl<'de> Deserialize<'de> for CheckoutOptions
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>,
Source§impl PartialEq for CheckoutOptions
impl PartialEq for CheckoutOptions
Source§fn eq(&self, other: &CheckoutOptions) -> bool
fn eq(&self, other: &CheckoutOptions) -> bool
self and other values to be equal, and is used by ==.