Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

cbarton
Copy link
Member

@cbarton cbarton commented Aug 14, 2024

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(...)

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

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

BraintreeLoader.loadModules('applePay', 'dataCollector')
  .catch(...)
  .then(...)
```
`ApplePaySession` is stubbed out for the unit tests, so it should not
matter which browser is running the tests.
@chrissrogers
Copy link
Member

Excellent

@chrissrogers chrissrogers merged commit e0f595f into master Aug 14, 2024
26 checks passed
@chrissrogers chrissrogers deleted the consolidate-braintree branch August 14, 2024 18:45
recurly-integrations pushed a commit that referenced this pull request Aug 26, 2024
[Full Changelog](v4.29.2...v4.29.3)

**Merged Pull Requests**

- Ensures setup fees are not applied to subscriptions with quantity = 0 [#893](#893) ([chrissrogers](https://github.com/chrissrogers))
- chore: convert Google Pay element to a class from function [#892](#892) ([cbarton](https://github.com/cbarton))
- chore: extract loading braintree libraries to util/braintree [#891](#891) ([cbarton](https://github.com/cbarton))

##### Minified MD5 Checksum
```
3aedc5c6a5c87365133c8b23feb32f0c ./build/recurly.min.js
```
##### [SRI Hash](https://www.srihash.org/)
```
lhLNZJ447F9CH0rGPYMNS3NV3Nwnn4Y3oaUsbTa3cAQ/J7XDX76JAa2Htis2bEro
```
recurly-integrations pushed a commit that referenced this pull request Aug 26, 2024
[Full Changelog](v4.29.2...v4.29.4)

**Merged Pull Requests**

- Ensures addons are not included in subscriptions with quantity = 0 [#895](#895) ([chrissrogers](https://github.com/chrissrogers))
- Ensures setup fees are not applied to subscriptions with quantity = 0 [#893](#893) ([chrissrogers](https://github.com/chrissrogers))
- chore: convert Google Pay element to a class from function [#892](#892) ([cbarton](https://github.com/cbarton))
- chore: extract loading braintree libraries to util/braintree [#891](#891) ([cbarton](https://github.com/cbarton))

##### Minified MD5 Checksum
```
42050ba64172af4e291a37545fa905de ./build/recurly.min.js
```
##### [SRI Hash](https://www.srihash.org/)
```
OHnJ0LXZyg2EpXal64oDpbfmLPrToCaWpN792/a3zsj6my6ILT6bd9k7NVaZFxge
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants