#arya_
1 messages · Page 1 of 1 (latest)
Hello! You could keep the list of valid promotion codes on your end and throw your own error earlier if an invalid one is used.
Oh okay, so a manual checking needs to be done on my end? Can stripe not just ignore an invalid promotion_code
You can also list Promotion Codes by code to see if any matches exist: https://stripe.com/docs/api/promotion_codes/list#list_promotion_code-code
No, if you explicitly supply an invalid Promotion Code via the API we're going to return an error letting you know you provided an invalid value.
The expectation is that you set the value with the assumption that it will work. If it's not going to work we return an error because it doesn't match the assumption.
Sounds good, thanks!