The response to the createToken operation is made via the payment platform at the moment of token creation in order to perform one-click payments.
It consists of a HEADER and a BODY of createTokenResponse type.
The HEADER is transmitted by the payment gateway.
Check the authentication token value (see Verifying the SOAP header in the response chapter).
The structure of the createTokenResponse message is as follows:
Name Type createTokenResult createTokenResult
The structure of the createTokenResult message is as follows:
|authorizationResponse if the authorization request is declined by the bank.||authorizationResponse|
The data returned in the response depends on the objects and attributes sent in the request.
However, whatever the operation, the responseCode attribute of the CommonResponse object must first be analyzed:
- The value 0 indicates that the operation is successfully completed.
- A value different from 0 involves an analysis of the responseCodeDetails attribute. It specifies the origin of the error.
The objects orderResponse, orderResponse,cardResponse,captureResponse, customerResponse, markResponse, threeDSResponse, extraResponse,subscriptionResponse, shoppingCartResponse and fraudManagementResponse are not populated in the response.
To obtain the payment method details used, use the getTokenDetails operation.The cardResponse object is returned in the response.