Payment for gets cancelled for specific vendor location Id

Hi @sjosey

We are facing a quiet a different issue when we are placing the order from the Vendor given menu items.

We are having a vendor named Rolling Cravings that have one of his location id:

LWECWAA463MN7

When we are paying for any of his items from his Menu we are getting this error:

stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[code] => BAD_REQUEST
[detail] => The payment is for a different location than the order.
[category] => INVALID_REQUEST_ERROR
)

    )

Could you please check and let us know why this is happening all the time?

Thanks

@sjosey

Please check the above query and please reply.

Thanks

Do you have a specific order_id that you’re trying to pay for? I’m not seeing those errors for that given location_id.

Typically this happens because CreatePayment uses the default location if one is not supplied, which might be different than the one you pass in the CreateOrder endpoint.

@sjosey

This is the Order Id: NvUJpY9I5RTxqDraDya7dCYi5b4F

Thanks

Thanks. This order was created for location LWECWAA463MN7, and the payment that was added was for 8395QXNRRSD94 (the default location). I see in the CreatePayment request no location_id was passed, so it uses the default location as I mentioned previously, which is different than the one supplied in the order. Please let me know if you have additional questions or concerns!

Thanks @sjosey for helping out.