File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ interface PaystackContract
1313 /**
1414 * Redirect the user to Paystack's payment page
1515 */
16- public function redirectToCheckout (array $ data = null ): RedirectResponse ;
16+ public function redirectToCheckout (? array $ data = null ): RedirectResponse ;
1717
1818 /**
1919 * Hit Paystack's verify endpoint to validate the payment and get the payment details
Original file line number Diff line number Diff line change 2020
2121class FlutterwaveService extends BaseGateWay implements FlutterwaveContract
2222{
23- use ConsumesExternalServices,
24- BankTrait,
23+ use BankTrait,
24+ ChargeTrait,
25+ ConsumesExternalServices,
26+ OtpTrait,
27+ PaymentPlanTrait,
2528 SettlementTrait,
2629 SubscriptionTrait,
27- PaymentPlanTrait ,
30+ TransactionTrait ,
2831 TransferBeneficiaryTrait,
29- TransferTrait,
30- OtpTrait,
31- ChargeTrait,
32- TransactionTrait;
32+ TransferTrait;
3333
3434 /**
3535 * The redirect url to consume the Flutterwave's service
Original file line number Diff line number Diff line change 1313
1414class PaystackService extends BaseGateWay implements PaystackContract
1515{
16- use TransactionTrait ,
17- TransferTrait ,
18- BankTrait ;
16+ use BankTrait ,
17+ TransactionTrait ,
18+ TransferTrait ;
1919
2020 /**
2121 * The payload to initiate the transaction
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ class PaymentWebhookHandler
3333 const WEBHOOK_RESPONSE_STATUS = 200 ;
3434
3535 public function __construct (
36- Request $ request ,
37- PaymentWebhookConfig $ webhookConfig
36+ Request $ request ,
37+ PaymentWebhookConfig $ webhookConfig
3838 ) {
3939 $ this ->request = $ request ;
4040 $ this ->webhookConfig = $ webhookConfig ;
@@ -143,7 +143,7 @@ protected function storeWebhook(): PaymentWebhookLog
143143 *
144144 * @throws InvalidPaymentWebhookConfig|InvalidPaymentWebhookHandler
145145 */
146- protected function processPaymentWebhook (PaymentWebhookLog $ webhookLog = null ): void
146+ protected function processPaymentWebhook (? PaymentWebhookLog $ webhookLog = null ): void
147147 {
148148 try {
149149 $ paymentWebhookHandler = $ this ->webhookConfig ->paymentWebhookHandler ?? self ::WEBHOOK_HANDLER_JOB ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ private function redirectRequest(): RedirectResponse
5959 /**
6060 * Redirect the user to Paystack's payment checkout page
6161 */
62- public function redirectToCheckout (array $ data = null ): RedirectResponse
62+ public function redirectToCheckout (? array $ data = null ): RedirectResponse
6363 {
6464 is_null ($ data ) ?: $ this ->payload = $ data ;
6565
You can’t perform that action at this time.
0 commit comments