-
Notifications
You must be signed in to change notification settings - Fork 23
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
Silviana Ghita
committed
Oct 2, 2023
1 parent
e6fd8a7
commit f50d1d9
Showing
8 changed files
with
132 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -735,7 +735,8 @@ protected async Task<PayInIdealWebPostDTO> GetPayInIdealWebPost() | |
new Money { Amount = 20, Currency = CurrencyIso.EUR }, | ||
wallet.Id, | ||
"http://www.my-site.com/returnURL?transactionId=wt_71a08458-b0cc-468d-98f7-1302591fc238", | ||
"[email protected]", | ||
"RBRBNL21", | ||
"Ideal tag", | ||
"Ideal test" | ||
); | ||
|
||
|
@@ -753,8 +754,9 @@ protected async Task<PayInGiropayWebPostDTO> GetPayInGiropayWebPost() | |
new Money { Amount = 20, Currency = CurrencyIso.EUR }, | ||
wallet.Id, | ||
"http://www.my-site.com/returnURL?transactionId=wt_71a08458-b0cc-468d-98f7-1302591fc238", | ||
"[email protected]", | ||
"Giropay test" | ||
"Giropay tag", | ||
"test" | ||
|
||
); | ||
|
||
return payIn; | ||
|
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,14 @@ | ||
namespace MangoPay.SDK.Entities.GET | ||
{ | ||
public class PayInGiropayWebDTO: 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 | ||
public string ReturnURL { get; set; } | ||
|
||
/// <summary> The URL to which the user is redirected to complete the payment | ||
public string RedirectURL { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace MangoPay.SDK.Entities.GET | ||
{ | ||
public class PayInIdealWebDTO : 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 | ||
public string ReturnURL { get; set; } | ||
|
||
/// <summary> The URL to which the user is redirected to complete the payment | ||
public string RedirectURL { get; set; } | ||
|
||
/// <summary> Name of the end-user’s bank </summary> | ||
public string BankName { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
namespace MangoPay.SDK.Entities.POST | ||
{ | ||
public class PayInGiropayWebPostDTO : EntityPostBase | ||
{ | ||
public PayInGiropayWebPostDTO(string authorId, Money debitedFunds, Money fees, string creditedWalletId, | ||
string returnUrl, string tag = null, string statementDescriptor = null) | ||
{ | ||
AuthorId = authorId; | ||
DebitedFunds = debitedFunds; | ||
Fees = fees; | ||
CreditedWalletId = creditedWalletId; | ||
ReturnURL = returnUrl; | ||
StatementDescriptor = statementDescriptor; | ||
Tag = tag; | ||
} | ||
|
||
/// <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; } | ||
} | ||
} |
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,39 @@ | ||
namespace MangoPay.SDK.Entities.POST | ||
{ | ||
public class PayInIdealWebPostDTO : EntityPostBase | ||
{ | ||
public PayInIdealWebPostDTO(string authorId, Money debitedFunds, Money fees, string creditedWalletId, | ||
string returnUrl, string bic, string tag = null, string statementDescriptor = null) | ||
{ | ||
AuthorId = authorId; | ||
DebitedFunds = debitedFunds; | ||
Fees = fees; | ||
CreditedWalletId = creditedWalletId; | ||
ReturnURL = returnUrl; | ||
Bic = bic; | ||
StatementDescriptor = statementDescriptor; | ||
Tag = tag; | ||
} | ||
|
||
/// <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> The BIC identifier of the end-user’s bank | ||
public string Bic { get; set; } | ||
|
||
/// <summary>An optional value to be specified on the user's bank statement.</summary> | ||
public string StatementDescriptor { get; set; } | ||
} | ||
} |