"Did you check if […]"

Is this a grammatically correct/formal way to ask the question of this type? Here is an example

Hey, did you check if the payment went through?

What's the better way to rephrase it?


Solution 1:

I think yours works. This might sound nicer:

Hey, did you check whether the payment went through?