#[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 more