Turn it on
1
Open the Wallet card
Go to Admin → Finance → Payment Gateways and click Wallet. The page is titled Wallet Balance Settings.
2
Enable it
Under General, turn on Status. The description reads “When enabled, users can use their Wallet Balance for payments”.
3
Save
Click Save. You see “Wallet settings saved successfully.”
What the customer sees
On the checkout page, selecting Account Wallet shows a Your wallet balance panel with the current balance:- If the balance covers the total, the panel is green and says “Enough to cover this plan” followed by the amount that will be charged from the wallet.
- If it does not, the panel is red and says “Not enough to cover the” amount “due. Please top up your wallet or choose another method.”
How payments work
When the customer confirms, MagicPost does the following in one step:- Checks that the gateway is enabled and that the amount due is above zero.
- Locks the customer’s account and checks the balance again, so two checkouts at the same moment cannot spend the same money.
- Subtracts the amount from the balance and records a completed order whose reference starts with
WAL-. - Adds the plan’s credits, and for Monthly, Yearly and Lifetime plans creates an active subscription.
- Opens the success page and shows “Payment successful — your plan is now active.”
Renewals
The wallet cannot charge a customer again by itself. A Monthly or Yearly plan paid from the wallet is granted for one period, and the customer repeats the payment when it ends.Currency
The wallet balance is a plain number with no currency of its own. MagicPost subtracts the plan price as it is, with no conversion. Treat the balance as being in the same currency as the plans you sell.Common errors
This payment method is not available right now.
This payment method is not available right now.
Status is off for the wallet. Turn it on and save.
Your wallet balance (...) is too low to pay ... for this plan. Please top up your wallet and try again.
Your wallet balance (...) is too low to pay ... for this plan. Please top up your wallet and try again.
The balance is lower than the amount due. The customer must use another payment method.
This plan is not available.
This plan is not available.
The amount due is zero or less, or the plan is no longer active.
We could not complete your wallet payment. Please try again or contact support.
We could not complete your wallet payment. Please try again or contact support.
The payment could not be saved and the balance was not changed. The reason is in
storage/logs/laravel.log.
