#letourpowerscombine - Payment Links
1 messages · Page 1 of 1 (latest)
Thank you @slow mountain !!
Okay so when you create a Payment Link you would need to assign all the different price plans you wish your customers to choose from and then allow them to adjust the quantities so they could set to 0 the ones they didn't want.
Interesting, thanks for sharing this hack @slow mountain. As an alternative, is there any other way to create a product that has a "customer chooses price" pricing model — and I could then create a payment link for that product?
For example, can I create a "customer chooses price" product using the API?
According to this page (https://stripe.com/docs/products-prices/manage-prices), it should be possible somehow.
Create a price for the product
To save a product in the Dashboard, you must also add at least one price. You can create multiple prices for a product. To add a price for your product:Select a Pricing model. For more details about recurring pricing models, read the pricing model guide.
...
Customer chooses price—Let the payer decide on the amount to pay for your product, service, or cause. Customer chooses price is only compatible with Checkout and Payment Links.
Testing this out
Yes, you just need to create a product and set the pricing model to the Customer Choice type. You can set limits or suggestions at that time.
Would you be able to point to or provide a CURL snippet that could do this, with some dummy product data, where I could just insert the proper API key? This is actually my first day working with Stripe, trying to get a hand with it!
Unfortunately we don't have any code snippets specific to this exact request. I would start by reading the API reference docs here:
https://stripe.com/docs/api/payment_links/payment_links/create?lang=ruby
I just can't find any reference to "customer choice" type in the API docs. Maybe I'm missing something? I'm trying to do what's here below, I'm just not sure about the exact language/syntax to accomplish the bolded text:
curl https://api.stripe.com/v1/products
-u sk_test_51LEGZDFDtbzxEBpAX2kaGfX3Ax5tKLfpzyLIAquZSEUauHuQHnJlXlRImfDVNjQeZ2qYxX5eXzNnVvYwgxvNs5nz00UgOkTDit:
-d name="New Product"
** -d pricing_model="Customer Choice"**
Hi sorry for the delay
I'm not seeing the right value in the API docs either but I did just achieve this through the Dashboard.
👋 I'm also hopping in since @slow mountain needs to head out - if you haven't seen these docs already, I believe reading through https://stripe.com/docs/payments/payment-links/custom-amounts will really help
Thanks @primal osprey , yep that's how I figured out how to do it. FYI I talked with chat support about this as well and they said it straight wasn't possible. As soon as I figured out there was a different dashboard/ui for creating products, besides the modal that comes up in the payments like "add product" story, it clicked