Skip to content

Commit

Permalink
Merge branch 'main' of github.com:mortenebak/laravel-quickpay
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenebak committed Jan 9, 2024
2 parents a335452 + dec209d commit f5b5098
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
7 changes: 3 additions & 4 deletions src/QuickpayServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Netbums\Quickpay;

use Netbums\Quickpay\Commands\QuickpayCommand;
use Spatie\LaravelPackageTools\Commands\InstallCommand;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
Expand All @@ -22,18 +21,18 @@ public function configurePackage(Package $package): void
->name('laravel-quickpay')
->hasConfigFile()
->publishesServiceProvider('QuickpayServiceProvider')
->hasInstallCommand(function(InstallCommand $command) {
->hasInstallCommand(function (InstallCommand $command) {
$command
->publishConfigFile()
->copyAndRegisterServiceProviderInApp();
// ->askToStarRepoOnGitHub('your-vendor/your-repo-name')
// ->askToStarRepoOnGitHub('your-vendor/your-repo-name')
});
}

public function boot(): void
{
$this->publishes([
__DIR__ . '/../config/quickpay.php' => config_path('quickpay.php'),
__DIR__.'/../config/quickpay.php' => config_path('quickpay.php'),
], 'config');
}

Expand Down
4 changes: 0 additions & 4 deletions src/Resources/Concerns/QuickpayApiConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ public function __construct(public QuickPay $client)
}

/**
* @param string $method
* @param string $endpoint
* @param array $data
* @return array
* @throws CardNotAccepted
* @throws QuickPayValidationError
*/
Expand Down
12 changes: 0 additions & 12 deletions src/Resources/PaymentResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class PaymentResource
use QuickpayApiConsumer;

/**
* @return array
* @throws FetchPaymentsFailed
* @throws CardNotAccepted
* @throws QuickPayValidationError
Expand All @@ -53,8 +52,6 @@ public function all(): array
}

/**
* @param Payment $payment
* @return array
* @throws CreatePaymentFailed
*/
public function create(Payment $payment): array
Expand All @@ -79,9 +76,6 @@ public function create(Payment $payment): array
/**
* Create or Update the Payment Link
*
* @param int $id
* @param PaymentLink $paymentLink
* @return array
* @throws CreatePaymentLinkFailed
*/
public function createLink(int $id, PaymentLink $paymentLink): array
Expand All @@ -106,8 +100,6 @@ public function createLink(int $id, PaymentLink $paymentLink): array
/**
* Delete payment link
*
* @param int $id
* @return array
* @throws DeletePaymentLinkFailed
*/
public function deleteLink(int $id): array
Expand All @@ -131,8 +123,6 @@ public function deleteLink(int $id): array
/**
* Get Payment
*
* @param int $id
* @return array
* @throws FetchPaymentFailed
*/
public function find(int $id): array
Expand All @@ -156,8 +146,6 @@ public function find(int $id): array
/**
* Create payment session
*
* @param int $id
* @return array
* @throws CreatePaymentSessionFailed
*/
public function createPaymentSession(int $id): array
Expand Down

0 comments on commit f5b5098

Please sign in to comment.