#HopRobotics-payment-link-line-items
1 messages ยท Page 1 of 1 (latest)
take your time, thanks
Appreciate your patience
So line_items is an array right?
an array of hashes
so the syntax may look something like
line_items=[
{
"id": ID,
},
]
inside
stripe.PaymentLink.modify(
"plink_xxxxx",
....
)
okay, thanks. It replied that the item didn't exist on that payment link. The product has been created on my product page. Will it allow me to switch it out to something previously not on the link?
ah hmm I'm not sure actually off the top of my head. It may not.
But I'd recommend trying it out in test mode.
yes this was in test mode. Basically I want to programmatically alter the "menu" when inventory is out
Gotcha. hmm looking
I don't think it would let you add a new one.
I believe you can have multiple payment links and set active: false on the one where you run out of inventory
Okay thank you for looking. My intent was to print out the QR code for remote ordering. I suppose I could manage this with a dynamic QR and update the link as needed.
I believe that could work yes
thank you and take care
NP! Happy to help ๐ Good luck