#digif

1 messages · Page 1 of 1 (latest)

peak jackalBOT
empty kite
#

I believe Stripe do not provide API endpoints for listing pricing tables; is that correct?
Correct. Stripe doesn't provide an API endpoint to list pricing tables.

This regex could ensure that the entered ID starts with "prctbl" and is followed by exactly 24 alphanumeric characters. The regex would be: prctbl_[[:alnum:]]{24}$. Would this be correct? Will Stripe pricing table IDs always have this format?
The prefix is correct, but the format of alphanumeric characters after the prefix can be changed

ebon wagon
#

Ah, okey..

Any clues for my concern ?

A solution to validate the input of this ID provided by the operator. There's a significant risk that the operator might make a mistake when entering this ID...

empty kite
#

I'm afraid the best is to validate the prefix only. Alternatively, you can have a pricing table preview and have that operator manually checked himself/herself that pricing table shows before saving it