Jump to content

Get, set and add credits functions


weslker

Recommended Posts

Are you talking about a transactional system for purchasing?

e.g.

1) User chooses product

2) User proceed to checkout

3) User enters card details and submits

4) Begin transaction

5) Is card valid?

6) Does card have enough funds?

7) If funds available, reserve funds for card

8) Remove product from stock system (decrement stock count)

9) If successful, take funds from card

10) Complete transactions, otherwise rollback (unreserve funds)

 

PHP has no "credit" functions as such, you need to design/build the transactional system yourself.

At least i'm guessing this is what you're talking about...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.