Début du Stripe dans l'API (clés pas là)

This commit is contained in:
MarcEricMartel
2022-12-04 08:28:12 -08:00
parent 6cc93bade0
commit 21cb3f0aa3
8 changed files with 92 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
namespace GrossesMitainesAPI.Models;
public class ChargeReturnModel {
public string Token { get; set; }
public string Description { get; set; }
public long AmountInCents { get; set; }
public string CurrencyCode { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
public int Invoice { get; set; }
}

View File

@@ -0,0 +1,10 @@
namespace GrossesMitainesAPI.Models;
public class ChargesModel {
public string Token { get; set; }
public string Description { get; set; }
public long AmountInCents { get; set; }
public string CurrencyCode { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
}

View File

@@ -38,6 +38,7 @@ public class InvoiceModel {
[Required]
public AddressModel ShippingAddress { get; set; }
public InStates Status { get; set; } = InStates.Confirmed;
public ChargesModel Payment { get; set; } // Pour enregistrer le paiement.
public InvoiceModel() { }
public InvoiceModel(SendInvoiceModel sinv) {

View File

@@ -0,0 +1,6 @@
namespace GrossesMitainesAPI.Models;
public class StripeOptions {
public string SecretKey { get; set; }
public string PublicKey { get; set; }
}