juspay / hyperswitch-control-center

Open sourced control center for managing Hyperswitch - an open sourced payment switch.
https://hyperswitch.io/
Apache License 2.0
25 stars 17 forks source link

Make field `Domain Name` as optional field in apple pay configuration based on `Domain` #877

Closed ShankarSinghC closed 1 week ago

ShankarSinghC commented 1 week ago

Below are the fields that are required in the apple pay manual flow. In this we need to make the Domain as a dropdown which contains web & iOS and iOS.

If iOS is chosen then "initiative_context": "iOS", needs to be sent and in this case the Domain Name field should not appear.

"session_token_data": {
                    "initiative": "iOS",
                    "certificate": "",
                    "display_name": "applepay",
                    "certificate_keys": "",
                    "payment_processing_details_at": "Hyperswitch",
                    "payment_processing_certificate": "",
                    "payment_processing_certificate_key": "",
                    "initiative_context": null,
                    "merchant_identifier": "",
                    "merchant_business_country": "US"
                }

If web & iOS is chosen the "initiative_context": "web", needs to be sent and in this case Domain Name field should appear and needs to be mandatory.

"session_token_data": {
                    "initiative": "web",
                    "certificate": "",
                    "display_name": "applepay",
                    "certificate_keys": "",
                    "payment_processing_details_at": "Hyperswitch",
                    "payment_processing_certificate": "",
                    "payment_processing_certificate_key": "",
                    "initiative_context": "sdk-test-app.netlify.app",
                    "merchant_identifier": "",
                    "merchant_business_country": "US"
                }

image