---
updatedAt: 2025-06-03T01:07:54.000Z
agentTools:
  projectIndex: https://docs.knack.com/v3/llms.txt
---

# Checkout Submit (Payment Complete)

* Triggered after a payment is completed through [integrated e-commerce](https://learn.knack.com/article/jpwygdsfda-payment-views)

```javascript
// Change scene_1 to the scene with your checkout view
$(document).on('knack-checkout-submit.scene_1', function(event, view, record) {
  // Do something after the payment has gone through
  alert('Payment successful');
});
```

**Events**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Event
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        knack-checkout-submit.scene\_1
      </td>

      <td>
        Triggered by checkout view on scene specified by key
      </td>
    </tr>
  </tbody>
</Table>

**Parameters**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        view
      </td>

      <td>
        The form (JSON object)
      </td>
    </tr>

    <tr>
      <td>
        record
      </td>

      <td>
        The created record, including its ID (JSON object)
      </td>
    </tr>
  </tbody>
</Table>