sCOREmdas 1.1.6
dotnet add package sCOREmdas --version 1.1.6
NuGet\Install-Package sCOREmdas -Version 1.1.6
<PackageReference Include="sCOREmdas" Version="1.1.6" />
<PackageVersion Include="sCOREmdas" Version="1.1.6" />
<PackageReference Include="sCOREmdas" />
paket add sCOREmdas --version 1.1.6
#r "nuget: sCOREmdas, 1.1.6"
#:package sCOREmdas@1.1.6
#addin nuget:?package=sCOREmdas&version=1.1.6
#tool nuget:?package=sCOREmdas&version=1.1.6
sCOREmdas - IfThenPay Payments
This package helps you to get and generate payments in your ASP.NET Core application/website.💸
How to use
Initialization
To start add the following variables on top of your controller
private CardCredentials cardCredentials;
private MbWayCredentials mbWayCredentials;
private Payments payments;
private PaymentsRedirect PaymentsRedirect;
private MBCredentials MBCredentials;
Configure the variables
Inside your controller load function or anywhere else you can set the all the variables above with the keys that Ifthenpay gives you. Like this:
cardCredentials = new()
{
Token = <Credit Card Token>,
URL = "https://ifthenpay.com/api/creditcard/init/"
};
And you're good to go to your first payment request!
Send a MBWay payment request
The following function allows you to send a payment request via MBWay.
return payments.SendMbWayRequest()
| Parameter | Type | Description |
|---|---|---|
credentials |
MbWayCredentials |
MBWay Token |
reference |
string |
MBWay reference code |
amount |
decimal |
Total Amount to pay |
phoneNumber |
string |
Phone Number to send the request (Need country code) |
email |
string |
Email of client (Opcional) |
message |
string |
Resume of payment request like "ShopIt - TShirts" |
Returns
| Type | Description |
|---|---|
string |
Id of request to validate in future. |
Contribution
Contribution always are welcomes! Contact me via LinkedIn
Please always respect the effort and give crédits for another person projects!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Add function to generate multibanco reference and entity codes to allow payments with MB (Services payments)