recurly / recurly-js

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

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

Closed cbarton closed 3 months ago

cbarton commented 3 months 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 3 months ago

Excellent