Début du Stripe dans l'API (clés pas là)
This commit is contained in:
@@ -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; }
|
||||
}
|
10
GrossesMitaines/GrossesMitainesAPI/Models/ChargesModel.cs
Normal file
10
GrossesMitaines/GrossesMitainesAPI/Models/ChargesModel.cs
Normal 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; }
|
||||
}
|
@@ -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) {
|
||||
|
@@ -0,0 +1,6 @@
|
||||
namespace GrossesMitainesAPI.Models;
|
||||
public class StripeOptions {
|
||||
public string SecretKey { get; set; }
|
||||
public string PublicKey { get; set; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user