Prepare a hosted card session
Prepares the processor’s hosted card fields for this payment. No request body and no card data is involved.
data.hostedCard.provider tells you which processor is active, cybersource or mpgs, and the response carries the configuration for it. For CyberSource, load scriptUrl, create the microform from captureContext, mount the number and security code fields, and exchange them for a token. For MPGS, load scriptUrl and mount the hosted fields against sessionId. Use the values the response gives you. Do not hard-code them.
Card number and security code go to the processor’s fields only. They never reach Vestrapay or your servers.
Processor sessions are single-use. After a failed charge, call this endpoint again for a new session before the customer retries.