1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//Add this Lines :
using System.Security;
using System.Web;
using System.Web.Services;
using carola.Common;
using carola.Opeational.PayPalAPI.Sandbox;
using System.IO;
using System.Security.Cryptography.X509Certificates;
//This class is for paypal process payment, and use of paypal web service.
namespace carola.Opeational
{
public class PayPalManager
{
private PayPalAPIAASoapBinding PPInterface = new PayPalAPIAASoapBinding();
private PayPalAPISoapBinding service = new PayPalAPISoapBinding();
public PayPalManager()
{
UserIdPasswordType user = new UserIdPasswordType();
user.Username = ConfigurationManager.AppSettings["PayPalAPIUsername"];
user.Password = ConfigurationManager.AppSettings["PayPalAPIPassword"];
}
}
} |
Partager