Cart.js is empty when "Buy it Now" button is used instead of "Add to Cart" then "Checkout"

New Member
1 0 1



We're currently building a gateway with the hosted payment API. We're using the AJAX /cart.js in order to retrieve the line items and display it on our gateway page. The thing is, when the user clicks "Buy it Now" instead of adding an item to cart then checking out, cart.js would return an empty cart. Is there any other way to retrieve the line items?


1 Like
New Member
14 0 0

Did anyone solve this problem?

When I go to checkout page directly using url( , cart.js returns emtpy.


Is this a known issue?