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"); } }
public PayPalBetaalMethode(PayPalCredentials cred) { credentials = cred; WriteCredentials(); }