diff --git a/commerce_braintree.libraries.yml b/commerce_braintree.libraries.yml
index cdce7a0..9eb0b51 100644
--- a/commerce_braintree.libraries.yml
+++ b/commerce_braintree.libraries.yml
@@ -6,7 +6,12 @@ braintree:
     url: https://github.com/braintree/braintree-web/blob/3.43.0/LICENSE
     gpl-compatible: true
   js:
-    "https://js.braintreegateway.com/web/3.43.0/js/client.min.js": { minified: true }
+    https://js.braintreegateway.com/web/3.43.0/js/client.min.js:
+      minified: true
+      type: external
+      attributes:
+        integrity: "sha384-aGv4ftw/mJ9x0c2tfSwdi7qegrgB4jcgUCfMP/+18N5n8GNrSINXAnVcwoT+G0Wp"
+        crossorigin: anonymous
 
 paypal-checkout:
   remote: https://github.com/paypal/paypal-checkout
@@ -29,7 +34,12 @@ braintree-hosted-fields:
     url: https://github.com/braintree/braintree-web/blob/3.43.0/LICENSE
     gpl-compatible: true
   js:
-    "https://js.braintreegateway.com/web/3.43.0/js/hosted-fields.min.js":  { minified: true }
+    https://js.braintreegateway.com/web/3.43.0/js/hosted-fields.min.js:
+      minified: true
+      type: external
+      attributes:
+        integrity: "sha384-iKRBiDkeXlV6wYB+AAooIatTggLfJcTqLVjyILA/aExEFF2YHG8YEVfQ1g1d4O2F"
+        crossorigin: anonymous
   dependencies:
     - commerce_braintree/braintree
 
@@ -41,7 +51,12 @@ braintree-paypal-checkout:
     url: https://github.com/braintree/braintree-web/blob/3.43.0/LICENSE
     gpl-compatible: true
   js:
-    "https://js.braintreegateway.com/web/3.43.0/js/paypal-checkout.min.js": { minified: true }
+    https://js.braintreegateway.com/web/3.43.0/js/paypal-checkout.min.js:
+      minified: true
+      type: external
+      attributes:
+        integrity: "sha384-GHHpBHivxXO3jdyTBmIyr6kO9EvXSgSuigQrVSWLvA1aNegadIXbIBMjDbUcASsP"
+        crossorigin: anonymous
   dependencies:
     - commerce_braintree/paypal-checkout
     - commerce_braintree/braintree
