Giter Site home page Giter Site logo

Comments (3)

lukasaron avatar lukasaron commented on June 19, 2024

Could @v-makh please share the HCL code (redact any sensitive details)?

from terraform-provider-stripe.

v-makh avatar v-makh commented on June 19, 2024

@lukasaron

resource "stripe_portal_configuration" "portal_configuration" {
  active = true
  business_profile {
    privacy_policy_url   = var.privacy_url
    terms_of_service_url = var.terms_url
  }
  default_return_url = var.return_url
  features {
    customer_update {
      enabled         = true
      allowed_updates = ["name", "email", "address", "shipping", "phone"]
    }
    invoice_history {
      enabled = true
    }
    payment_method_update {
      enabled = true
    }
    subscription_cancel {
      enabled = true
      cancellation_reason {
        enabled = true
        options = ["too_expensive", "missing_features", "unused", "customer_service", "too_complex", "low_quality", "other"]
      }
      mode               = "at_period_end"
      proration_behavior = "none"
    }
    subscription_pause {
      enabled = false
    }
    subscription_update {
      enabled                 = true
      default_allowed_updates = ["price"]
      proration_behavior      = "none"
      products {
        product = stripe_product.product1.product_id
        prices  = [stripe_price.product1.id]
      }
    }
  }
  metadata = {
    env = "${var.env}"
  }
}

from terraform-provider-stripe.

lukasaron avatar lukasaron commented on June 19, 2024

Could you please have a look at this documentation: https://stripe.com/docs/customer-management ?

from terraform-provider-stripe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.