How to give a user purchase credits
Maybe you needed to refund someone “store credit”, or part of their session fee includes a certain dollar amount towards prints.
In the WordPress administration area, go to Users.
Hover over the username, click on “Credits”.
Enter a value in the Credits field. Each credit equals $1, or whichever currency you are using.
At checkout, users will see an option to use their credits in the Payment Options box.
When the user checks the box to use credits, the cart totals are updated.
If a user has more credits than the total of the purchase, Sunshine will only use the credits it needs and also remove all other payment options since the order will be “free” to the client and no other payment information is required.