Hi, I was hoping someone here could shed some light on this issue.
In my production app, I am using the live key, and have been accepting orders for a while now. However, I just earlier today got this error:
`Error: No such sku: <SKU>; a similar object exists in test mode, but a live mode key was used to make this request.`
After getting this error I hurried to run a test purchase, to make sure the app wasn't broken, and it worked fine. Further, this SKU exists in both test mode and live mode. Would this cause an issue? Should I change the sku in live mode to a different one than in test? Really grasping at straws at the moment since I'm not sure what caused this (I've received it twice now).
For reference, here is some code used to create an order (nodejs / express):
```
let createStripeOrder = (req, product, customer) => {
let payload = {
currency: 'usd',
items: [
{
type: 'sku',
parent: product.sku,
quantity: req.body.quantity
}
],
shipping: {
name: req.body.customerName,
address: {
line1: req.body.addressLine1,
city: req.body.addressCity,
country: req.body.addressCountryCode,
postal_code: req.body.addressZip
}
},
metadata: {
coupon: req.body.coupon,
event_id: req.body.event_id
},
email: req.body.email
}
if (req.body.coupon.length) { payload.coupon = req.body.coupon }
return stripe.orders.create(payload)
}
```
The product is just loaded from my database. I am also running the app on heroku currently, if that makes any difference. Thanks in advance for anyone who is able to help with this.
Eric