Difference between revisions of "Prepaid Card Guide"
(→Inventory) |
|||
Line 1: | Line 1: | ||
{{CreditLine Header|Prepaid Card Guide}} | {{CreditLine Header|Prepaid Card Guide}} | ||
− | '''This guide is for developers implementing the | + | '''This guide is for developers implementing the Pre-paid Functionality''' |
==Requirements== | ==Requirements== | ||
Line 19: | Line 19: | ||
==Prepaid API== | ==Prepaid API== | ||
− | The code is basically the same as none-prepaid. | + | The code is basically the same as none-prepaid with the addition of the Card Balance API - see below. |
+ | First call clcAuth(), then call clcGetAmount() to get the approved amount (if the host processor supports this functionality). | ||
+ | Finally, call clcGetBalanceAmount() to get the remaining balance on the card. | ||
===Card Balance=== | ===Card Balance=== | ||
To get the remaining balance call '''getBalanceAmount()''', if using '''clc.dll''' (or '''GetBalanceAmount()''', if using '''CLClient.ocx'''). | To get the remaining balance call '''getBalanceAmount()''', if using '''clc.dll''' (or '''GetBalanceAmount()''', if using '''CLClient.ocx'''). | ||
+ | |||
+ | ===Example=== | ||
+ | |||
+ | * Customer has $10 in the account. | ||
+ | * The ticket is $15. | ||
+ | |||
+ | # POS calls clcSetAmount() with $15 and sends an auth or sale request to the credit card server. | ||
+ | # The CreditLine software returns an approval back to the POS. At the same time, two important functions need to be called: <br>clcGetAmount()<br>clcGetBalanceAmount(). | ||
+ | #clcGetAmount() returns $10 (It was $15 in the request, but it was changed to $10 in the response indication the approval amount). | ||
+ | #clcGetBalanceAmount() returns $0. (Nothing left on the card) | ||
+ | |||
Revision as of 15:21, 12 April 2010
This article is part of the Payment Processing Software Library |
|
Get it... | |
Install it... | |
Connect to it... | |
Set it up... | |
Learn to use it... | |
→ Manual & User Guide | |
Fix it... | |
→ Errors & Troubleshooting | |
Get Help... | |
More Info ... | |
See also... | |
CreditLine Payment Processing Software Prepaid Card Guide. This site can also be reached at http://docs.911software.com
→ Looking for better rates? Get a Free Credit Card Processing Cost Comparison!
This guide is for developers implementing the Pre-paid Functionality
Requirements
These API require version CreditLine version 4.1 Build 1101 SP8
Inventory
To begin with, you will need the following:
- Enable Prepaid Card Support. Search for the following in 911\data\911_CCV.ini:
PrepaidCardSupport=YES
Uncomment (remove leading ;) and restart the application. If you don't find it, add this line in [911_CCV] section. - Test Setup File - to be dropped into 911\DATA directory to overwrite the existing setup file (backup as necessary). To be used in #Test Mode (see below).
- Prepaid Card Test Script - Use it to test your implementation.
- Latest version of 911 Software CreditLine
Test Mode
The testing must be conducted under the CreditLine Test Mode.
Prepaid API
The code is basically the same as none-prepaid with the addition of the Card Balance API - see below. First call clcAuth(), then call clcGetAmount() to get the approved amount (if the host processor supports this functionality). Finally, call clcGetBalanceAmount() to get the remaining balance on the card.
Card Balance
To get the remaining balance call getBalanceAmount(), if using clc.dll (or GetBalanceAmount(), if using CLClient.ocx).
Example
- Customer has $10 in the account.
- The ticket is $15.
- POS calls clcSetAmount() with $15 and sends an auth or sale request to the credit card server.
- The CreditLine software returns an approval back to the POS. At the same time, two important functions need to be called:
clcGetAmount()
clcGetBalanceAmount(). - clcGetAmount() returns $10 (It was $15 in the request, but it was changed to $10 in the response indication the approval amount).
- clcGetBalanceAmount() returns $0. (Nothing left on the card)