Skip to content

Commit

Permalink
Merge pull request #93 from mercadopago/bugfix/PaymentIPN
Browse files Browse the repository at this point in the history
Add Load method on Payment class
  • Loading branch information
Pedro Gonçalves authored Nov 5, 2019
2 parents 1592e88 + be3793f commit 9282834
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion px-dotnet/Common/FeeType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public enum FeeType
/// <summary> Marketplace comision for the service </summary>
application_fee,
/// <summary> Discount given by the seller through cost absorption </summary>
discount_fee
discount_fee,
ml_fee,
mp_fee
}
}
5 changes: 5 additions & 0 deletions px-dotnet/Resources/Payment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public class Payment : MPBase
{
#region Actions

public Payment Load(string id)
{
return FindById(long.Parse(id), WITHOUT_CACHE, null);
}

/// <summary>
/// Find a payment trought an unique identifier
/// </summary>
Expand Down

0 comments on commit 9282834

Please sign in to comment.