Delete customer

Customer can be deleted only if it was not used to make any transactions. When Customer is deleted, all the associated objects are deleted as well (Address, CrediCard, BankAccount and so on).

$result = Pencepay_Customer::delete('customer_uid');

Result

DeleteResult object is returned, indicating the status of the delete operation.