protonemedia / laravel-paddle

Paddle.com API integration for Laravel with support for webhooks/events
https://protone.media/en/blog/a-new-laravel-package-to-handle-payments-and-subscriptions-with-paddle
MIT License
203 stars 18 forks source link

Multi vendor support? #28

Open Djuki opened 2 years ago

Djuki commented 2 years ago

At the moment, this library can be user for one vendor. What if our app has multiple tenants, and for each one of them we want to allow payments?

That would be possible if Request would not overwrite the vendor id and vendor_auth_code. and just read them from the config if the values do not exist in the $data.

If you would support PR for this, I can do that.

pascalbaljet commented 2 years ago

I would definitely support a PR for this, that's a great feature!

Djuki commented 2 years ago

@pascalbaljet Ok you can close the issue, I will work on this feature.

brunocfalcao commented 2 years ago

Can you also apply that logic for the paddle sandbox configuration please? Make it dynamic and not only configurable via the .env file :) thank you!

Djuki commented 2 years ago

@pascalbaljet Let me know what do you think about the overloading sandbox from config for: