{"__v":14,"_id":"54c9056a7a11f60d0022a867","category":{"__v":5,"_id":"54c8f8ae0174630d00efa874","pages":["54c9056a7a11f60d0022a867","54c905914574700d00f01677","54c905c70174630d00efa89e","54c905e44574700d00f01679","54c906014574700d00f0167b"],"project":"547cd7662eaee50800ed1089","version":"547cd7662eaee50800ed108c","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-01-28T14:56:46.281Z","from_sync":false,"order":2,"slug":"sell","title":"Sell"},"parentDoc":null,"project":"547cd7662eaee50800ed1089","user":"547cd6ac78fd57080023ca99","version":{"__v":9,"_id":"547cd7662eaee50800ed108c","project":"547cd7662eaee50800ed1089","createdAt":"2014-12-01T21:02:30.851Z","releaseDate":"2014-12-01T21:02:30.851Z","categories":["547cd7672eaee50800ed108d","54c8f8ae0174630d00efa874","54c8f8bd7a11f60d0022a832","54c8f8c60174630d00efa876","54c8f8f10174630d00efa877","55155826bc466623002afe83","551558324c7c1e39003735a0","56052058e266000d008971c7","57909a453b845d0e006a37d5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-01-28T15:51:06.544Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"When your application is not activated yet (i.e. in trial mode) you need to provide your customer a capability to buy your app quickly. Usually adding a **Purchase** button to an activation interface or elsewhere in the app does that. In most cases the behavior of this button is hardcoded, including URL of the online store. That causes a headache in case if you need to change your store URL because you need to release a new version of your application with the new address of the store.\n\nDevMate provides a capability to set your store URL in the web-interface. Later on, when a customer clicks on the **Purchase** button, a request is sent to DevMate and then the customer is redirected to the URL you specified.\n\nTo configure Store URL you need to do the following:\n\n1. Select the application \n2. Go to _Settings > Store URL_ and press **Edit**\n2.  Type the URL of your store (e.g. `http://placetobuymyapp.com`)\n3.  Press **Save**.\n\nThat's it, now when your customers will press **Purchase** button in activation form (or wherever you place it), they will get a browser window with that page opened. If you will need to change the location of the store, you just need to repeat those steps without changing anything in your app code.\n\nYou can specify additional GET parameters when setting Store URL (for example, `http://mystore.com/myapp?campaign=devmate`), but note that if your application will send GET parameter with the same name, it will have higher priority. For example, if you set link in DevMate to `http://mystore.com/?campaign=devmate`), but your application will send GET parameter `?campaign=inapppurchase`, the resulting link will be `http://mystore.com?campaign=inapppurchase`.\n\nThe following parameters will be sent from your app:\n\n*   bundle ID of your application\n*   unique user session identifier\n*   application version\n*   partner identifier (if set).\n\nAlternatively, you can use FastSpring Embedded Store for better purchase experience. Learn [here](http://docs.devmate.com/v1.0/docs/activations-and-trial#section-fastspring-embedded-store) how to do it.","excerpt":"","slug":"set-store-url","type":"basic","title":"Set Store URL"}
When your application is not activated yet (i.e. in trial mode) you need to provide your customer a capability to buy your app quickly. Usually adding a **Purchase** button to an activation interface or elsewhere in the app does that. In most cases the behavior of this button is hardcoded, including URL of the online store. That causes a headache in case if you need to change your store URL because you need to release a new version of your application with the new address of the store. DevMate provides a capability to set your store URL in the web-interface. Later on, when a customer clicks on the **Purchase** button, a request is sent to DevMate and then the customer is redirected to the URL you specified. To configure Store URL you need to do the following: 1. Select the application 2. Go to _Settings > Store URL_ and press **Edit** 2. Type the URL of your store (e.g. `http://placetobuymyapp.com`) 3. Press **Save**. That's it, now when your customers will press **Purchase** button in activation form (or wherever you place it), they will get a browser window with that page opened. If you will need to change the location of the store, you just need to repeat those steps without changing anything in your app code. You can specify additional GET parameters when setting Store URL (for example, `http://mystore.com/myapp?campaign=devmate`), but note that if your application will send GET parameter with the same name, it will have higher priority. For example, if you set link in DevMate to `http://mystore.com/?campaign=devmate`), but your application will send GET parameter `?campaign=inapppurchase`, the resulting link will be `http://mystore.com?campaign=inapppurchase`. The following parameters will be sent from your app: * bundle ID of your application * unique user session identifier * application version * partner identifier (if set). Alternatively, you can use FastSpring Embedded Store for better purchase experience. Learn [here](http://docs.devmate.com/v1.0/docs/activations-and-trial#section-fastspring-embedded-store) how to do it.