Prerequisites and Notes for the /openOrder Request
- The server-side
/openOrderAPI request does the following:- Authenticates your Nuvei merchant credentials.
(You can log in to the Nuvei Control Panel using your username and password to find your credentials here.) - Sets up the authenticated order in the Nuvei system, and returns a
sessionTokenwhich is needed to send other requests in the session.
- Authenticates your Nuvei merchant credentials.
- Always send the
/openOrderrequest from your backend server because thechecksumparameter calculation includes your secret key, which should NOT be exposed on the client side.
Sending an /openOrder Request
On the server-side, send an /openOrder request with its mandatory parameters, and include the following:
checksum–
This is a SHA-256 encrypted string that you create, that is used for request authentication. You can calculate it by performing a SHA-256 encryption on a string of these concatenated fields, in the following order:
merchantId,merchantSiteId,clientRequestId,amount,currency,timeStamp, and yourmerchantSecretKeyat the end.countryandemail–
If these are not provided here, then they must be included later in acreatePayment()/authenticate3d()request.urlDetails.notificationUrl(optional) –
The URL to which DMNs can be sent.preventOverride="1"(optional) –
This prevents future requests from over-writing values contained in these blocks:userDetails,billingAddress, orshippingAddress.