pub struct PaymentsSender<T: Transport> { /* private fields */ }
Expand description
PaymentsSender sends messages to a Payments service client for sending Payments messages
Implementations§
Source§impl<T: Transport> PaymentsSender<T>
impl<T: Transport> PaymentsSender<T>
pub fn set_timeout(&self, interval: Duration)
Trait Implementations§
Source§impl<T: Clone + Transport> Clone for PaymentsSender<T>
impl<T: Clone + Transport> Clone for PaymentsSender<T>
Source§fn clone(&self) -> PaymentsSender<T>
fn clone(&self) -> PaymentsSender<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T: Transport + Sync + Send> Payments for PaymentsSender<T>
impl<T: Transport + Sync + Send> Payments for PaymentsSender<T>
AuthorizePayment - Validates that a potential payment transaction can go through. If this succeeds then we should assume it is safe to complete a payment. Payments cannot be completed without getting a validation code (in other words, all payments have to be pre-authorized).
Source§fn complete_payment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 CompletePaymentRequest,
) -> Pin<Box<dyn Future<Output = RpcResult<CompletePaymentResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn complete_payment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 CompletePaymentRequest,
) -> Pin<Box<dyn Future<Output = RpcResult<CompletePaymentResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Completes a previously authorized payment. This operation requires the “authorization code” from a successful authorization operation.
Source§fn get_payment_methods<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
) -> Pin<Box<dyn Future<Output = RpcResult<PaymentMethods>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_payment_methods<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
) -> Pin<Box<dyn Future<Output = RpcResult<PaymentMethods>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
GetPaymentMethods
- Retrieves an opaque list of payment methods,
which is a list of customer-facing method names and the
tokens
belonging to that payment method. You could think of this list as
a previously saved list of payment methods stored in a “wallet”.
A payment method token is required to authorize and subsequently
complete a payment transaction. A customer could have previously
supplied their credit card and user-friendly labels for those methods
like “personal” and “work”, etc.