The magnetic field is strongest where the poles meet. So the iron particles are attracted to these flux reversal points on the stripe creating a visible pattern . There’s an awesome video of the ...
This is a proof of concept magnetic stripe card emulator ... The software provided can pulse a test pattern and any additional card numbers you supply.
Results that may be inaccessible to you are currently showing.