Async read and write keys

This commit is contained in:
Vladislav Hristov
2018-06-27 17:59:35 +03:00
parent 9cfed8ec81
commit 9660242234
5 changed files with 52 additions and 32 deletions

View File

@@ -118,8 +118,8 @@ const process = {
};
module.exports = {
use(order, client) {
const keys = client.keys();
async use(order, client) {
const keys = await client.keys();
const { orderDetails, transactionId } = order;
const { xmlOptions, xmlSchema, productString } = genericSerializer(client.host, transactionId);
const orderType = orderDetails.OrderType.toUpperCase();