From c0907d81f9c2c66008172bc958a00266576c9fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=8Carodej?= Date: Tue, 10 May 2022 16:21:18 +0200 Subject: [PATCH] removing files --- .../Actions/TestPayPalConnectionAction.php | 61 ------------------- .../Actions/TestPaystackConnectionAction.php | 59 ------------------ .../Actions/TestStripeConnectionAction.php | 60 ------------------ 3 files changed, 180 deletions(-) delete mode 100644 src/Domain/Settings/Actions/TestPayPalConnectionAction.php delete mode 100644 src/Domain/Settings/Actions/TestPaystackConnectionAction.php delete mode 100644 src/Domain/Settings/Actions/TestStripeConnectionAction.php diff --git a/src/Domain/Settings/Actions/TestPayPalConnectionAction.php b/src/Domain/Settings/Actions/TestPayPalConnectionAction.php deleted file mode 100644 index f67969ff..00000000 --- a/src/Domain/Settings/Actions/TestPayPalConnectionAction.php +++ /dev/null @@ -1,61 +0,0 @@ - [ - 'secret' => $credentials['secret'], - 'id' => $credentials['key'], - 'webhook_id' => $credentials['webhook'], - 'is_live' => $credentials['live'], - ], - ]); - - // Define test plan - $data = CreateFixedPlanData::fromArray([ - 'type' => 'fixed', - 'name' => 'Test Plan', - 'description' => null, - 'features' => [ - 'max_storage_amount' => 200, - 'max_team_members' => 20, - ], - 'currency' => 'EUR', - 'amount' => 99, - 'interval' => 'month', - ]); - - // Create test plan - $plan = $this->subscription - ->driver('paypal') - ->createFixedPlan($data); - - // Delete plan - $this->subscription - ->driver('paypal') - ->deletePlan($plan['id']); - } catch (ErrorException $error) { - abort( - response()->json([ - 'type' => 'service-connection-error', - 'title' => 'Service Connection Error', - 'message' => $error->getMessage(), - ], 401) - ); - } - } -} diff --git a/src/Domain/Settings/Actions/TestPaystackConnectionAction.php b/src/Domain/Settings/Actions/TestPaystackConnectionAction.php deleted file mode 100644 index d9606c16..00000000 --- a/src/Domain/Settings/Actions/TestPaystackConnectionAction.php +++ /dev/null @@ -1,59 +0,0 @@ - [ - 'secret' => $credentials['secret'], - 'public_key' => $credentials['key'], - ], - ]); - - // Define test plan - $data = CreateFixedPlanData::fromArray([ - 'type' => 'fixed', - 'name' => 'Test Plan', - 'description' => null, - 'features' => [ - 'max_storage_amount' => 200, - 'max_team_members' => 20, - ], - 'currency' => 'ZAR', - 'amount' => 99999, - 'interval' => 'month', - ]); - - // Create test plan - $plan = $this->subscription - ->driver('paystack') - ->createFixedPlan($data); - - // Delete plan - $this->subscription - ->driver('paystack') - ->deletePlan($plan['id']); - } catch (ErrorException $error) { - abort( - response()->json([ - 'type' => 'service-connection-error', - 'title' => 'Service Connection Error', - 'message' => $error->getMessage(), - ], 401) - ); - } - } -} diff --git a/src/Domain/Settings/Actions/TestStripeConnectionAction.php b/src/Domain/Settings/Actions/TestStripeConnectionAction.php deleted file mode 100644 index 6a396c5b..00000000 --- a/src/Domain/Settings/Actions/TestStripeConnectionAction.php +++ /dev/null @@ -1,60 +0,0 @@ - [ - 'secret' => $credentials['secret'], - 'public_key' => $credentials['key'], - 'webhook_key' => $credentials['webhook'], - ], - ]); - - // Define test plan - $data = CreateFixedPlanData::fromArray([ - 'type' => 'fixed', - 'name' => 'Test Plan', - 'description' => null, - 'features' => [ - 'max_storage_amount' => 200, - 'max_team_members' => 20, - ], - 'currency' => 'EUR', - 'amount' => 99, - 'interval' => 'month', - ]); - - // Create test plan - $plan = $this->subscription - ->driver('stripe') - ->createFixedPlan($data); - - // Delete plan - $this->subscription - ->driver('stripe') - ->deletePlan($plan['id']); - } catch (ErrorException $error) { - abort( - response()->json([ - 'type' => 'service-connection-error', - 'title' => 'Service Connection Error', - 'message' => $error->getMessage(), - ], 401) - ); - } - } -}