Interface CreateBillingPortalSessionResponse.Builder

  • Method Details

    • billingPortalUrl

      CreateBillingPortalSessionResponse.Builder billingPortalUrl(String billingPortalUrl)

      The URL of the billing portal page to redirect the end user's browser to. The URL carries a short-lived session token or a single-use link in its fragment. The link works once, until expiresAt or the end of the session if sooner.

      Parameters:
      billingPortalUrl - The URL of the billing portal page to redirect the end user's browser to. The URL carries a short-lived session token or a single-use link in its fragment. The link works once, until expiresAt or the end of the session if sooner.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionToken

      The billing portal session token carried in the fragment of billingPortalUrl. Absent when billingPortalUrl carries a single-use link instead.

      Parameters:
      sessionToken - The billing portal session token carried in the fragment of billingPortalUrl. Absent when billingPortalUrl carries a single-use link instead.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expiresAt

      The time when the single-use link in billingPortalUrl expires, 10 minutes after it was created. After this time the URL no longer works and you must create a new session.

      Parameters:
      expiresAt - The time when the single-use link in billingPortalUrl expires, 10 minutes after it was created. After this time the URL no longer works and you must create a new session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • manageToken

      A short-lived token that authorizes updates to the buyer profile from the billing portal. Returned only with sessionToken.

      Parameters:
      manageToken - A short-lived token that authorizes updates to the buyer profile from the billing portal. Returned only with sessionToken.
      Returns:
      Returns a reference to this object so that method calls can be chained together.