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

EventDescription
knack-checkout-submit.scene_1Triggered by checkout view on scene specified by key

Parameters

ParameterDescription
viewThe form (JSON object)
recordThe created record, including its ID (JSON object)