Jump to content

Help with PHP/Laravel Banking Script


jjeffrey

Recommended Posts

In this banking script developed with PHP/Laravel want to make a modification. If withdrawals are initiated, Assuming a user has a balance of $500 and wants to withdraw $500, the charges will be deducted from the Balance. What I want is, the charges should be instead added to the balance and not subtracted. For example if a user has $500 and wants to withdraw $500 Assuming the charge is $50, making a total of $550. Since the Total is more than the balance, insufficient funds error message will be displayed. Bottom line is the charge should be added to the balance and not subtracted from the balance.

Link to comment
Share on other sites

What you are asking for makes no sense.  

Guessing what you meant to say, is that the "charges" should be added to the withdrawal amount prior to the balance check, so that withdrawal will not be allowed.  This seems like a very simple change to the logic of the withdrawal check.

Since you provided no code, there is nothing more that anyone can do for you at this time.

Link to comment
Share on other sites

So fix the code to include the charge with the withdrawl amount when attempting to deduct from the balance?

Remember that we have no idea what you're working with, let alone any clue about the sorts of code involved, so it's going to hard for us to say much unless you can provide quite a bit more information...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.