Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

woocommerce.deleteCustomer(...) isn't working #56

Open
GitGud31 opened this issue Apr 14, 2021 · 0 comments
Open

woocommerce.deleteCustomer(...) isn't working #56

GitGud31 opened this issue Apr 14, 2021 · 0 comments

Comments

@GitGud31
Copy link

Trying to delete customer account using the provided methode by the package woocommerce.deleteCustomer(...)

My code:

Future<WooCustomer> delete() async {
    final id = _dbService.getData().id;
    WooCustomer _wooCustomer;
    try {
      _wooCustomer = await _customerController.wooCommerce.value
          .deleteCustomer(customerId: id);
      if (_wooCustomer != null) {
        return _wooCustomer;
      }

    } catch (e) {
            _logger.e(e); //for prints
    }

The error i'm getting from _logger.e(e)

error: status code 501 Not Implemented

Anyone have the same problem ? Or any suggestion or how to delete a customer account ? thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant