Beispiel #1
0
 public static bool TryConnect(this StripePaymentSettings stripePaymentSettings)
 {
     try
     {
         var stripeService = new stripe.CustomerService(stripePaymentSettings.GetStripeClient());
         return(stripeService.List() != null);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }