unicodeveloper / laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9, 10 and 11 Package for Paystack
https://paystack.co
MIT License
612 stars 314 forks source link

Updated src/Paystack.php #21

Closed imyque closed 7 years ago

imyque commented 7 years ago
  1. UPDATE: The makePaymentRequest function builds the payload from the request, assuming the request as the only source of the payload. In a situation when Laravel is used strictly as an API backend, there are situations where the payload needs to be built dynamically, say from within the controller and not from a view or request.

  2. NEW: Added getAuthorizationResponse function for a Laravel API scenario, where the controller may want take a different course of action if the initialization succeeded or not