code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.PaymentIntent.retrieve(
    "pi_1DrPsv2eZvKYlo2CEDzqXfPH",
  )
  '''Response {
    "id": "pi_1DrPsv2eZvKYlo2CEDzqXfPH",
    "object": "payment_intent",
    "amount": 1099,
    "amount_capturable": 0,
    "amount_details": {
      "tip": {}
    },
    "amount_received": 0,
    "application": null,
    "application_fee_amount": null,
    "automatic_payment_methods": null,
    "canceled_at": null,
    "cancellation_reason": null,
    "capture_method": "manual",
    "charges": {
      "object": "list",
      "data": [],
      "has_more": false,
      "url": "/v1/charges?payment_intent=pi_1DrPsv2eZvKYlo2CEDzqXfPH"
    },
    "client_secret": "pi_1DrPsv2eZvKYlo2CEDzqXfPH_secret_DDAO0OLHB8Q8oN5btYX9rg9j2",
    "confirmation_method": "automatic",
    "created": 1547212637,
    "currency": "usd",
    "customer": null,
    "description": null,
    "invoice": null,
    "last_payment_error": null,
    "livemode": false,
    "metadata": {},
    "next_action": null,
    "on_behalf_of": null,
    "payment_method": null,
    "payment_method_options": {},
    "payment_method_types": [
      "card"
    ],
    "processing": null,
    "receipt_email": null,
    "redaction": null,
    "review": null,
    "setup_future_usage": null,
    "shipping": null,
    "statement_descriptor": null,
    "statement_descriptor_suffix": null,
    "status": "requires_payment_method",
    "transfer_data": null,
    "transfer_group": null
  }'''
nl: Retrieve a PaymentIntentRetrieves the details of a PaymentIntent that has previously been created. 
  Client-side retrieval using a publishable key is allowed when the client_secret is provided in the query string. 
  When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the payment intent object reference for more details.Parameters client_secret Required if using publishable key The client secret of the PaymentIntent. Required if a publishable key is used to retrieve the source.ReturnsReturns a PaymentIntent if a valid identifier was provided