Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Feature/request scoped header checkout #774

Conversation

rishi-ayata
Copy link
Contributor

Fix

  • Fix

    Added request scoped header as a parameter to the cart checkout api

Description

As of now, currency is set at gateway level during Motlin gateway initialization. If the gateway is initialized based on a singleton pattern, it's difficult to reuse the same gateway across multiple apis from a storefront that handles multiple currencies . One solution would be to use a request scoped gateway initialization which is an expensive approach as the number of requests gets higher. An alternative way is to pass currencies as optional parameters with product module or similar APIS which makes it more flexible to use.

Issues

#769

…ishi-ayata/moltin-sdk into feature/request-scoped-headers-product
…ishi-ayata/moltin-sdk into feature/request-scoped-headers-product
…ishi-ayata/moltin-sdk into feature/request-scoped-headers-product
…ishi-ayata/moltin-sdk into feature/request-scoped-headers-product
…ishi-ayata/moltin-sdk into feature/request-scoped-headers-product
…ishi-ayata/moltin-sdk into feature/request-scoped-headers-product
…ishi-ayata/moltin-sdk into feature/request-scoped-headers-product
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant