pub struct MercadoPagoSDK { /* private fields */ }
Implementations§
Source§impl MercadoPagoSDK
impl MercadoPagoSDK
pub fn create_preferences_checkout_pro( &self, opts: CheckoutProPreferences, ) -> Result<SDKRequest<'_, CheckoutProPreferencesResponse>, SDKError>
Sourcepub fn create_card_token(
&self,
opts: CardTokenOptions<'_>,
) -> Result<SDKRequest<'_, CardTokenResponse>, SDKError>
pub fn create_card_token( &self, opts: CardTokenOptions<'_>, ) -> Result<SDKRequest<'_, CardTokenResponse>, SDKError>
Used to create and save a credit/debit card token, instead of transacting raw sensitive data, such as card number.
Create a token before issuing payments with cards.
pub fn create_payment( &self, opts: CreatePaymentPayload, ) -> Result<SDKRequest<'_, CheckoutProPreferencesResponse>, SDKError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MercadoPagoSDK
impl !RefUnwindSafe for MercadoPagoSDK
impl Send for MercadoPagoSDK
impl Sync for MercadoPagoSDK
impl Unpin for MercadoPagoSDK
impl !UnwindSafe for MercadoPagoSDK
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