What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

iOS SET_CUSTOMER issue

iOS SET_CUSTOMER issue

Emily_Loyalzoo
Shopify Partner
8 0 1

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

Replies 0 (0)