OneBasket

Convert a checkout session to a payment token

POST
/worldpay/tokens/convert-session

Authorization

apiKey bearerAuth
x-api-key<token>

Base64-encoded store identifier

In: header

AuthorizationBearer <token>

JWT containing the contact identifier in the 'sub' claim

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/worldpay/tokens/convert-session" \  -H "Content-Type: application/json" \  -d '{    "sessionHref": "http://example.com",    "cardHolderName": "string",    "paymentIntentId": "string"  }'
Empty