#pbidja
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Hello
With setReaderDisplay, you basically control the line items that are then rendered by the reader
https://docs.stripe.com/terminal/features/display
So you could add those as line items, yes
How do I pass in a field for fees? Meaning what key would I use in the API?
umm just the same way you'd add other line items?
there's an example in the doc I shared
'tmr_xxx',
{
type: 'cart',
cart: {
line_items: [
{
description: 'Caramel latte',
amount: 659,
quantity: 1,
},
{
description: 'Dozen donuts',
amount: 1239,
quantity: 1,
},
],
currency: 'usd',
tax: 100,
total: 1998,
},
}
);```
Or do you mean you want to add the fees outside the line items?
I need them in-line with the item itself
Ex discount for a given item (latte is $2 off)
It looks like the only fields are the amount, quantity, and description. So I think the only way to have it inline with the item would be to add that info to the description. I can put in a feature request but I at the moment the SDK is limited to those three fields
though keep in mind, line items can negative, so you can do something like
type: 'cart',
cart: {
line_items: [
{
description: 'Caramel latte',
amount: 659,
quantity: 1,
},
{
description: 'discount',
amount: -100,
quantity: 1,
},
],
currency: 'usd',
tax: 100,
total: 659,
},
}```