-
Notifications
You must be signed in to change notification settings - Fork 24
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
Iulian Masar
committed
Feb 10, 2025
1 parent
02fcf3d
commit 38b846e
Showing
8 changed files
with
176 additions
and
18 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,30 @@ | ||
namespace MangoPay.SDK.Entities.GET | ||
{ | ||
public class PayInSwishWebDTO: 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> The mobile URL to which to redirect the user to complete the payment in an app-to-app flow. </summary> | ||
public string DeepLinkURL { get; set; } | ||
|
||
/// <summary> The PNG file of the Swish QR code as a Base64-encoded string. </summary> | ||
public string QRCodeURL { get; set; } | ||
|
||
/// <summary> | ||
/// <p>Allowed values: WEB, APP</p> | ||
/// <p>Default value: WEB</p> | ||
/// <p>The platform environment of the post-payment flow. The PaymentFlow value combines with the ReturnURL to manage the redirection behavior after payment:</p> | ||
/// <p>Set the value to APP to send the user to your platform’s mobile app</p> | ||
/// <p>Set the value to WEB to send the user to a web browser</p> | ||
/// <p>In both cases you need to provide the relevant ReturnURL, whether to your app or website.</p> | ||
/// </summary> | ||
public string PaymentFlow { 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,42 @@ | ||
namespace MangoPay.SDK.Entities.GET | ||
{ | ||
public class PayInSwishWebPostDTO: EntityPostBase | ||
{ | ||
public PayInSwishWebPostDTO(string authorId, Money debitedFunds, Money fees, string creditedWalletId, string returnUrl) | ||
{ | ||
AuthorId = authorId; | ||
DebitedFunds = debitedFunds; | ||
Fees = fees; | ||
CreditedWalletId = creditedWalletId; | ||
ReturnURL = returnUrl; | ||
} | ||
|
||
/// <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> | ||
/// <p>Allowed values: WEB, APP</p> | ||
/// <p>Default value: WEB</p> | ||
/// <p>The platform environment of the post-payment flow. The PaymentFlow value combines with the ReturnURL to manage the redirection behavior after payment:</p> | ||
/// <p>Set the value to APP to send the user to your platform’s mobile app</p> | ||
/// <p>Set the value to WEB to send the user to a web browser</p> | ||
/// <p>In both cases you need to provide the relevant ReturnURL, whether to your app or website.</p> | ||
/// </summary> | ||
public string PaymentFlow { get; set; } | ||
} | ||
} |