#letourpowerscombine - Payment Links

1 messages · Page 1 of 1 (latest)

slow mountain
#

Hi 👋
Let me take a look

muted ravine
#

Thank you @slow mountain !!

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.

muted ravine
#

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.

slow mountain
#

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.

muted ravine
#

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!

slow mountain
muted ravine
#

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"**

slow mountain
#

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.

primal osprey
muted ravine
#

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

primal osprey
#

👍

#

Yeah it's a really new feature, so some of the docs are a bit harder to find for it right now (sorry about that)