Class PreferenceRequest
Parameters to create/update a preference.
Inherited Members
Namespace: MercadoPago.Client.Preference
Assembly: MercadoPago.dll
Syntax
public class PreferenceRequest
Remarks
Properties
| Edit this page View SourceAdditionalInfo
Additional info.
Declaration
public string AdditionalInfo { get; set; }
Property Value
Type | Description |
---|---|
string |
AutoReturn
If specified, your buyers will be redirected back to your site immediately after completing the purchase.
Declaration
public string AutoReturn { get; set; }
Property Value
Type | Description |
---|---|
string |
BackUrls
URLs to return to the sellers website.
Declaration
public PreferenceBackUrlsRequest BackUrls { get; set; }
Property Value
Type | Description |
---|---|
PreferenceBackUrlsRequest |
BinaryMode
When set to true, the payment can only be approved or rejected. Otherwise in_process status is added.
Declaration
public bool? BinaryMode { get; set; }
Property Value
Type | Description |
---|---|
bool? |
DateOfExpiration
Expiration date of cash payment.
Declaration
public DateTime? DateOfExpiration { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
DifferentialPricing
Differential pricing configuration for this preference.
Declaration
public DifferentialPricingRequest DifferentialPricing { get; set; }
Property Value
Type | Description |
---|---|
DifferentialPricingRequest |
ExpirationDateFrom
Date since the preference will be active.
Declaration
public DateTime? ExpirationDateFrom { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
ExpirationDateTo
Date when the preference will be expired.
Declaration
public DateTime? ExpirationDateTo { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
Expires
true
if a preference expire, false
if not.
Declaration
public bool? Expires { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ExternalReference
Reference you can synchronize with your payment system.
Declaration
public string ExternalReference { get; set; }
Property Value
Type | Description |
---|---|
string |
Items
List of items to be paid.
Declaration
public IList<PreferenceItemRequest> Items { get; set; }
Property Value
Type | Description |
---|---|
IList<PreferenceItemRequest> |
Marketplace
Origin of the payment. Default value: NONE.
Declaration
public string Marketplace { get; set; }
Property Value
Type | Description |
---|---|
string |
MarketplaceFee
Marketplace's fee charged by application owner.
Declaration
public decimal? MarketplaceFee { get; set; }
Property Value
Type | Description |
---|---|
decimal? |
Metadata
Data that can be attached to the preference to record additional attributes of the merchant.
Declaration
public IDictionary<string, object> Metadata { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> |
NotificationUrl
URL where you'd like to receive a payment notification.
Declaration
public string NotificationUrl { get; set; }
Property Value
Type | Description |
---|---|
string |
OperationType
Operation type.
Declaration
public string OperationType { get; set; }
Property Value
Type | Description |
---|---|
string |
Payer
Payer information.
Declaration
public PreferencePayerRequest Payer { get; set; }
Property Value
Type | Description |
---|---|
PreferencePayerRequest |
PaymentMethods
Set up payment methods.
Declaration
public PreferencePaymentMethodsRequest PaymentMethods { get; set; }
Property Value
Type | Description |
---|---|
PreferencePaymentMethodsRequest |
ProcessingModes
Configures which processing modes to use.
Declaration
public IList<string> ProcessingModes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Purpose
Purpose of the Preference.
Declaration
public string Purpose { get; set; }
Property Value
Type | Description |
---|---|
string |
Shipments
Shipments information.
Declaration
public PreferenceShipmentsRequest Shipments { get; set; }
Property Value
Type | Description |
---|---|
PreferenceShipmentsRequest |
SponsorId
Sponsor Id.
Declaration
public long? SponsorId { get; set; }
Property Value
Type | Description |
---|---|
long? |
StatementDescriptor
How will look the payment in the card bill (e.g.: MERCADOPAGO).
Declaration
public string StatementDescriptor { get; set; }
Property Value
Type | Description |
---|---|
string |
Taxes
Taxes for preferences.
Declaration
public IList<PreferenceTaxRequest> Taxes { get; set; }
Property Value
Type | Description |
---|---|
IList<PreferenceTaxRequest> |
Tracks
Tracks to be executed during the users's interaction in the Checkout flow.
Declaration
public IList<PreferenceTrackRequest> Tracks { get; set; }
Property Value
Type | Description |
---|---|
IList<PreferenceTrackRequest> |