unicodeveloper / laravel-paystack

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

Is this library compatible with REST implementations of Laravel logic? #121

Closed KgotsoK closed 3 years ago

KgotsoK commented 3 years ago

So I have a few Angular apps and they only hit my Laravel app through a REST API. I see most of these library methods process form input and can generate redirects etc. I would have loved to handle that in my own PWA. Are there methods that I can use to interface with paystack and simply produce JSON as a response to my PWA?

kingzamzon commented 3 years ago

So I have a few Angular apps and they only hit my Laravel app through a REST API. I see most of these library methods process form input and can generate redirects etc. I would have loved to handle that in my own PWA. Are there methods that I can use to interface with paystack and simply produce JSON as a response to my PWA?

I will recommend using Angular 4

kingzamzon commented 3 years ago

So I have a few Angular apps and they only hit my Laravel app through a REST API. I see most of these library methods process form input and can generate redirects etc. I would have loved to handle that in my own PWA. Are there methods that I can use to interface with paystack and simply produce JSON as a response to my PWA?

It seems I haven't answer your question, here is my answer:

The package returns JSON response after payment is successful so it ought to be applicable, but you have to set the parameters from frontend in this case your angular app. :)

KgotsoK commented 3 years ago

Awesome, thanks @kingzamzon I am busy testing it now... was skeptical of using that Angular4paystack library as it hasnt been updated in a while and I'd like my payment logic to be on the backend only.