@aligajani Have a billing profile model attached to users that includes the payment method and credentials for that payment method (i.e. Stripe account credentials). Then, detect which user is logged in, load their billing profile and you’ll know which Stripe account to send payments to.
Jul 2, 2015
7
Level 7
How can I boot an entirely different config file using an if else statement?
I am trying to avoid code duplication and the worry of creating a repository for a small change. Basically, I want to have an if else statement and load a different configuration say for Salesforce, or Stripe.
It's like saying, if this is true, send the money to this Stripe account, else send it to another Stripe account. Is this possible in 4.2. I am using a package laravel-stripe which has two folders /local and /production and inside it each exists a file called stripe.php.
Please or to participate in this conversation.