Checkout Submit (Payment Complete)

// 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

Event

Description

knack-checkout-submit.scene_1

Triggered by checkout view on scene specified by key

Parameters

Parameter

Description

view

The form (JSON object)

record

The created record, including its ID (JSON object)