#[non_exhaustive]pub enum NextAction {
Redirect {
url: Url,
continuation: Option<Box<str>>,
},
ConfirmOnClient {
client_secret: Box<str>,
},
}Expand description
What the payer has to do before the payment can go on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Redirect
Send the payer to this address — a hosted page, or an app deep link.
Fields
continuation: Option<Box<str>>A token to keep for when the payer comes back.
None is a provider that named the payment as it opened the flow,
so Charge::id is the handle and
Provider::charge_status is what
finishes it.
Some is a token, and what can be done with it is
Capabilities::resume_by_continuation:
true means Provider::resume takes it
and answers the finished charge, which is the only handle iyzico’s
classic form has until the payer is done. False means the token is
the provider’s own — iyzico’s In-Store paymentSessionToken opens
the encrypted callback it later posts, and PayTR’s is the segment
of the form address — and the adapter’s own call is what takes it.
ConfirmOnClient
Hand this to the provider’s client-side SDK and let it finish there.
Trait Implementations§
Source§impl Clone for NextAction
impl Clone for NextAction
Source§fn clone(&self) -> NextAction
fn clone(&self) -> NextAction
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 NextAction
impl Debug for NextAction
impl Eq for NextAction
Source§impl PartialEq for NextAction
impl PartialEq for NextAction
impl StructuralPartialEq for NextAction
Auto Trait Implementations§
impl Freeze for NextAction
impl RefUnwindSafe for NextAction
impl Send for NextAction
impl Sync for NextAction
impl Unpin for NextAction
impl UnsafeUnpin for NextAction
impl UnwindSafe for NextAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.