Delete a Paycode

Paycode can be deleted at any time, because it is not directly related to other objects.

The worst it can happen is that your customer cannot pay using the deleted Paycode, in which case you can just create a new one and resend it.

$result = Pencepay_Paycode::delete('paycode_uid');

Result

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