• 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 PaymentClient

    Client that use the Payments APIs.

    Inheritance
    object
    MercadoPagoClient<Payment>
    PaymentClient
    Inherited Members
    MercadoPagoClient<Payment>.HttpClient
    MercadoPagoClient<Payment>.Serializer
    MercadoPagoClient<Payment>.DefaultHeaders
    MercadoPagoClient<Payment>.SendAsync(string, HttpMethod, object, RequestOptions, CancellationToken)
    MercadoPagoClient<Payment>.Send(string, HttpMethod, object, RequestOptions)
    MercadoPagoClient<Payment>.ListAsync(string, HttpMethod, object, RequestOptions, CancellationToken)
    MercadoPagoClient<Payment>.List(string, HttpMethod, object, RequestOptions)
    MercadoPagoClient<Payment>.SearchAsync<TPageResult>(string, SearchRequest, RequestOptions, CancellationToken)
    MercadoPagoClient<Payment>.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.Payment
    Assembly: MercadoPago.dll
    Syntax
    public class PaymentClient : MercadoPagoClient<Payment>

    Constructors

    | Edit this page View Source

    PaymentClient()

    Initializes a new instance of the PaymentClient class.

    Declaration
    public PaymentClient()
    | Edit this page View Source

    PaymentClient(IHttpClient)

    Initializes a new instance of the PaymentClient class.

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

    The http client that will be used in HTTP requests.

    | Edit this page View Source

    PaymentClient(IHttpClient, ISerializer)

    Initializes a new instance of the PaymentClient class.

    Declaration
    public PaymentClient(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

    PaymentClient(ISerializer)

    Initializes a new instance of the PaymentClient class.

    Declaration
    public PaymentClient(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

    Cancel(long, RequestOptions)

    Cancels a pending payment.

    Declaration
    public Payment Cancel(long id, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    long id

    Payment id.

    RequestOptions requestOptions

    RequestOptions.

    Returns
    Type Description
    Payment

    The cancelled payment.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    CancelAsync(long, RequestOptions, CancellationToken)

    Cancels a pending payment async.

    Declaration
    public Task<Payment> CancelAsync(long id, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    long id

    Payment id.

    RequestOptions requestOptions

    RequestOptions.

    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    Task<Payment>

    A task whose the result is the cancelled payment.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    Capture(long, RequestOptions)

    Captures a authorized payment.

    Declaration
    public Payment Capture(long id, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    long id

    Payment id.

    RequestOptions requestOptions

    RequestOptions.

    Returns
    Type Description
    Payment

    The captured payment.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    Capture(long, decimal?, RequestOptions)

    Captures a authorized payment.

    Declaration
    public Payment Capture(long id, decimal? amount, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    long id

    Payment id.

    decimal? amount

    Amount to capture (if null, will capture the total payment amount).

    RequestOptions requestOptions

    RequestOptions.

    Returns
    Type Description
    Payment

    The captured payment.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    CaptureAsync(long, RequestOptions, CancellationToken)

    Captures a authorized payment async.

    Declaration
    public Task<Payment> CaptureAsync(long id, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    long id

    Payment id.

    RequestOptions requestOptions

    RequestOptions.

    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    Task<Payment>

    A task whose the result is the captured payment.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    CaptureAsync(long, decimal?, RequestOptions, CancellationToken)

    Captures a authorized payment async.

    Declaration
    public Task<Payment> CaptureAsync(long id, decimal? amount, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    long id

    Payment id.

    decimal? amount

    Amount to capture (if null, will capture the total payment amount).

    RequestOptions requestOptions

    RequestOptions.

    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    Task<Payment>

    A task whose the result is the captured payment.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    Create(PaymentCreateRequest, RequestOptions)

    Creates a payment.

    Declaration
    public Payment Create(PaymentCreateRequest request, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    PaymentCreateRequest request

    The data to create the payment.

    RequestOptions requestOptions

    RequestOptions.

    Returns
    Type Description
    Payment

    The created payment.

    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(PaymentCreateRequest, RequestOptions, CancellationToken)

    Creates a payment as an asynchronous operation.

    Declaration
    public Task<Payment> CreateAsync(PaymentCreateRequest request, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    PaymentCreateRequest request

    The data to create the payment.

    RequestOptions requestOptions

    RequestOptions

    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    Task<Payment>

    A task whose the result is the created payment.

    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(long, RequestOptions)

    Get a payment by your ID.

    Declaration
    public Payment Get(long id, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    long id

    The payment id.

    RequestOptions requestOptions

    RequestOptions

    Returns
    Type Description
    Payment

    The payment.

    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(long, RequestOptions, CancellationToken)

    Get async a payment by your ID.

    Declaration
    public Task<Payment> GetAsync(long id, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    long id

    The payment id.

    RequestOptions requestOptions

    RequestOptions

    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    Task<Payment>

    A task whose the result is the payment.

    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

    GetRefund(long, long, RequestOptions)

    Gets a refund by id from the payment.

    Declaration
    public PaymentRefund GetRefund(long paymentId, long refundId, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    long paymentId

    The payment ID.

    long refundId

    The refund ID.

    RequestOptions requestOptions

    RequestOptions

    Returns
    Type Description
    PaymentRefund

    A task whose the result is the refund.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    GetRefundAsync(long, long, RequestOptions, CancellationToken)

    Gets async a refund by id from the payment.

    Declaration
    public Task<PaymentRefund> GetRefundAsync(long id, long refundId, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    long id

    The payment ID.

    long refundId

    The refund ID.

    RequestOptions requestOptions

    RequestOptions

    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    Task<PaymentRefund>

    A task whose the result is the refund.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    ListRefunds(long, RequestOptions)

    Lists the refunds of the payment.

    Declaration
    public ResourcesList<PaymentRefund> ListRefunds(long id, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    long id

    The payment ID.

    RequestOptions requestOptions

    RequestOptions

    Returns
    Type Description
    ResourcesList<PaymentRefund>

    A task whose the result is the list of refund.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    ListRefundsAsync(long, RequestOptions, CancellationToken)

    Lists async the refunds of the payment.

    Declaration
    public Task<ResourcesList<PaymentRefund>> ListRefundsAsync(long id, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    long id

    The payment ID.

    RequestOptions requestOptions

    RequestOptions

    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    Task<ResourcesList<PaymentRefund>>

    A task whose the result is the list of refund.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    Refund(long, RequestOptions)

    Creates a total refund for payment.

    Declaration
    public PaymentRefund Refund(long id, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    long id

    The payment ID.

    RequestOptions requestOptions

    RequestOptions

    Returns
    Type Description
    PaymentRefund

    The refund.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    Refund(long, decimal?, RequestOptions)

    Creates a refund for payment.

    Declaration
    public PaymentRefund Refund(long id, decimal? amount, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    long id

    The payment ID.

    decimal? amount

    The amount to refund.

    RequestOptions requestOptions

    RequestOptions

    Returns
    Type Description
    PaymentRefund

    The refund.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    RefundAsync(long, RequestOptions, CancellationToken)

    Creates async a total refund for payment.

    Declaration
    public Task<PaymentRefund> RefundAsync(long id, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    long id

    The payment ID.

    RequestOptions requestOptions

    RequestOptions

    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    Task<PaymentRefund>

    A task whose the result is the refund.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    RefundAsync(long, decimal?, RequestOptions, CancellationToken)

    Creates async a refund for payment.

    Declaration
    public Task<PaymentRefund> RefundAsync(long id, decimal? amount, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    long id

    The payment ID.

    decimal? amount

    The amount to refund.

    RequestOptions requestOptions

    RequestOptions

    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    Task<PaymentRefund>

    A task whose the result is the refund.

    Exceptions
    Type Condition
    MercadoPagoException

    If a unexpected exception occurs.

    MercadoPagoApiException

    If the API returns a error.

    | Edit this page View Source

    Search(SearchRequest, RequestOptions)

    Searches for payments that match the criteria of AdvancedSearchRequest.

    Declaration
    public ResultsResourcesPage<Payment> Search(SearchRequest request, RequestOptions requestOptions = null)
    Parameters
    Type Name Description
    SearchRequest request

    The search request parameters.

    RequestOptions requestOptions

    RequestOptions.

    Returns
    Type Description
    ResultsResourcesPage<Payment>

    A page of payments.

    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

    SearchAsync(SearchRequest, RequestOptions, CancellationToken)

    Searches async for payments that match the criteria of AdvancedSearchRequest.

    Declaration
    public Task<ResultsResourcesPage<Payment>> SearchAsync(SearchRequest request, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    SearchRequest request

    The search request parameters.

    RequestOptions requestOptions

    RequestOptions.

    CancellationToken cancellationToken

    Cancellation token.

    Returns
    Type Description
    Task<ResultsResourcesPage<Payment>>

    A task whose the result is a page of payments.

    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