#tawk2shannon_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215735344574632018
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
HI ๐
Payment Links do not allow you to start with a $0 amount. This is by design.
I was told they could with API coding. It looks greedy to our customers to start off with a $150 total.
And has scared a lot of people off too
Do you not expect them to buy your product?
We are trying to get them to purchase tickets for the upcoming Total Eclipse in a month from today. I have been trying to get this figured out for my bosses for weeks because my bosses don't like it
I just tested this myself and the API does not allow you to set an initial quantity of 0
I was told by your support people that it does
This is what I found in my email thread from 3 weeks ago...Regarding your questions:
- Default Quantity for Products:
To set the default quantity of products to 0 in Stripe, you can use theadjustable_quantityparameter when creating a Checkout Session. By settingadjustable_quantity.minimumto 0, you allow customers to update the quantity of items they purchase, including setting it to 0. This provides flexibility and avoids the assumption of quantities, making it more user-friendly.
Additionally, they can customize the minimum and maximum quantities allowed by specifying adjustable_quantity.minimum and adjustable_quantity.maximum. Please note that if they use adjustable quantities, they should use adjustable_quantity.maximum to reserve inventory quantities instead of the line_ item quantity.
See Create a payment link with the API for more information about allowing adjustable quantities and Let customers decide what to pay for details on creating a Checkout Session with customer-defined pricing models.
This is what I passed in as parameters to our API
{
line_items: {
0: {
adjustable_quantity: {
enabled: "True",
maxomum: "10",
minimum: "0",
},
price: "price_1OcXJWIlCeH6bP8RwIAFrbIm",
quantity: "0",
},
},
}
And here is the response I got
{
error: {
code: "parameter_invalid_integer",
doc_url: "https://stripe.com/docs/error-codes/parameter-invalid-integer",
message: "This value must be greater than or equal to 1.",
param: "line_items[0][quantity]",
request_log_url: "https://dashboard.stripe.com/test/logs/req_nTkY8q0TYTECLD?t=1709924670",
type: "invalid_request_error",
},
}
You can create a Payment Link that allows a Customer to set the quantity to 0, that is just fine. But the initial quantity will be at least 1.
here it mentions the 0 to 99 quantity. I'm just not sure why this is so challenging to set up
I do have payment links created but they only allow me to start them on 1. I'm trying to figure out how and where to create them with the coding command lines that will allow me to default them to 0
The total for the Checkout page must be $.50 or greater. You can adjust the quantities for multiple items but you cannot make an adjustment that changes the amount to $0
Our total would be more than $.50 for sure. Only one of our tickets are free but we said they can only come with a paid adult ticket. I'd like to make that a requirment but we are only asking people to choose a quantity on the free tickets for our records so we have some idea how many kids will be coming. The thing is, this is a huge event that has never happened before so no one in the whole city there really knows what to expect. We
We've already spent a lot of money on this event and the tickets are supposed to help recoup the costs but if we're scaring people off, idk what to do
Okay but how are you structuring this? Like, could you bundle the free and non-free line items together so that your total is always greater than $0?
If you see here, I'm not sure how we could bundle them without charging them? Or we just cannot track the kids if we remove that option all together. That free one isn't the problem though. It's the $150 charge at the top which no one likes seeing when they arrive at this page
I'm not sure how we could bundle them without charging them?
Sorry perhaps we got confused from the start. You are not trying to charge people? What is your overall goal with the Payment Links you are creating?
We ARE trying to charge them because they have to pick their quantities but we just don't want it to default to $150 when they arrive at the page. Does that make sense? This looks greedy to us at $150 right off the bat. They would have to choose quantities and raise the price, more than likely higher than $150 but that should show up once they start picking their choices
Okay but it isn't possible to start the session with all quantities set to $0. That is not something that can be done.
Despite what it says on your website and what your support said?
That is not what the support said. They said you can emable your customers to set the quantity to 0. This is true. But you cannot start the session with all options set to $0.