iOS SET_CUSTOMER issue

Ivan_loyalzoo
New Member
5 0 0

Hi,

i'm working on Shopify Pos Ebmedded app and having an issue while trying to set customer to an order, so dispatching customer object, something like this:

 

let customerPayload = {
	email: email,
	firstName: first_name,
	lastName: last_name,
	id: parseInt(id)
}

cart.dispatch(Cart.Action.SET_CUSTOMER, {
	data: customerPayload
});

 

On android everything works fine, but on iOS i get the message: "Type mismatch for idL Expected to decode UInt64 but found a string"

So obviously Integer is expected, but its as if dispatch does this conversion somehow by itself.

As stated in example, i even parsed ID, though it was already integer, but it still doesn't work..

Any kind of help would be appreciated.

Thanks in advance

 

Cheers

0 Likes