예제 #1
0
 public PayPalBetaalMethode()
 {
     if (File.Exists(CREDENTIALSPATH))
     {
         credentials = JsonConvert.DeserializeObject <PayPalCredentials>(File.ReadAllText(CREDENTIALSPATH));
     }
     else
     {
         throw new FileNotFoundException("/PayPalConfig/credentials.json bestaat niet");
     }
 }
 public PayPalBetaalMethode()
 {
     if (File.Exists(CREDENTIALSPATH))
     {
         credentials = JsonConvert.DeserializeObject<PayPalCredentials>(File.ReadAllText(CREDENTIALSPATH));
     }
     else
     {
         throw new FileNotFoundException("/PayPalConfig/credentials.json bestaat niet");
     }
 }
예제 #3
0
 public PayPalBetaalMethode(PayPalCredentials cred)
 {
     credentials = cred;
     WriteCredentials();
 }
 public PayPalBetaalMethode(PayPalCredentials cred)
 {
     credentials = cred;
     WriteCredentials();
 }