yavsc/Yavsc.Server/Settings/PayPalSettings.cs

57 lines
1.7 KiB
C#
Raw Normal View History

2016-05-17 18:22:18 +02:00
namespace Yavsc
{
2017-05-24 23:36:49 +02:00
/// <summary>
/// PayPal NV/SOAP API Credentials
/// </summary>
2016-05-17 18:22:18 +02:00
public class PayPalSettings {
2017-05-24 23:36:49 +02:00
/// <summary>
/// supported values: <c>sandbox</c> or <c>production</c>
/// </summary>
/// <returns></returns>
2017-05-05 23:37:07 +02:00
public string Mode { get; set; }
2017-05-24 23:36:49 +02:00
/// <summary>
2017-05-30 23:42:04 +02:00
/// Client Id using the REST API
2017-05-24 23:36:49 +02:00
/// </summary>
2017-05-05 23:37:07 +02:00
public string ClientId { get; set; }
2017-05-26 03:34:09 +02:00
2017-05-24 23:36:49 +02:00
/// <summary>
2017-05-30 23:42:04 +02:00
/// Client Secret using the REST API
2017-05-24 23:36:49 +02:00
/// </summary>
/// <returns></returns>
public string ClientSecret { get; set; }
2017-05-26 03:34:09 +02:00
/// <summary>
2017-05-30 23:42:04 +02:00
/// Application Id using the REST API
2017-05-26 03:34:09 +02:00
/// </summary>
/// <returns></returns>
2017-05-24 23:36:49 +02:00
public string ApplicationId { get; set; }
2017-05-26 03:34:09 +02:00
/// <summary>
/// Get it from your PayPal Business profile settings
/// </summary>
/// <returns></returns>
public string MerchantAccountId { get; set; }
2017-05-28 06:13:49 +02:00
/// <summary>
/// Merchant PayPal Classic Api user name
/// </summary>
/// <returns></returns>
public string MerchantAccountUserName { get; set; }
2017-05-26 03:34:09 +02:00
/// <summary>
/// PayPal Classic Api credentials model
/// </summary>
2017-05-24 23:36:49 +02:00
public class ClassicPayPalAccountApiCredential {
public string Signature { get; set; }
public string ApiUsername { get; set; }
public string ApiPassword { get; set; }
}
2017-05-26 03:34:09 +02:00
/// <summary>
/// Live access is configured at:
/// https://www.paypal.com/businessprofile/mytools/apiaccess
/// </summary>
2017-05-24 23:36:49 +02:00
public ClassicPayPalAccountApiCredential[] Accounts { get; set; }
2017-05-26 03:34:09 +02:00
2016-05-17 18:22:18 +02:00
}
2017-05-05 23:37:07 +02:00
}