If the transaction fails, the balance used will be refunded automatically.
If the balance has not been refunded, please contact the related online store/app to report a failed transaction so they can check it further.
Hope this information helps you.