braintree / braintree_python

Braintree Python library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
241 stars 155 forks source link

Braintree ID's Length #116

Closed UmairShahzad closed 4 years ago

UmairShahzad commented 4 years ago

General information

The Docs suggest that the subscription ID can consist of 36 characters max, however, the API or Braintree do not impose any such limits. I can create subscriptions with IDs of length even greater than 255. Is this the desired behaviour? Will braintree restrict this future or can I rely on ID's with length > 36?

crookedneighbor commented 4 years ago

You should adhere to the docs about the limit.

If a hard limit is created in the future, you will be notified about any subscriptions that need to be updated, but the easiest thing to do would be to update any existing ids to adhere to the 36 character limit. https://developers.braintreepayments.com/reference/request/subscription/update/python