Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Simple Payment System

Featured Replies

I have a simple database ordering system at the moment. I am currently implementing the payment side of things. As we generally collect full payment I don't need to worry too much about multiple invoices etc.

Basically we accept payment via Credit Card, Cheque or Cash. If our customer pays via credit card we obviously have to store card details. If they pay by cheque we store cheque number and bank details. If they pay by cash then don't really need to store anything. I have a payment method field with these three options (Cash/Cheque/Credit Card).

My question is this. If my customer chooses to pay by cheque then it seems a waste of space to have all the credit card fields. And if they pay by credit card the same goes for cheque # and bank details.

If there a table structure (I know a little about schemas so I'd be an intermediate user) that would suit this situation?

To answer my own question (my best guess would be):

Create a layout that included portals to different tables for each payment type. ie. 'Credit Card Payment' table would join via Order ID. Same again for 'Cheque Payment'. That way if I don't enter any data then I'm not using blank fields that I don't need. Hope this makes sense.

Any comments would be appreciated.

Cheers, Chris.

Create a layout that included portals to different tables for each payment type. ie. 'Credit Card Payment' table would join via Order ID. Same again for 'Cheque Payment'. That way if I don't enter any data then I'm not using blank fields that I don't need.

...but then you've got 3 big portals on your layout, so I don't think that's going to conserve any space! Why not just a single portal to a payments database, where you select a payment method, enter an amount, and enter additional information into cardNumber, cardExpiry, cardAuth, and chequeNumber. Why is it a problem if some of these fields go unused?

Just repeat "they aren't really there, they aren't really there" over and over again wink.gif.

(a couple of empty field really don't use any space to speak of)

-bd

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.