# Create, pay or update payments

The /PaymentIntent endpoint supports four POST operations: (1) create a new one-time payment, (2) create a new recurring payment, (3) pay an existing installment, and (4) update
an existing recurring payment. All actions automatically update Salesforce data accordingly.

Endpoint: POST /PaymentIntent
Version: v2
Security: Salesforce_Production, Salesforce_Sandbox

## Response 200 fields (application/json):

  - `Id` (string)
    The Payment Intent Id. Can also be found on the Inbound Report record in Salesforce.
    Example: "pi_1hubybk7nh45rvbt6"

  - `PaymentMethod` (object)

  - `PaymentMethod.Name` (any)
    Example: "CreditCard"

  - `PaymentMethod.Processor` (any)
    Example: "PaymentHub-Stripe"

  - `PaymentMethod.Target` (any)
    Example: "Stripe-Main"

  - `PaymentMethod.Parameters` (any)
    Example: {"description":"Monthly membership fee"}

  - `Settings` (object)

  - `Settings.SourceConnector` (any)
    Example: "PaymentHub-for-NPSP"

  - `RedirectURL` (any)
    Example: "https://redirect-hostdomain.com/checkout/payment-parameters"

## Response 422 fields (application/json):

  - `error_code` (integer, required)
    Example: 999

  - `error_message` (string, required)
    Example: "Contact error: Required fields are missing: [LastName]"


