Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override the setup_future_usage field to on_session based on merchant config #5015

Closed
ShankarSinghC opened this issue Jun 15, 2024 · 0 comments · Fixed by #5016
Closed

Override the setup_future_usage field to on_session based on merchant config #5015

ShankarSinghC opened this issue Jun 15, 2024 · 0 comments · Fixed by #5016
Assignees
Labels
A-core Area: Core flows A-payment-methods Area: Payment Methods

Comments

@ShankarSinghC
Copy link
Contributor

This is the use case where in which we need if the setup_future_usage is set to off_session in the payment method needs to be just saved at hyperswitch and not at connector.

skip_saving_wallet_at_connector_<merchant_id> is the config which takes vector of payment method type as the value. When this config is set, the setup_future_usage is overridden to on_session by which mandates won't be created at the connector's end.

curl --location 'localhost:8080/configs/' \
--header 'api-key: test_admin' \
--header 'Content-Type: application/json' \
--data '{
    "key": "skip_saving_wallet_at_connector_merchant_1718351667",
    "value": "[\"apple_pay\"]"
}'

Also add a validation to add duplicate apple pay payment method being saved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core flows A-payment-methods Area: Payment Methods
Projects
None yet
1 participant