The delegate token is created as part of the Agentic Commerce Protocol (ACP) flow for ChatGPT instant checkout
After receiving the delegate token from the agent (e.g. ChatGPT) apply it in the Payments API request by setting:
instruction.methodtocardinstruction.paymentInstrument.typetodelegate.
{
"transactionReference": "order1234",
"merchant": {
"entity": "default"
},
"instruction": {
"method": "card",
"paymentInstrument": {
"type": "delegate",
"sessionHref": "https://try.access.worldpay.com/sessions/eyJrIjoxLCJkIjoialRBL0FFelBzcnZpNCtzRGNRemh0NzI0NE1rdUtjMUFJdjYxVnlibWZuUT0ifQ"
},
"customer": {
"email": "john.appleseed@example.com",
"phone": "00000000000",
"ipAddress": "192.168.0.1"
},
"narrative": {
"line1": "trading name"
},
"value": {
"currency": "GBP",
"amount": 42
}
}
}The delegate token flow is currently restricted to guest card payments.
3DS, SCA Exemptions and Worldpay token creation are not available.