#rvk

1 messages · Page 1 of 1 (latest)

feral gulchBOT
twilit jay
#

The second parameter at that link is line_items

#

Are you passing things in to that parameter and getting an error?

glossy root
#

lineitems = [{
"price": "some price id",
"quantity": 1,
}]
stripe.PaymentLink.modify(
"paymentlink_id",
lineitems,
stripe_account="stripe_id"
)

#

When I do some thing like this, it doesnt work

#

Error : Received unknown parameter: line_items[0][price]

twilit jay
#

Gotcha, it turns out that adding products and prices is dashboard only at the moment

#

So for now you can either edit the link in the dashboard or you can delete and create a new link via the API

#

I will create a feature request or add to one if it already exists for adding line items through the API

glossy root
#

Couple of questions

#
  1. How can I delete a payment link
twilit jay
glossy root
#
  1. How do I find payment intent id associated with a payment link? I was reading that I can update the payment intent object to add new line items and that would update the payment link. Is this possible
#

Got it, thanks for the clarification on (1)

twilit jay
#

Do you have a link to where you read that? Payment intents don't have line items so I am not sure what that was saying