pub struct PaymentRequest {
pub payee: String,
pub amount: f64,
pub payer: Option<String>,
pub currency: Option<String>,
pub description: Option<String>,
pub reference: Option<String>,
pub app_fee: Option<f64>,
pub return_url: Option<String>,
pub cancel_url: Option<String>,
}Expand description
What create needs. amount is in dollars; usd is the only currency for now.
Fields§
§payee: StringEmail of the Fauna account that gets paid.
amount: f64§payer: Option<String>§currency: Option<String>§description: Option<String>§reference: Option<String>§app_fee: Option<f64>The app’s own fee, a percent of the amount (at most 30), paid to the account that owns the API key once the payment succeeds. Only an API key can ask for one, and its account needs payouts set up.
return_url: Option<String>Where Checkout sends the payer back, with ?payment=paid or ?payment=cancelled.
cancel_url: Option<String>Trait Implementations§
Source§impl Clone for PaymentRequest
impl Clone for PaymentRequest
Source§impl Debug for PaymentRequest
impl Debug for PaymentRequest
Source§impl Default for PaymentRequest
impl Default for PaymentRequest
Source§impl<'de> Deserialize<'de> for PaymentRequest
impl<'de> Deserialize<'de> for PaymentRequest
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 Forget for PaymentRequest
impl Freeze for PaymentRequest
impl Move for PaymentRequest
impl RefUnwindSafe for PaymentRequest
impl Send for PaymentRequest
impl Sync for PaymentRequest
impl Unpin for PaymentRequest
impl UnsafeUnpin for PaymentRequest
impl UnwindSafe for PaymentRequest
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