API Reference

Refunding Interac Payments - Stripe

Refunding an Interac payment

Refunding an Interac payment requires you to issue the refund through the terminal/reader. This requires you to do the refund from JavaScript using the Stripe terminal SDK.

Step 1: Refund the Payment

Below is sample code using the terminal SDK. No further API calls are required. Please note, this call is unique in that it requires a charge id. You can get this charge id from the payment details.

terminal.collectRefundPaymentMethod(
    "ch_12345",
    2000,
    "cad"
  ).then(function(collectRefundPaymentMethodResult) {
    if (collectRefundPaymentMethodResult.error) {
      // Placeholder for handling collectRefundPaymentMethodResult.error
    } else {
      return this.terminal.processRefund();
    }
  }).then(function(processRefundResult) {
    if (processRefundResult.error) {
      // Placeholder for handling processRefundResult.error
    } else {
      console.log("Charge fully refunded!");
    }
  }
);