To resolve the issue:
- 

- Quit GarageBand. 

- Open the Mac App Store. 

- Sign in using the Apple ID you used to set up the computer. 

- Click the Purchases tab. 

- Click the Accept button next to GarageBand. 

- Open GarageBand. 

You should now be able to make in-app purchases.