3 ms·
The "planId" in the request must be manually created in the dashboard. There is no API way to dynamically create a plan which you haven't hardcoded manually in
by richardknop 9y ago
The "planId" in the request must be manually created in the dashboard. There is no API way to dynamically create a plan which you haven't hardcoded manually in the console in advance.
This makes automated deployment a bit more annoying with Braintree as it involves more manual fiddling with the console. With Stripe this can be part of the code so your business logic creates a plan if it doesn't exist, similar to upserts in SQL.
- thsowers 9y agoI stand corrected, thanks! I can definitely see that this increases friction and working with APIs that truly support everything is much more ideal.