Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ASP.NET MVC Helpers for ecommerce applications

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Dinheiro.GoogleAnalytics
Octocat-spinner-32 Dinheiro.P3PPolicy
Octocat-spinner-32 Dinheiro.RemoveUnnecessaryHeaders
Octocat-spinner-32 Dinheiro
Octocat-spinner-32 tools
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
README.md

Dinheiro - Ecommerce Helpers for ASP.NET MVC

Dinheiro is a set of handy ecommerce helpers for developers integrating with third-party services.

The aim is to cover the essentials that all ecommerce websites need.

Note that in order to use these, you need to have relevant accounts in place with each third party.

Ready to go

Dinheiro.GoogleAnalytics

Allows you to easily track page views, events, social actions and ecommerce by using action filter attributes or an easy API.

You can install using NuGet:

  PM> Install-Package Dinheiro.GoogleAnalytics

Dinheiro.P3PPolicy

Adds a P3P Policy to your website (stop Internet Explorer from blocking your cookies!).

  PM> Install-Package Dinheiro.P3PPolicy

Dinheiro.RemoveUnnecessaryHeaders

Removes unnecessary ASP.NET, IIS and MVC HTTP headers from your application responses.

  PM> Install-Package Dinheiro.RemoveUnnecessaryHeaders

Dinheiro.Core

The Dinheiro.Core library contains a collection of optional handy MVC helpers:

[IFrame] and [NoIFrame] attributes

By decorating your controller or action (or applying globally) with [NoIFrame] the page will be prevented from being embedded within <frame> or <iframe> elements. This can help avoid clickjacking attacks. It does this by adding the HTTP header X-Frame-Options: DENY.

[NoIFrame]
public class HomeController {}

You can then override this to allow a page to be displayed within an <iframe>, but only on your own site by using the [IFrame] attribute. This will add the HTTP header X-Frame-Options: SAMEORIGIN.

[IFrame]
public ActionResult MyIFrame()
{
}

More details on X-Frame-Options and clickjacking can be found here: https://developer.mozilla.org/en/The_X-FRAME-OPTIONS_response_header

On the roadmap

Facilities for host name redirects, Flash cross-domain policies, open search, card processing, PayPal, Google Checkout, online chat, abandoned basket emails and more!

Something went wrong with that request. Please try again.