zfhassaan/easypaisa ? reverse-engineered prompt
Reverse engineered prompt
Build me a Laravel package for EasyPaisa payments that works with Laravel 9 and 10. I want it to let my app take payments in two ways, one where it sends the payment request directly through the API, and one where it redirects the customer to the EasyPaisa hosted checkout page.
Please include the setup people would expect, like a config file, environment variables for sandbox and production, and a simple way to use it from a controller. I should be able to pass in order details, amount, mobile account number, and email, then get back the payment response or a redirect URL.
Also add a basic checkout view for the hosted flow, and make sure the package is easy to install with Composer and publishable through Artisan. Keep it clean, secure, and ready for a real Laravel app. If anything in the current docs is unclear, look up the latest EasyPaisa integration details online before coding.
Are you gonna build this?
make sure you review the code using coderabbit