code: '''The PaymentIntent object {
    "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: The PaymentIntent objectAttributes id string retrievable with publishable key Unique identifier for the object. amount integer retrievable with publishable key Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). automatic_payment_methods hash retrievable with publishable key Settings to configure compatible payment methods from the Stripe DashboardShow child attributes charges list Charges that were created by this PaymentIntent, if any.Show child attributes client_secret string retrievable with publishable key The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key. 
  The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
  Refer to our docs to accept a payment and learn about how client_secret should be handled. currency currency retrievable with publishable key Three-letter ISO currency code, in lowercase. Must be a supported currency. customer string expandable  ID of the Customer this PaymentIntent belongs to, if one exists.
  Payment methods attached to other Customers cannot be used with this PaymentIntent.
  If present in combination with setup_future_usage, this PaymentIntent’s payment method will be attached to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. description string retrievable with publishable key An arbitrary string attached to the object. Often useful for displaying to users. last_payment_error hash retrievable with publishable key The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.Show child attributes metadata hash Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. For more information, see the documentation. next_action hash retrievable with publishable key If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.Show child attributes payment_method string expandable  retrievable with publishable key ID of the payment method used in this PaymentIntent. payment_method_types array containing strings retrievable with publishable key The list of payment method types (e.g. card) that this PaymentIntent is allowed to use. receipt_email string retrievable with publishable key Email address that the receipt for the resulting payment will be sent to. If receipt_email is specified for a payment in live mode, a receipt will be sent regardless of your email settings. setup_future_usage enum retrievable with publishable key Indicates that you intend to make future payments with this PaymentIntent’s payment method.
  Providing this parameter will attach the payment method to the PaymentIntent’s Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be attached to a Customer after the transaction completes.
  When processing card payments, Stripe also uses setup_future_usage to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.Possible enum valueson_session Use on_session if you intend to only reuse the payment method when your customer is present in your checkout flow.off_session Use off_session if your customer may or may not be present in your checkout flow. shipping hash retrievable with publishable key Shipping information for this PaymentIntent.Show child attributes statement_descriptor string For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters. statement_descriptor_suffix string Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor. status string retrievable with publishable key Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. Read more about each PaymentIntent status.More attributesExpand all  object string, value is "payment_intent" retrievable with publishable key   amount_capturable integer   amount_details hash   amount_received integer   application string expandable "application" Connect only   application_fee_amount integer Connect only   canceled_at timestamp retrievable with publishable key   cancellation_reason string retrievable with publishable key   capture_method enum retrievable with publishable key   confirmation_method enum retrievable with publishable key   created timestamp retrievable with publishable key   invoice string expandable    livemode boolean retrievable with publishable key   on_behalf_of string expandable  Connect only   payment_method_options hash   processing hash retrievable with publishable key   review string expandable    transfer_data hash Connect only   transfer_group string Connect only