QRBee/QRBeeApi/Services/IPaymentGateway.cs

22 lines
505 B
C#

using QRBee.Api.Services.Database;
using QRBee.Core.Data;
namespace QRBee.Api.Services
{
public class GatewayResponse
{
public bool Success { get; init; }
public string? ErrorMessage { get; init; }
public string? GatewayTransactionId { get; init; }
}
public interface IPaymentGateway
{
Task<GatewayResponse> Payment(TransactionInfo info, ClientCardData clientCardData);
Task<GatewayResponse> CancelPayment(TransactionInfo info);
}
}