Skip to content

Instantly share code, notes, and snippets.

@jdgarvey
Created May 3, 2018 19:47
Show Gist options
  • Save jdgarvey/4072ca12144011e1f69b817f66c4653b to your computer and use it in GitHub Desktop.
Save jdgarvey/4072ca12144011e1f69b817f66c4653b to your computer and use it in GitHub Desktop.

Here is what we have so far: we can successfully pull the cart from the API. We can also successfully update the cart billing/shipping addresses as well as the shipping method. The problem arises when we try to create an order via POST http://store.allsportstshirts.com/SaveCartOrder/95627/{SessionID}.

The data we are sending with that request is the following:

payment_method: Credit Card
cc_num: 4242424242424242
cc_exp: 03/23
cc_cvv: 123
po_number: 
amount_due: 49.4

The error we receive back is <Error>Index was outside the bounds of the array.</Error>.

We have also tried calling [http://store.allsportstshirts.com/GetCartCanCheckout/95627/{SessionID}], but that just returns us <Error>Payment Method not specified</Error>. We are using a test card to try to create the order, could that be causing the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment