<p>You wouldn't need to dynamically change the Stripe credentials on the Stripe payment method, rather it is more likely you would set up a seperate Stripe payment method for each Stripe account. </p>

<p>It is a little known feature that you can set up more than one payment method per gateway with different credentials. </p>

<p>You could then hard code the payment method ID to the relevant teams payment screen (or set it on the cart before they get to the payment page). You could even store the payment method ID in that teams entry. </p>

<p>Hope that helps for the initial question.</p>

CC BY-SA 3.0
2016-08-26T10:52:45.267Z
Just realised you're referring to CraftCommerce settings, rather than Stripe - thanks again, Luke. Will keep you updated on progress..
Matt P
CC BY-SA 3.0
2017-10-02T08:26:37.930Z
Luke, that little known feature - I take it that can only be hardcoded and not configured in the control panel? Our requirement is to set a different merchant account and credentials for different countries.
Russ Back
CC BY-SA 3.0
2017-10-04T11:58:33.680Z
@RussBack no, setting them up in the control panel is fine.
Luke Holder
CC BY-SA 3.0
2016-08-26T07:07:29.937Z
2016-08-26T09:45:52.410Z
2016-08-26T09:45:52.410Z
Luke Holder
<p>Time for my first question. "we have a client..." :)</p>

<p>I'd like to achieve something like:</p>

<ol>
<li>A visitor (User A) is able to register and create a 'Team' Entry.</li>
<li>They then invite new users (Users B, C, D, E etc) to register by adding them to their 'Team' Entry(s)</li>
<li>User A then pays for the Teams they have created - I am planning on constructing a <a href="https://craftcommerce.com/docs/purchasables" rel="nofollow noreferrer">Craft Commerce 'purchasable'</a> item for each Team Entry and passing all of the Teams to the Cart for the usual Checkout process...</li>
</ol>

<p><strong>Challenge 1:</strong> The client would like payments for a given city to be directed to a specific Payment Gateway i.e. Payments for the Paris Team Entries, should go to a Stripe account which the Paris office has access to and can administrate. </p>

<p>In a similar way, payments for London team entries, need to go via a different Stripe account which only the London office has access to.</p>

<p>(<em>there will be over 13 different cities in various countries by 2017 with more added thereafter</em>)</p>

<p><strong>Q</strong>: How could I extend or override the default Stripe Account in Craft Commerce settings, based on the location of the Event which a Team is registered for? e.g. I could use Stripe API custom fields in the City Entry.</p>

<p><strong>Challenge 2</strong>: Allowing a user to pay for creating Team entries - I spotted this solution by Mr Kelly from earlier this year: <a href="https://craftcms.stackexchange.com/questions/13192/using-commerce-to-pay-for-posting-entry/13193#13193">Using Commerce to pay for posting entry</a></p>

<p>I'd appreciate any solutions or ideas you might have - thanks in advance!</p>

<p>Matt</p>

<plugin-craftcommerce><payment-methods>
Craft Commerce - Purchasables and multiple gateway accounts
# Craft Commerce - Purchasables and multiple gateway accounts

(Asked by: username_0 on 2016-08-25)

Time for my first question. "we have a client..." :)

I'd like to achieve something like:

1. A visitor (User A) is able to register and create a 'Team' Entry.
2. They then invite new users (Users B, C, D, E etc) to register by adding them to their 'Team' Entry(s)
3. User A then pays for the Teams they have created - I am planning on constructing a [Craft Commerce 'purchasable'](https://craftcommerce.com/docs/purchasables) item for each Team Entry and passing all of the Teams to the Cart for the usual Checkout process...

**Challenge 1:** The client would like payments for a given city to be directed to a specific Payment Gateway i.e. Payments for the Paris Team Entries, should go to a Stripe account which the Paris office has access to and can administrate.

In a similar way, payments for London team entries, need to go via a different Stripe account which only the London office has access to.

(*there will be over 13 different cities in various countries by 2017 with more added thereafter*)

**Q**: How could I extend or override the default Stripe Account in Craft Commerce settings, based on the location of the Event which a Team is registered for? e.g. I could use Stripe API custom fields in the City Entry.

**Challenge 2**: Allowing a user to pay for creating Team entries - I spotted this solution by Mr Kelly from earlier this year: [Using Commerce to pay for posting entry](https://craftcms.stackexchange.com/questions/13192/using-commerce-to-pay-for-posting-entry/13193#13193)

I'd appreciate any solutions or ideas you might have - thanks in advance!

Matt

**Tags:** plugin-craftcommerce, payment-methods

---

## 1 answers

### Answer by username_1 on 2016-08-26. Score: 2 | Accepted answer

You wouldn't need to dynamically change the Stripe credentials on the Stripe payment method, rather it is more likely you would set up a seperate Stripe payment method for each Stripe account.

It is a little known feature that you can set up more than one payment method per gateway with different credentials.

You could then hard code the payment method ID to the relevant teams payment screen (or set it on the cart before they get to the payment page). You could even store the payment method ID in that teams entry.

Hope that helps for the initial question.

> **Comments:**
> **username_0**: Just realised you're referring to CraftCommerce settings, rather than Stripe - thanks again, Luke. Will keep you updated on progress..  
> **username_2**: Luke, that little known feature - I take it that can only be hardcoded and not configured in the control panel? Our requirement is to set a different merchant account and credentials for different countries.  
> **username_1**: @RussBack no, setting them up in the control panel is fine.  

---

