Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Payment Method from Marketplace matches with SWL when using identical types:ids
Payment Method from Marketplace matches with SWL when using identical types:ids
ID: 402140
No Fix
Published on 3/15/2022
Last update on 2/16/2024

Summary

Currently, the payment method configuration, in the promotions product is not intended to be passed down via the fulfillment request/response.

However, if the user sets 2 payment methods identically on each side (marketplace and seller), with the same id and type and sets up a promotion with this kind of restriction on the marketplace, in several cases the promotions validation will identify this as a match for items being sold with the seller's inventory.

This "should not" be happening under the current product, it is an unexpected side effect. ​

The unintended side effects of this are difficult to map since the original product implementation was not mapped to make it work this way. The use of it does not guarantee its functioning in all contexts and cases.

It is recommended that you only use what the product is designed to do. Currently, it is not possible to pass on the payment method condition via fulfillment, and filtering through the marketplace generates non-mapped collateral effects.

Simulation

  1. Set up a payment method on a marketplace.

  2. Set up a payment method on a child account of this marketplace with the same id, type.

  3. Set up a promotion on the marketplace restricted by this payment method.

  4. In the marketplace environment, addToCart an item uses an item using the seller's inventory.

  5. The promotion will apply over the item, which should NOT be the case under our current expected behavior.

Workaround

None (since this is an unintended side effect of something that "should not work and is currently working unreliably").

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback