Sha256: e2b7b44968db1f12b3fb6e2fe72718d3b34bdd665cde1c3785ba8b4934ef74a1

Contents?: true

Size: 390 Bytes

Versions: 4

Compression:

Stored size: 390 Bytes

Contents

(function () {
    'use strict';

    /**
     * Config Variables
     */

    WORKAREA.config.afterpay = {
      afterpayScript: function() {
        if('<%= Workarea::Afterpay.test? %>' == 'true') {
          return 'https://portal.sandbox.afterpay.com/afterpay-async.js';
        } else {
          return 'https://portal.afterpay.com/afterpay-async.js';
        }
      }()
    }
}());

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-afterpay-2.1.2 app/assets/javascripts/workarea/storefront/afterpay/config.js.erb
workarea-afterpay-2.1.1 app/assets/javascripts/workarea/storefront/afterpay/config.js.erb
workarea-afterpay-2.1.0 app/assets/javascripts/workarea/storefront/afterpay/config.js.erb
workarea-afterpay-2.0.2 app/assets/javascripts/workarea/storefront/afterpay/config.js.erb