#HopRobotics-payment-link-line-items

1 messages ยท Page 1 of 1 (latest)

hushed mango
#

Hello ๐Ÿ‘‹
Give me a moment please thank you ๐Ÿ™‚

narrow axle
#

take your time, thanks

hushed mango
#

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",
  ....
)
narrow axle
#

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?

hushed mango
#

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.

narrow axle
#

yes this was in test mode. Basically I want to programmatically alter the "menu" when inventory is out

hushed mango
#

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

narrow axle
#

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.

hushed mango
#

I believe that could work yes

narrow axle
#

thank you and take care

hushed mango
#

NP! Happy to help ๐Ÿ™‚ Good luck