- Group Reviewers
- rKb70dbda55bad: Allow search with transaction and customer IDs
Because both these additional searches are mollie-specific maybe this code should be abstracted-on/moved-to the Providers/PaymentProvider. E.g. isPaymentId(), isCustomerId(), findWalletByPaymentOrCustomerId() or sth like that.
This should include ->where('key', 'mollie_id'), but even then it will not use an index and might be slow.
I believe if not found first() will return null and therefore you'd try to invoke wallet() on null?
Is it intended that the value is matched against "cst_$something" or should the search only be executed against $something without the cst_ prefix? Same below.