CyberSource key

Get the CyberSource client-side key to render the hosted card form.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Return the CyberSource client-side initialization key. The endpoint validates the request origin header against the gateway’s supported sites, then creates a Flex Microform capture context and returns it (as a JWK) along with the JS client bundle — everything the browser needs to render CyberSource’s hosted card form.

CyberSource-specific; the primary gateway (Stripe) sets up client-side and does not use this endpoint.

Example:

curl --request GET   --url 'https://www.pelcro.com/api/v1/sdk/payment/cybersource/get_frontend_key?site_id=1232'   --header 'Authorization: Bearer <JWT>'   --header 'Origin: https://www.example.com'

Notes

  • Protected — requires the customer’s JWT.
  • The Origin header must match one of the gateway’s supported sites, otherwise the endpoint returns 400 Site not supported.
Path Params
string
required

Payment gateway slug. Implemented for cybersource.

Query Params
int32
required

The unique identifier of the site associated with your account.

Headers
string
required

Origin of the calling site (e.g. https://www.example.com); must match one of the gateway’s supported sites.

Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json