public

GET /v1/public/payment-config

The publishable key and enabled gateways, for a browser.

सभी public एंडपॉइंट्स

प्रमाणन

यह एंडपॉइंट सार्वजनिक है। यह कोई क्रेडेंशियल और कोई संगठन नहीं लेता है—यह वही है जिसे हमारी अपनी मार्केटिंग साइट और AI उत्तर इंजन पढ़ते हैं।

यह एंडपॉइंट कोई संगठन आईडी नहीं लेता है। आपकी कुंजी पहले से ही उस संगठन की पहचान करती है जिससे वह संबंधित है, और प्रतिक्रिया उसी के दायरे में है।

इसे आज़माएँ

कोणार्कित ब्रैकेट्स में दी गई किसी भी चीज़ को अपने मानों से बदलें, और की प्लेसहोलर को अपने डैशबोर्ड की एक की से बदलें।

curl -X GET https://api.zinndigital.com/v1/public/payment-config

साइन इन हैं? आपके डैशबोर्ड में मौजूद API कंसोल आपकी वास्तविक संगठन आईडी और आपकी अपनी कुंजी स्वतः भर देता है, और लाइव API के विरुद्ध अनुरोध चलाता है ताकि आप वास्तविक प्रतिक्रिया देख सकें। इस एंडपॉइंट को API कंसोल में खोलें

विवरण

Unauthenticated: the guest checkout funnel has no principal, and everything here is public by construction — a Stripe **publishable** key is designed to be embedded in a page, and "which gateways are switched on" is visible at checkout anyway. This exists so the key is **rotatable from admin**. The dashboard used to read it from `VITE_STRIPE_PUBLISHABLE_KEY`, a build-time constant that was set in no build — so every deployed dashboard shipped an empty key and could only tell customers card payments were unavailable. A build-time value also could not be changed by editing a row, which is what the owner asked for.

प्रतिक्रिया

नामप्रकारआवश्यकयह क्या है
providersPaymentConfigProvider[]हाँ
stripe_publishable_keystringहाँEmpty when Stripe is not configured. Served here rather than baked into the SPA bundle so the merchant account can be rotated from admin (§2.35).
card_capture_availablebooleanहाँWhether the dashboard can show a card form. Computed here so "can this customer add a card?" has one answer rather than one per client.
paypal_client_idstringहाँPayPal's client id, which goes in the JS SDK's script URL — the browser cannot render Buttons or hosted card fields without it. Public by construction (the catalogue marks it `s…
paypal_availablebooleanहाँWhether PayPal can actually be offered. Its own flag rather than something the SPA infers from `providers`: a PayPal row can be enabled with the client id blank, and a client re…