Re-fabrication
This commit is contained in:
57
Yavsc.Server/Settings/PayPalSettings.cs
Normal file
57
Yavsc.Server/Settings/PayPalSettings.cs
Normal file
@ -0,0 +1,57 @@
|
||||
namespace Yavsc
|
||||
{
|
||||
/// <summary>
|
||||
/// PayPal NV/SOAP API Credentials
|
||||
/// </summary>
|
||||
public class PayPalSettings {
|
||||
/// <summary>
|
||||
/// supported values: <c>sandbox</c> or <c>production</c>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Mode { get; set; }
|
||||
/// <summary>
|
||||
/// Client Id using the REST API
|
||||
/// </summary>
|
||||
public string ClientId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client Secret using the REST API
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string ClientSecret { get; set; }
|
||||
/// <summary>
|
||||
/// Application Id using the REST API
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string ApplicationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Get it from your PayPal Business profile settings
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string MerchantAccountId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Merchant PayPal Classic Api user name
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string MerchantAccountUserName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PayPal Classic Api credentials model
|
||||
/// </summary>
|
||||
public class ClassicPayPalAccountApiCredential {
|
||||
public string Signature { get; set; }
|
||||
public string ApiUsername { get; set; }
|
||||
public string ApiPassword { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Live access is configured at:
|
||||
/// https://www.paypal.com/businessprofile/mytools/apiaccess
|
||||
/// </summary>
|
||||
public ClassicPayPalAccountApiCredential[] Accounts { get; set; }
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user