Skip to content

Add environment support

Pre-release
Pre-release
Compare
Choose a tag to compare
@deanpapastrat deanpapastrat released this 20 Aug 17:03
· 72 commits to master since this release
a7c3674

This version adds support for specifying the production or sandbox environment in the environment.js file of your Ember app to support the Sandbox beta.

module.exports = function(environment) {
  var ENV = {
    modulePrefix: 'host',
    environment: environment,
    baseURL: '/',
    locationType: 'auto',
    EmberENV: {
      // ...
    },
    APP: {
      // ...
    },

    squarePaymentForm: {
      environment: 'sandbox'
    }
  };
};

If you have a custom URL to the Payment Form library, you can use the jsUrl parameter to specify it:

    squarePaymentForm: {
      jsUrl: 'https://example.com/square-js-lib'
    }