recurly / recurly-js

Simple subscription billing in the browser
https://js.recurly.com/
MIT License
646 stars 139 forks source link

chore: extract loading braintree libraries to util/braintree #891

Closed cbarton closed 1 month ago

cbarton commented 1 month ago

Consolidates loading Braintree dependencies into a shared module instead of copying it around each module that has a Braintree integration.

import BraintreeLoader from 'path/to/./util/braintree-loader';

BraintreeLoader.loadModules('applePay', 'dataCollector')
  .catch(...)
  .then(...)
chrissrogers commented 1 month ago

Excellent