-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from Mangopay/feature/bancontact-payin
Bancontact payin
- Loading branch information
Showing
10 changed files
with
161 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using MangoPay.SDK.Core.Enumerations; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace MangoPay.SDK.Entities.GET | ||
{ | ||
public class PayInBancontactWebDTO : PayInDTO | ||
{ | ||
/// <summary>An optional value to be specified on the user's bank statement.</summary> | ||
public string StatementDescriptor { get; set; } | ||
|
||
/// <summary> The URL to redirect to after the payment, whether the transaction was successful or not </summary> | ||
public string ReturnURL { get; set; } | ||
|
||
/// <summary> The URL to which the user is redirected to complete the payment </summary> | ||
public string RedirectURL { get; set; } | ||
|
||
/// <summary> </summary> | ||
public string DeepLinkURL { get; set; } | ||
|
||
/// <summary>Culture (language).</summary> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public CultureCode? Culture { get; set; } | ||
|
||
/// <summary>Whether the Bancontact pay-ins are being made to be re-used in a recurring payment flow</summary> | ||
public bool? Recurring { get; set; } | ||
} | ||
} |
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,48 @@ | ||
using MangoPay.SDK.Core.Enumerations; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace MangoPay.SDK.Entities.POST | ||
{ | ||
public class PayInBancontactWebPostDTO : EntityPostBase | ||
{ | ||
public PayInBancontactWebPostDTO(string authorId, Money debitedFunds, Money fees, string creditedWalletId, | ||
string returnUrl, string tag = null, string statementDescriptor = null, bool? recurring = null, CultureCode? culture = null) | ||
{ | ||
AuthorId = authorId; | ||
DebitedFunds = debitedFunds; | ||
Fees = fees; | ||
CreditedWalletId = creditedWalletId; | ||
ReturnURL = returnUrl; | ||
StatementDescriptor = statementDescriptor; | ||
Tag = tag; | ||
Recurring = recurring; | ||
Culture = culture; | ||
} | ||
|
||
/// <summary>Author identifier.</summary> | ||
public string AuthorId { get; set; } | ||
|
||
/// <summary>Debited funds.</summary> | ||
public Money DebitedFunds { get; set; } | ||
|
||
/// <summary>Fees.</summary> | ||
public Money Fees { get; set; } | ||
|
||
/// <summary>Credited wallet identifier.</summary> | ||
public string CreditedWalletId { get; set; } | ||
|
||
/// <summary> The URL to redirect to after the payment, whether the transaction was successful or not | ||
public string ReturnURL { get; set; } | ||
|
||
/// <summary>An optional value to be specified on the user's bank statement.</summary> | ||
public string StatementDescriptor { get; set; } | ||
|
||
/// <summary>Culture (language).</summary> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public CultureCode? Culture { get; set; } | ||
|
||
/// <summary>Whether the Bancontact pay-ins are being made to be re-used in a recurring payment flow</summary> | ||
public bool? Recurring { get; set; } | ||
} | ||
} |
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