KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to Store Customer Credit Card Information with an Order
PRODUCT: 4D Business Kit | VERSION: 2.x | PLATFORM: Mac & Win
Published On: July 22, 2004

There are a couple of methodologies for accepting credit card information. One way is saving the credit card information with the customer's profile during an account setup. Another way to accept this information is during the checkout process. Once this information is saved with the customer, how do we link it to the order that the customer is about to place?

The trick here is that once the credit card information is stored with the customer profile, you can retrieve it at any time. With each order, there are several fields where you can store information related to that order. One field specifically is the Payment Information field. This field can be filled by using the 4DBKOrderPaymentSet command. For example, the following code provides a link from the payment page to the validation page in which the order, with the credit card number, is saved into the database.

< a href="4DBKExecute:4DBKStoreSet/MYST;4DBKOrderPaymentSet/4DBKField/CusCCKey;4DBKGo/validate.htm">Proceed with order< /a>