This guide adds aggregator-specific guidance to the onboarding modules. It’s not a standalone onboarding guide: work through each module as usual, and use the matching section below for the extra steps that apply to you.
In this guide, you’ll learn how to:
- Decide whether your sub-merchants should share an environment or each have their own
- Set up environments, gateways, and payment collection for each sub-merchant
- Repeat the go-live steps for each sub-merchant you onboard
- Offer 3DS and Advanced Vault to sub-merchants individually
A note on terms: Spreedly calls your clients sub-merchants. There’s also a sub-merchant object you can create through the API to tag gateways and transactions for reporting. This guide uses “sub-merchant” for both and says “sub-merchant object” when it means the API object.
Module 1: Setting up your organization
Should each sub-merchant have its own environment?
This is the most important decision you’ll make as an aggregator, because it affects every later module. The key constraint: payment method tokens and gateway tokens only work in the environment where they were created. They can’t be shared across environments.
| One environment per sub-merchant (recommended) | One shared environment | |
|---|---|---|
| Choose this if | Sub-merchants don’t need to share stored cards | Sub-merchants need to charge the same stored cards |
| Data separation | Each sub-merchant’s cards, transactions, and reports are kept separate | Everything is together. Use sub-merchant objects to tell sub-merchants apart in reporting |
| Advanced Vault | Full support, including turning features on or off per sub-merchant and network tokens for each sub-merchant | Limited. Features apply to the whole environment |
| Troubleshooting | Easier, since each environment shows one sub-merchant | Requires filtering by sub-merchant |
Spreedly recommends one environment per sub-merchant, and it’s required to offer every Advanced Vault feature.
Creating Environments and Access Secrets
You can create environments and access secrets in the Spreedly App, as shown in Module 1. Most aggregators use the API instead so they can automate onboarding new sub-merchants. See the environments and access secrets sections of the API reference.
Also create a sub-merchant object for each client in the environment(s) where they transact. This makes reporting easier even if each sub-merchant has its own environment.
User access: if your team works across many environments, use role-based access controls (RBAC) to limit who can view or change each one (see Modules 1 and 5).
Module 2: Collecting Payment Information
Make sure your Checkout SDK (or iFrame) uses the environment key for the right sub-merchant. A card tokenized with the wrong environment key is stored in the wrong environment and can’t be moved to another one.
Enhanced Security across many environments: Enhanced Security is turned on per environment, so turn it on in each sub-merchant’s production environment. The signing certificate must be uploaded to the same environment or created at the organization level ("level": "organization"). One organization-level certificate saves you from uploading a certificate to every new environment.
Module 3: Configuring Endpoints
Create a separate production gateway for each sub-merchant using that sub-merchant’s own gateway credentials. Each gateway only works in the environment where it’s created, so if each sub-merchant has its own environment, create its gateways there.
If sub-merchants share an environment, pass the sub_merchant_key when you create each sub-merchant’s gateway. This links the gateway, and every transaction through it, to the right sub-merchant in reporting.
Module 4: Transacting with Payment Methods
Transactions work the same way for aggregators. Two extra points:
- Use the right gateway token. In a shared environment, always send the gateway token that belongs to the sub-merchant you’re charging for.
- Save the transaction token with the sub-merchant it belongs to. When you contact Support, include both the transaction token and the sub-merchant’s environment so the transaction can be found quickly.
Module 5: Going Live
Go-live isn’t a one-time event for an aggregator. You’ll repeat it each time you onboard a sub-merchant. For each new sub-merchant, confirm:
- A production environment exists (if you use one per sub-merchant) with a sub-merchant object created
- Your Checkout SDK uses that sub-merchant’s production environment key
- Enhanced Security and “iFrame or Express only” are turned on in that environment
- A production gateway is set up with the sub-merchant’s own credentials
- Any Advanced Vault or 3DS features are set up for the sub-merchant (see below)
Building this into your automated onboarding helps keep each new sub-merchant from going live with sandbox settings or missing security settings.
Module 6: Implementing 3DS
3DS2 Global uses a Merchant Profile and an SCA Provider, which hold the merchant’s Merchant ID (MID), MCC, and acquirer BINs. These details belong to each sub-merchant’s own gateway account, so expect to create a Merchant Profile and SCA Provider for each sub-merchant using their details.
Module 7: Implementing Advanced Vault
Advanced Vault and Lifecycle Management (Account Updater) are off by default for your organization and every environment. To offer them to sub-merchants:
- Ask your Account Manager about pricing to enable Advanced Vault for your organization.
- In the Spreedly App, go to Organization settings and turn on Advanced Vault, Account Updater, and Allow Account Updater at Environment Level.
- For each sub-merchant, go to that environment’s Environment settings and turn on the features they’ve signed up for. Account Updater requires Advanced Vault to be turned on first.
With one environment per sub-merchant, you can offer these features to some sub-merchants and not others, and see usage for each one.
Network Tokens for Each Sub-Merchant
Network tokens are issued under a Token Requestor ID (TRID) that belongs to a specific merchant. To offer network tokens to a sub-merchant, Spreedly requests a TRID using that sub-merchant’s details and applies it to their environment:
- You or the sub-merchant submit the Advanced Vault onboarding form with the sub-merchant’s details.
- You tell Spreedly Support which environment key this sub-merchant uses.
- Spreedly Support requests a TRID for the sub-merchant.
- Spreedly Support turns on network tokens for that environment with the sub-merchant’s TRID.
This only works if each sub-merchant has its own environment.
Card Updater Options
Batch Account Updater and Mastercard’s real-time updater both support aggregators. Visa Just in Time (JIT) doesn’t currently support aggregators, so leave it off the Advanced Vault onboarding form for sub-merchants.
Getting Help
For aggregator setup questions, contact your Account Manager or Customer Support. For help with a specific sub-merchant, include their environment key and sub-merchant name along with the details listed in Module 5.