<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    >


  <browser:page
      name="mail-subscription-user-created"
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      class="..mail.UserCreatedMail"
      template="templates/mail-subscription-user-created.pt"
      permission="zope2.View"
      layer="ploneintranet.admintool.browser.interfaces.IPloneintranetAdmintoolLayer"
      />

  <!-- This is public because it is triggered by the webhook -->
  <browser:page
      name="mail-subscription-paid"
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      class="..mail.UserCreatedMail"
      template="templates/mail-subscription-paid.pt"
      permission="zope.Public"
      layer="ploneintranet.admintool.browser.interfaces.IPloneintranetAdmintoolLayer"
      />

  <!-- Stripe pages needs to be public -->
  <browser:page
      name="stripe-checkout"
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      class=".checkout.StripeCheckout"
      template="templates/stripe-checkout.pt"
      permission="zope.Public"
      />

  <!-- Stripe pages needs to be public -->
  <browser:page
      name="stripe-success"
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      class=".panels.StripePanel"
      template="templates/stripe-success.pt"
      permission="zope.Public"
      />

  <!-- Stripe pages needs to be public -->
  <browser:page
      name="stripe-cancel"
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      class=".panels.StripePanel"
      template="templates/stripe-cancel.pt"
      permission="zope.Public"
      />

  <!-- Stripe pages needs to be public -->
  <browser:page
      name="stripe-webhooks"
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      class=".webhooks.StripeWebhooks"
      permission="zope2.Public"
      layer="ploneintranet.layout.interfaces.IPloneintranetLayoutLayer"
      />

</configure>
