-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18dc68b
commit 92c6951
Showing
15 changed files
with
297 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma warning disable 1591 | ||
|
||
namespace Braintree | ||
{ | ||
// NEXT_MAJOR_VERSION Rename Android Pay to Google Pay | ||
public class TransactionAndroidPayCardRequest : Request | ||
{ | ||
public string Cryptogram { get; set; } | ||
public string EciIndicator { get; set; } | ||
public string ExpirationMonth { get; set; } | ||
public string ExpirationYear { get; set; } | ||
public string GoogleTransactionId { get; set; } | ||
public string Number { get; set; } | ||
public string SourceCardLastFour { get; set; } | ||
public string SourceCardType { get; set; } | ||
|
||
public override string ToXml() | ||
{ | ||
return ToXml("android-pay-card"); | ||
} | ||
|
||
public override string ToXml(string rootElement) | ||
{ | ||
return BuildRequest(rootElement).ToXml(); | ||
} | ||
|
||
protected virtual RequestBuilder BuildRequest(string root) | ||
{ | ||
return new RequestBuilder(root). | ||
AddElement("cryptogram", Cryptogram). | ||
AddElement("eci-indicator", EciIndicator). | ||
AddElement("expiration-month", ExpirationMonth). | ||
AddElement("expiration-year", ExpirationYear). | ||
AddElement("number", Number). | ||
AddElement("google-transaction-id", GoogleTransactionId). | ||
AddElement("source-card-last-four", SourceCardLastFour). | ||
AddElement("source-card-type", SourceCardType); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
namespace Braintree | ||
{ | ||
public class TransactionApplePayCardRequest : Request | ||
{ | ||
public string Number { get; set; } | ||
public string CardholderName { get; set; } | ||
public string Cryptogram { get; set; } | ||
public string ExpirationMonth { get; set; } | ||
public string ExpirationYear { get; set; } | ||
public string EciIndicator { get; set; } | ||
|
||
public override string ToXml() | ||
{ | ||
return ToXml("apple-pay-card"); | ||
} | ||
|
||
public override string ToXml(string root) | ||
{ | ||
return BuildRequest(root).ToXml(); | ||
} | ||
|
||
protected virtual RequestBuilder BuildRequest(string root) | ||
{ | ||
return new RequestBuilder(root). | ||
AddElement("number", Number). | ||
AddElement("cardholder-name", CardholderName). | ||
AddElement("cryptogram", Cryptogram). | ||
AddElement("expiration-month", ExpirationMonth). | ||
AddElement("expiration-year", ExpirationYear). | ||
AddElement("eci-indicator", EciIndicator); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.