mirror of
https://github.com/NecroticBamboo/QRBee.git
synced 2025-12-21 12:11:53 +00:00
25 lines
555 B
C#
25 lines
555 B
C#
namespace QRBee.Core.Data
|
|
{
|
|
public record PaymentResponse
|
|
{
|
|
|
|
public string ServerTransactionId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public PaymentRequest PaymentRequest
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Convert PaymentResponse to string to be encrypted and transmitted back to merchant
|
|
/// </summary>
|
|
/// <returns>Converted string</returns>
|
|
public string AsString() => $"{ServerTransactionId}|{PaymentRequest.AsString()}";
|
|
}
|
|
}
|