diff --git a/templates/CRM/Mjwshared/Form/DrupalWebformBillingBlock.tpl b/templates/CRM/Mjwshared/Form/DrupalWebformBillingBlock.tpl
new file mode 100644
index 0000000000000000000000000000000000000000..340eddc03744b43854650218bc6b4bf00c923f69
--- /dev/null
+++ b/templates/CRM/Mjwshared/Form/DrupalWebformBillingBlock.tpl
@@ -0,0 +1,22 @@
+{*
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC. All rights reserved.                        |
+ |                                                                    |
+ | This work is published under the GNU AGPLv3 license with some      |
+ | permitted exceptions and without any warranty. For full license    |
+ | and copyright information, see https://civicrm.org/licensing       |
+ +--------------------------------------------------------------------+
+*}
+{* Manually create the CRM.vars.payment here for drupal webform because \Civi::resources()->addVars() does not work in this context *}
+{literal}
+<script type="text/javascript">
+  CRM.$(function($) {
+    $(document).ready(function() {
+      if (typeof CRM.vars.payment === 'undefined') {
+        var paymentJSVars = {{/literal}{foreach from=$paymentJSVars key=arrayKey item=arrayValue}{$arrayKey}:'{$arrayValue}',{/foreach}{literal}};
+        CRM.vars.payment = paymentJSVars;
+      }
+    });
+  });
+</script>
+{/literal}