• Home
  • SDK Documentation
Search Results for

    Show / Hide Table of Contents
    • MercadoPago.Client
      • AdvancedSearchRequest
      • IdempotentRequest
      • MercadoPagoClient<TResource>
      • RequestOptions
      • SearchRequest
    • MercadoPago.Client.AdvancedPayment
      • AdvancedPaymentAdditionalInfoPayerRequest
      • AdvancedPaymentAdditionalInfoRequest
      • AdvancedPaymentCancelRequest
      • AdvancedPaymentCaptureRequest
      • AdvancedPaymentClient
      • AdvancedPaymentCreateRequest
      • AdvancedPaymentDisbursementRequest
      • AdvancedPaymentItemRequest
      • AdvancedPaymentPayerRequest
      • AdvancedPaymentReceiverAddressRequest
      • AdvancedPaymentRefundClient
      • AdvancedPaymentRefundCreateRequest
      • AdvancedPaymentShipmentsRequest
      • AdvancedPaymentSplitPaymentRequest
      • AdvancedPaymentTaxRequest
      • AdvancedPaymentTransactionDetailsRequest
      • AdvancedPaymentUpdateReleaseDateRequest
    • MercadoPago.Client.AuthorizedPayment
      • AuthorizedPaymentClient
    • MercadoPago.Client.CardToken
      • CardTokenClient
      • CardTokenRequest
    • MercadoPago.Client.Common
      • AddressRequest
      • DifferentialPricingRequest
      • IdentificationRequest
      • PhoneRequest
      • SubMerchant
    • MercadoPago.Client.Customer
      • CustomerCardClient
      • CustomerCardCreateRequest
      • CustomerClient
      • CustomerDefaultAddressRequest
      • CustomerRequest
    • MercadoPago.Client.IdentificationType
      • IdentificationTypeClient
    • MercadoPago.Client.MerchantOrder
      • MerchantOrderClient
      • MerchantOrderCreateRequest
      • MerchantOrderItemRequest
      • MerchantOrderPayerRequest
      • MerchantOrderReceiverAddressCityRequest
      • MerchantOrderReceiverAddressCountryRequest
      • MerchantOrderReceiverAddressRequest
      • MerchantOrderReceiverAddressStateRequest
      • MerchantOrderShipmentRequest
      • MerchantOrderShippingEstimatedDeliveryRequest
      • MerchantOrderShippingOptionRequest
      • MerchantOrderShippingSpeedRequest
      • MerchantOrderUpdateRequest
    • MercadoPago.Client.OAuth
      • CreateOAuthCredentialRequest
      • OAuthClient
      • RefreshOAuthCredentialRequest
    • MercadoPago.Client.Order
      • OrderAddressRequest
      • OrderAutomaticPaymentRequest
      • OrderClient
      • OrderConfigRequest
      • OrderCreateRequest
      • OrderIdentificationRequest
      • OrderInvoicePeriodRequest
      • OrderItemsRequest
      • OrderOnlineConfigRequest
      • OrderPayerRequest
      • OrderPaymentMethodConfigRequest
      • OrderPaymentMethodRequest
      • OrderPaymentRequest
      • OrderPhoneRequest
      • OrderRefundClient
      • OrderRefundPaymentRequest
      • OrderRefundTransactionRequest
      • OrderStoredCredentialRequest
      • OrderSubscriptionDataRequest
      • OrderSubscriptionSequenceRequest
      • OrderTransactionClient
      • OrderTransactionRequest
      • OrderTransactionUpdateClient
    • MercadoPago.Client.Payment
      • PaymentAdditionalInfoPayerRequest
      • PaymentAdditionalInfoRequest
      • PaymentAuthenticationRequest
      • PaymentCancelRequest
      • PaymentCaptureRequest
      • PaymentCategoryDescriptorRequest
      • PaymentClient
      • PaymentCreateRequest
      • PaymentDataRequest
      • PaymentDiscountRequest
      • PaymentFeeRequest
      • PaymentForwardDataRequest
      • PaymentInvoicePeriodRequest
      • PaymentItemRequest
      • PaymentMerchantServicesRequest
      • PaymentMethodRequest
      • PaymentOrderRequest
      • PaymentPassengerRequest
      • PaymentPayerAddressRequest
      • PaymentPayerPhoneRequest
      • PaymentPayerRequest
      • PaymentPaymentReferenceRequest
      • PaymentPointOfInteractionRequest
      • PaymentReceiverAddressRequest
      • PaymentRefundClient
      • PaymentRefundCreateRequest
      • PaymentRouteRequest
      • PaymentRulesRequest
      • PaymentShipmentsRequest
      • PaymentSubscriptionSequenceRequest
      • PaymentTaxRequest
      • PaymentTransactionDataRequest
      • PaymentTransactionDetailsRequest
    • MercadoPago.Client.PaymentMethod
      • PaymentMethodClient
    • MercadoPago.Client.Preapproval
      • PreApprovalAutoRecurringCreateRequest
      • PreApprovalAutoRecurringUpdateRequest
      • PreapprovalClient
      • PreapprovalCreateRequest
      • PreapprovalUpdateRequest
    • MercadoPago.Client.Preference
      • PreferenceBackUrlsRequest
      • PreferenceCategoryDescriptorRequest
      • PreferenceClient
      • PreferenceFreeMethodRequest
      • PreferenceItemRequest
      • PreferencePassengerRequest
      • PreferencePayerRequest
      • PreferencePaymentMethodRequest
      • PreferencePaymentMethodsRequest
      • PreferencePaymentTypeRequest
      • PreferenceReceiverAddressRequest
      • PreferenceRequest
      • PreferenceRouteRequest
      • PreferenceShipmentsRequest
      • PreferenceTaxRequest
      • PreferenceTrackRequest
      • PreferenceTrackValuesRequest
    • MercadoPago.Client.User
      • UserClient
    • MercadoPago.Config
      • MercadoPagoConfig
    • MercadoPago.Error
      • ApiError
      • ApiErrorCause
      • MercadoPagoApiException
      • MercadoPagoException
    • MercadoPago.Http
      • DefaultHttpClient
      • DefaultRetryStrategy
      • Headers
      • HttpMethod
      • IHttpClient
      • IRetryStrategy
      • MercadoPagoRequest
      • MercadoPagoResponse
      • RetryResponse
    • MercadoPago.Resource
      • ElementsResourcesPage<TResource>
      • IResource
      • IResourcesPage<TResouce>
      • ResourcesList<TResource>
      • ResultsPaging
      • ResultsResourcesPage<TResource>
    • MercadoPago.Resource.AdvancedPayment
      • AdvancedPayment
      • AdvancedPaymentAdditionalInfo
      • AdvancedPaymentAdditionalInfoPayer
      • AdvancedPaymentDisbursement
      • AdvancedPaymentDisbursementRefund
      • AdvancedPaymentItem
      • AdvancedPaymentPayer
      • AdvancedPaymentReceiverAddress
      • AdvancedPaymentShipments
      • AdvancedPaymentSplitPayment
      • AdvancedPaymentStatus
      • AdvancedPaymentTax
      • AdvancedPaymentTransactionDetails
    • MercadoPago.Resource.AuthorizedPayment
      • AuthorizedPayment
      • AuthorizedPaymentStatus
    • MercadoPago.Resource.CardToken
      • CardToken
    • MercadoPago.Resource.Common
      • Address
      • Identification
      • Phone
      • Source
    • MercadoPago.Resource.Customer
      • Customer
      • CustomerAddress
      • CustomerAddressCity
      • CustomerAddressCountry
      • CustomerAddressMunicipality
      • CustomerAddressNeighborhood
      • CustomerAddressState
      • CustomerCard
      • CustomerCardCardholder
      • CustomerCardCardholderIdentification
      • CustomerCardIssuer
      • CustomerCardPaymentMethod
      • CustomerCardSecurityCode
      • CustomerDefaultAddress
    • MercadoPago.Resource.IdentificationType
      • IdentificationType
    • MercadoPago.Resource.MerchantOrder
      • MerchantOrder
      • MerchantOrderCollector
      • MerchantOrderItem
      • MerchantOrderPayer
      • MerchantOrderPayment
      • MerchantOrderReceiverAddress
      • MerchantOrderReceiverAddressCity
      • MerchantOrderReceiverAddressCountry
      • MerchantOrderReceiverAddressState
      • MerchantOrderShipment
      • MerchantOrderShippingEstimatedDelivery
      • MerchantOrderShippingOption
      • MerchantOrderShippingSpeed
    • MercadoPago.Resource.OAuth
      • OAuthCredential
    • MercadoPago.Resource.Order
      • Order
      • OrderAttempt
      • OrderIntegrationData
      • OrderItems
      • OrderPayer
      • OrderPayment
      • OrderPaymentMethod
      • OrderRefundItem
      • OrderSponsor
      • OrderTransaction
      • OrderUpdateTransaction
    • MercadoPago.Resource.Payment
      • Payment
      • PaymentAdditionalInfo
      • PaymentAdditionalInfoPayer
      • PaymentApplicationData
      • PaymentBankInfo
      • PaymentBankInfoCollector
      • PaymentBankInfoPayer
      • PaymentBarcode
      • PaymentCard
      • PaymentCardholder
      • PaymentData
      • PaymentDiscount
      • PaymentFee
      • PaymentFeeDetail
      • PaymentInvoicePeriod
      • PaymentItem
      • PaymentMethod
      • PaymentOrder
      • PaymentPayer
      • PaymentPaymentReference
      • PaymentPointOfInteraction
      • PaymentReceiverAddress
      • PaymentRefund
      • PaymentRules
      • PaymentShipments
      • PaymentStatus
      • PaymentSubscriptionSequence
      • PaymentTax
      • PaymentThreeDSInfo
      • PaymentTransactionData
      • PaymentTransactionDetails
    • MercadoPago.Resource.PaymentMethod
      • PaymentMethod
      • PaymentMethodFinancialInstitutions
      • PaymentMethodSettings
      • PaymentMethodSettingsBin
      • PaymentMethodSettingsCardNumber
      • PaymentMethodSettingsSecurityCode
    • MercadoPago.Resource.PreApproval
      • Preapproval
      • PreapprovalAutoRecurring
    • MercadoPago.Resource.Preference
      • Preference
      • PreferenceBackUrls
      • PreferenceCategoryDescriptor
      • PreferenceDifferentialPricing
      • PreferenceFreeMethod
      • PreferenceItem
      • PreferencePassenger
      • PreferencePayer
      • PreferencePaymentMethod
      • PreferencePaymentMethods
      • PreferencePaymentType
      • PreferenceReceiverAddress
      • PreferenceRoute
      • PreferenceShipments
      • PreferenceTax
      • PreferenceTrack
      • PreferenceTrackValues
    • MercadoPago.Resource.User
      • User
    • MercadoPago.Serialization
      • DefaultSerializer
      • ISerializer

    Class CustomerCardClient

    Client with methods of Customer Cards APIs.

    Inheritance
    object
    MercadoPagoClient<CustomerCard>
    CustomerCardClient
    Inherited Members
    MercadoPagoClient<CustomerCard>.HttpClient
    MercadoPagoClient<CustomerCard>.Serializer
    MercadoPagoClient<CustomerCard>.DefaultHeaders
    MercadoPagoClient<CustomerCard>.SendAsync(string, HttpMethod, object, RequestOptions, CancellationToken)
    MercadoPagoClient<CustomerCard>.Send(string, HttpMethod, object, RequestOptions)
    MercadoPagoClient<CustomerCard>.ListAsync(string, HttpMethod, object, RequestOptions, CancellationToken)
    MercadoPagoClient<CustomerCard>.List(string, HttpMethod, object, RequestOptions)
    MercadoPagoClient<CustomerCard>.SearchAsync<TPageResult>(string, SearchRequest, RequestOptions, CancellationToken)
    MercadoPagoClient<CustomerCard>.Search<TPageResult>(string, SearchRequest, RequestOptions)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MercadoPago.Client.Customer
    Assembly: MercadoPago.dll
    Syntax
    public class CustomerCardClient : MercadoPagoClient<CustomerCard>

    Constructors

    | Edit this page View Source

    CustomerCardClient()

    Initializes a new instance of the CustomerCardClient class.

    Declaration
    public CustomerCardClient()
    | Edit this page View Source

    CustomerCardClient(IHttpClient)

    Initializes a new instance of the CustomerCardClient class.

    Declaration
    public CustomerCardClient(IHttpClient httpClient)
    Parameters
    Type Name Description
    IHttpClient httpClient

    The http client that will be used in HTTP requests.

    | Edit this page View Source

    CustomerCardClient(IHttpClient, ISerializer)

    Initializes a new instance of the CustomerCardClient class.

    Declaration
    public CustomerCardClient(IHttpClient httpClient, ISerializer serializer)
    Parameters
    Type Name Description
    IHttpClient httpClient

    The http client that will be used in HTTP requests.

    ISerializer serializer

    The serializer that will be used to serialize the HTTP requests content and to deserialize the HTTP response content.

    | Edit this page View Source

    CustomerCardClient(ISerializer)

    Initializes a new instance of the CustomerCardClient class.

    Declaration
    public CustomerCardClient(ISerializer serializer)
    Parameters
    Type Name Description
    ISerializer serializer

    The serializer that will be used to serialize the HTTP requests content and to deserialize the HTTP response content.

    Methods

    | Edit this page View Source

    Create(string, CustomerCardCreateRequest, RequestOptions)

    Creates a card for customer.

    Declaration
    public CustomerCard Create(string customerId, CustomerCardCreateRequest request, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    string customerId

    Customer ID.

    CustomerCardCreateRequest request

    Request to create the card.

    RequestOptions requestOptions

    RequestOptions

    Returns
    Type Description
    CustomerCard

    The created card.

    Remarks

    Check the API documentation here.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    CreateAsync(string, CustomerCardCreateRequest, RequestOptions, CancellationToken)

    Creates a card for customer as an asynchronous operation.

    Declaration
    public Task<CustomerCard> CreateAsync(string customerId, CustomerCardCreateRequest request, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string customerId

    Customer ID.

    CustomerCardCreateRequest request

    Request to create the card.

    RequestOptions requestOptions

    RequestOptions

    CancellationToken cancellationToken

    Cancellation token

    Returns
    Type Description
    Task<CustomerCard>

    A task whose the result is the created card.

    Remarks

    Check the API documentation here.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    Delete(string, string, RequestOptions)

    Deletes the card of the customer.

    Declaration
    public CustomerCard Delete(string customerId, string cardId, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    string customerId

    The customer ID.

    string cardId

    The card ID.

    RequestOptions requestOptions

    RequestOptions

    Returns
    Type Description
    CustomerCard

    The deleted customer card.

    Remarks

    Check the API documentation here.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    DeleteAsync(string, string, RequestOptions, CancellationToken)

    Deletes async the card of the customer.

    Declaration
    public Task<CustomerCard> DeleteAsync(string customerId, string cardId, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string customerId

    The customer ID.

    string cardId

    The card ID.

    RequestOptions requestOptions

    RequestOptions

    CancellationToken cancellationToken

    Cancellation token

    Returns
    Type Description
    Task<CustomerCard>

    A task whose the result is the deleted customer card.

    Remarks

    Check the API documentation here.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    Get(string, string, RequestOptions)

    Get the card of the customer.

    Declaration
    public CustomerCard Get(string customerId, string cardId, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    string customerId

    The customer ID.

    string cardId

    The card ID.

    RequestOptions requestOptions

    RequestOptions

    Returns
    Type Description
    CustomerCard

    The customer card.

    Remarks

    Check the API documentation here.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    GetAsync(string, string, RequestOptions, CancellationToken)

    Get async the card of the customer.

    Declaration
    public Task<CustomerCard> GetAsync(string customerId, string cardId, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string customerId

    The customer ID.

    string cardId

    The card ID.

    RequestOptions requestOptions

    RequestOptions

    CancellationToken cancellationToken

    Cancellation token

    Returns
    Type Description
    Task<CustomerCard>

    A task whose the result is the customer card.

    Remarks

    Check the API documentation here.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    List(string, RequestOptions)

    List the cards of the customer.

    Declaration
    public ResourcesList<CustomerCard> List(string customerId, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    string customerId

    Customer ID.

    RequestOptions requestOptions

    RequestOptions

    Returns
    Type Description
    ResourcesList<CustomerCard>

    The list of cards.

    Remarks

    Check the API documentation here.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    ListAsync(string, RequestOptions, CancellationToken)

    List the cards of the customer as an asynchronous operation.

    Declaration
    public Task<ResourcesList<CustomerCard>> ListAsync(string customerId, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string customerId

    Customer ID.

    RequestOptions requestOptions

    RequestOptions

    CancellationToken cancellationToken

    Cancellation token

    Returns
    Type Description
    Task<ResourcesList<CustomerCard>>

    A task whose the result is the list of cards.

    Remarks

    Check the API documentation here.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX