Class Preference
Preference resource.
Implements
Inherited Members
Namespace: MercadoPago.Resource.Preference
Assembly: MercadoPago.dll
Syntax
public class Preference : IResource
Remarks
For more information, access here.
Properties
| Edit this page View SourceAdditionalInfo
Additional info.
Declaration
public string AdditionalInfo { get; set; }
Property Value
Type | Description |
---|---|
string |
ApiResponse
Response from API.
Declaration
public MercadoPagoResponse ApiResponse { get; set; }
Property Value
Type | Description |
---|---|
MercadoPagoResponse |
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 PreferenceBackUrls BackUrls { get; set; }
Property Value
Type | Description |
---|---|
PreferenceBackUrls |
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? |
CollectorId
Collector ID.
Declaration
public long? CollectorId { get; set; }
Property Value
Type | Description |
---|---|
long? |
DateCreated
Date of creation.
Declaration
public DateTime? DateCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
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 PreferenceDifferentialPricing DifferentialPricing { get; set; }
Property Value
Type | Description |
---|---|
PreferenceDifferentialPricing |
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 |
Id
Preference ID.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
InitPoint
Checkout URL from preference.
Declaration
public string InitPoint { get; set; }
Property Value
Type | Description |
---|---|
string |
Items
List of items to be paid.
Declaration
public IList<PreferenceItem> Items { get; set; }
Property Value
Type | Description |
---|---|
IList<PreferenceItem> |
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 PreferencePayer Payer { get; set; }
Property Value
Type | Description |
---|---|
PreferencePayer |
PaymentMethods
Set up payment methods.
Declaration
public PreferencePaymentMethods PaymentMethods { get; set; }
Property Value
Type | Description |
---|---|
PreferencePaymentMethods |
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 |
SandboxInitPoint
Sandbox checkout URL from preference.
Declaration
public string SandboxInitPoint { get; set; }
Property Value
Type | Description |
---|---|
string |
Shipments
Shipments information.
Declaration
public PreferenceShipments Shipments { get; set; }
Property Value
Type | Description |
---|---|
PreferenceShipments |
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<PreferenceTax> Taxes { get; set; }
Property Value
Type | Description |
---|---|
IList<PreferenceTax> |
Tracks
Tracks to be executed during the users's interaction in the Checkout flow.
Declaration
public IList<PreferenceTrack> Tracks { get; set; }
Property Value
Type | Description |
---|---|
IList<PreferenceTrack> |