Exemple #1
0
 public void TestFixtureSetUp()
 {
     _banklinkApi = new BanklinkApi();
     _banklinkApi.Configure()
     .AddEstcardProvider()
     .AddEstcardConfiguration(new EstcardConfiguration
     {
         MerchantId             = "uid100049",
         ServiceUrl             = "http://localhost:8080/banklink/ec",
         BanksPublicCertificate = () => new X509Certificate2("Certs/Estcard/bank_cert.pem"),
         MerchantsPrivateKey    = () => new X509Certificate2("Certs/Estcard/merchant.pfx"),
     });
 }
Exemple #2
0
 public void TestFixtureSetUp()
 {
     _banklinkApi = new BanklinkApi();
     _banklinkApi.Configure()
     .AddIPizzaBankProvider()
     .AddIPizzaBankConfiguration(new IPizzaConfiguration
     {
         BankId                 = "GENIPIZZA",
         MerchantId             = "uid100010",
         PaymentServiceUrl      = "http://localhost:8080/banklink/ipizzapayment",
         AuthServiceUrl         = "http://localhost:8080/banklink/ipizzaauth",
         BanksPublicCertificate = () => new X509Certificate2("Certs/IPizza/bank_cert.pem"),
         MerchantsPrivateKey    = () => new X509Certificate2("Certs/IPizza/merchant.pfx"),
     });
 }
Exemple #3
0
 public HomeController(BanklinkApi banklinkApi)
 {
     _banklinkApi = banklinkApi;
 }