Skip to content

Commit 4c8d79f

Browse files
committed
Pagar.me package added to the project. CreditCard model created.
1 parent e3413b3 commit 4c8d79f

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Models/Payment/CreditCard.cs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace OnlineStore.Models.Payment
2+
{
3+
public class CreditCard
4+
{
5+
public string Number { get; set; }
6+
public string HolderName { get; set; }
7+
public string ExpirationDate { get; set; }
8+
public string Cvv { get; set; }
9+
}
10+
}

OnlineStore.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.3" />
1515
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.2" />
1616
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
17+
<PackageReference Include="Pagar.me" Version="2.6.15" />
1718
<PackageReference Include="X.PagedList.Mvc.Core" Version="8.0.7" />
1819
</ItemGroup>
1920
<ItemGroup>

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ To run this project, follow the steps below:
6262
6363
<!-- The connection string of your SQL Server database. -->
6464
<Database_Connection_String></Database_Connection_String>
65+
66+
<!-- The keys of your account on Pagar.me (a Brazilian payments intermediary service, such as PayPal, which facilitates transactions and payments). -->
67+
<PagarMe_ApiKey></PagarMe_ApiKey>
68+
<PagarMe_EncryptionKey></PagarMe_EncryptionKey>
6569
</root>
6670
```
6771
In the email account data, your email account must have permission to access less secure apps.

0 commit comments

Comments
 (0)