IS it possible, perhaps using the SDK to blacklist a customer from ordering on the website with snipcart

I was wondering if anyone had a solution for ‘blacklisting’ a customer and preventing them from ordering on the website. I thought perhaps this could be achieved by ‘blacklisting’ either the order email address or the company name or indeed the delivery address, so that any orders with any of the blacklisted data would NOT be processed (either with or without some sort of cart feedback explaining that the order could NOT be processed

Hey @daveharrisonnet,

For the sake of the community, I will share what we came up with.
So basically we want to remove the “place order” button, when a condition is met, in this case we are using customer’s email address, but it could be anything.

On line #3 we check if is the current customer, if so we hide the payment form. Everything else is the default Payment component nothing has been changed.

      v-if="paymentSession && ![''].includes("
      class="snipcart-payment snipcart__box"
      <div class="snipcart__box--header">
        <div class="snipcart__box--title">
            class="snipcart__box--badge snipcart__box--badge snipcart__box--badge-highlight snipcart__font--bold snipcart__font--secondary"
            {{ number }}
          <h1 class="snipcart-payment__header snipcart__font--subtitle">
            {{ $localize("payment.title") }}

      <overridable name="payment" section="top"></overridable>

      <div v-if="noPaymentsRequired">
        <p class="snipcart-payment__no-payment">
          {{ $localize('payment.no_payment') }}
        <snipcart-form-error fallback="payment_failed"></snipcart-form-error>
          :class="{'snipcart-payment__form-container--loading': loading}"

          v-if="authorizationFlowIsForm && hasRedirectPaymentMethod"


      <overridable name="payment" section="bottom"></overridable>
1 Like