Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected an order id to be passed #130

Open
dearste opened this issue Aug 6, 2020 · 3 comments
Open

Expected an order id to be passed #130

dearste opened this issue Aug 6, 2020 · 3 comments

Comments

@dearste
Copy link

dearste commented Aug 6, 2020

Get this error, I think i have setup all in json config file.Any advice?

Error: Expected an order id to be passed
at https://www.sandbox.paypal.com/smart/buttons?style.label=paypal

@collymore
Copy link
Member

Hi Dearste, can you provide some more info about this issue. Where are you seeing the error? browser, api logs?
Can you share your paypal entires from the config files for VSF and VSF-API.

@dio5
Copy link

dio5 commented Mar 19, 2021

I was having similar issue but right before that error is triggered, another error happens, saying 'The totals of the cart item amounts do not match order amounts.' which seems caused by Magento API returning the shipping price without tax.

Not entirely sure how to fix it, a workaround I had was to change the module a bit and take the shipping price from platformTotals instead of segments in getters.getAmount

const shippingTotal = config.tax.finalPriceIncludesTax
      ? Math.abs(parseFloat(rootState.cart.platformTotals.shipping_incl_tax.toFixed(2))) : getSegmentTotal('shipping')

I am going to dig a bit deeper and see if I'm missing something else though.

Related to this: magento/magento2#13392

@manjula-gurjar-bod
Copy link

manjula-gurjar-bod commented Jun 11, 2021

Hi, @collymore,

I have also got this error "Uncaught Error: Expected an order id to be passed" while trying to place an order using Paypal. Also when I am checking the API (setExpressCheckout) then I have got "The field Shipping Address1 is required" this error. This issue I am getting is only in the case of a virtual product in which no shipping address section is visible on checkout. So is there any solution available for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants