Interface StripeTokenResponseOutput.Builder

  • Method Details

    • bearerToken

      StripeTokenResponseOutput.Builder bearerToken(String bearerToken)

      Bearer credential for the Authorization header. A merchant-created restricted key (rk_live_* or rk_test_*) for a MANUAL connector. The caller applies it as Authorization: Bearer <bearerToken>.

      Parameters:
      bearerToken - Bearer credential for the Authorization header. A merchant-created restricted key (rk_live_* or rk_test_*) for a MANUAL connector. The caller applies it as Authorization: Bearer <bearerToken>.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • publishableKey

      StripeTokenResponseOutput.Builder publishableKey(String publishableKey)

      Stripe publishable key (pk_live_* or pk_test_*). Present only when one is stored on the provider. Public by design, so the caller returns it to the browser for the Payment Element.

      Parameters:
      publishableKey - Stripe publishable key (pk_live_* or pk_test_*). Present only when one is stored on the provider. Public by design, so the caller returns it to the browser for the Payment Element.
      Returns:
      Returns a reference to this object so that method calls can be chained together.