#rvk
1 messages · Page 1 of 1 (latest)
The second parameter at that link is line_items
Are you passing things in to that parameter and getting an error?
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]
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
Apologies I was just assuming we had a method for that in the API. It looks like you are supposed to deactivate them by updating active to false https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-active
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
- 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)
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