Closed mmenozzi closed 2 years ago
The current code of the \Clerk_Clerk_Model_Communicator::removeProduct will produce the following request params:
\Clerk_Clerk_Model_Communicator::removeProduct
{ "private_key": "*** redacted ***", "products[0]": 52964, "key": "*** redacted ***" }
Which will result in a Missing argument: products ParsingError on Clerk.io.
Missing argument: products
This PR fix this.
This was addressed in a prior update by changing the line to concatenate the id into a json list.
$data['products'] = "[".$productId."]";
The current code of the
\Clerk_Clerk_Model_Communicator::removeProduct
will produce the following request params:Which will result in a
Missing argument: products
ParsingError on Clerk.io.This PR fix this.