Closed ldestrooper closed 4 years ago
You can rescue the exception:
customer = begin
Mollie::Customer.get('cst_8wmqcHMN4U')
rescue Mollie::RequestError => e
if e['status'] == 404
nil
else
raise
end
end
@vernondegoede We could add a NotFound
exception for 404 responses
Is it possible to check if a customer id exists?
If i use Mollie::Customer.get i immediately get an exception.