code: public static PaymentIntent retrieve(String intent) throws StripeException {
      return retrieve(intent, (Map<String, Object>) null, (RequestOptions) null);
    }
docs: Retrieves the details of a PaymentIntent that has previously been created.
  
  <p>Client-side retrieval using a publishable key is allowed when the <code>client_secret</code>
  is provided in the query string.
  
  <p>When retrieved with a publishable key, only a subset of properties will be returned. Please
  refer to the <a href="#payment_intent_object">payment intent</a> object reference for more
  details.