laravel-paddle icon indicating copy to clipboard operation
laravel-paddle copied to clipboard

Multi vendor support?

Open Djuki opened this issue 3 years ago • 4 comments

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.

Djuki avatar Feb 09 '22 14:02 Djuki

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

pascalbaljet avatar Feb 10 '22 20:02 pascalbaljet

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

Djuki avatar Feb 11 '22 16:02 Djuki

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!

brunocfalcao avatar Feb 18 '22 22:02 brunocfalcao

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

  • blade directive
  • Request

Djuki avatar Feb 22 '22 11:02 Djuki