⚠️ Important #
Changes to Web Connect in a production environment are sensitive and may cause integrations to stop working if configured incorrectly. We strongly recommend testing all changes in a test/sandbox environment first.
If you are unsure, contact us before making changes.
Goal #
Transform incoming payment method CASH into store-specific values, e.g.:
CASH-STORE1CASH-STORE2
1. Add a new mapping line #
In Web Connect Incoming Data Mapping, on the payment object:
Create a new line
| Key name | Related Web Object | Set value from related field |
|---|---|---|
| leave empty) | Sales Header | Location Code → This retrieves the store code (e.g. STORE1, STORE2). |
2. Create a Condition (only when payment method = CASH) #
In column Web Connect Condition List:
Create a new condition
| Path value | Comparison | Logic value |
|---|---|---|
| payment.method | = | CASH |
Now this line will only be triggered if payment method is CASH
3. Create Text Mapping #
In column Mapping:
Map each store’s location code → store-specific CASH code.
| Incoming (Location Code) | Outgoing |
|---|---|
| STORE1 | CASH-STORE1 |
| STORE2 | CASH-STORE2 |
4. Set Validation Order (important) #
Set this line to run before the standard payment method mapping.
Example:
| Mapping line | Validation order |
|---|---|
| Normal payment method mapping (existing | 1 |
| CASH-per-store mapping (NEW) | 2 |
Result #
Only CASH payments get split per store:
- STORE1 → CASH-STORE1
- STORE2 → CASH-STORE2
All other payment methods (Adyen, Klarna, Gift Card) work as usual.