pub struct RetrievePaymentIntent { /* private fields */ }
Expand description
Retrieves the details of a PaymentIntent that has previously been created.
You can retrieve a PaymentIntent client-side using a publishable key when the client_secret
is in the query string.
If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the payment intent object reference for more details.
Implementations§
Source§impl RetrievePaymentIntent
impl RetrievePaymentIntent
Sourcepub fn new(intent: impl Into<PaymentIntentId>) -> Self
pub fn new(intent: impl Into<PaymentIntentId>) -> Self
Construct a new RetrievePaymentIntent
.
Sourcepub fn client_secret(self, client_secret: impl Into<String>) -> Self
pub fn client_secret(self, client_secret: impl Into<String>) -> Self
The client secret of the PaymentIntent. We require it if you use a publishable key to retrieve the source.
Source§impl RetrievePaymentIntent
impl RetrievePaymentIntent
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for RetrievePaymentIntent
impl Clone for RetrievePaymentIntent
Source§fn clone(&self) -> RetrievePaymentIntent
fn clone(&self) -> RetrievePaymentIntent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RetrievePaymentIntent
impl Debug for RetrievePaymentIntent
Source§impl Serialize for RetrievePaymentIntent
impl Serialize for RetrievePaymentIntent
Source§impl StripeRequest for RetrievePaymentIntent
impl StripeRequest for RetrievePaymentIntent
Source§type Output = PaymentIntent
type Output = PaymentIntent
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for RetrievePaymentIntent
impl RefUnwindSafe for RetrievePaymentIntent
impl Send for RetrievePaymentIntent
impl Sync for RetrievePaymentIntent
impl Unpin for RetrievePaymentIntent
impl UnwindSafe for RetrievePaymentIntent
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