Openbravo Issue Tracking System - Java Client POS
View Issue Details
0008881Java Client POS(No Category)public2009-05-04 16:392014-04-02 09:03
mirurita 
adrianromero 
normaltrivialalways
closedfixed 
20rPath Linux
 
2.30 
0008881: getCardType() in (PaymentGatewayPGNET class) returns wrong type of card
If you are using American Express card, the current method will return a "DINE" string, which matches with Diners Club card.
Configure Openbravo POS 2.30 to use with PaymentsGateway.NET provider. [1]
In Configuration, select keyboard as Mag. Card Reader.
Make a sale and in Payment window, enter a valid card number starting with 34 or 37 (is the prefix of AmEx cards).
The application will process as a Diners Club card.

[1] http://wiki.openbravo.com/wiki/OpenbravoPOS_Payment_Gateways [^]
Change the order of if instructions.

else if (sCardNumber.startsWith("34") || sCardNumber.startsWith("37")) {
  c = "AMER";
} else if (sCardNumber.startsWith("3")) {
  c = "DINE";
}
No tags attached.
Issue History
2009-05-04 16:39miruritaNew Issue
2009-05-04 16:39miruritaAssigned To => mirurita
2009-05-04 16:44hgbotCheckin
2009-05-04 16:44hgbotNote Added: 0016014
2009-05-04 16:44hgbotStatusnew => resolved
2009-05-04 16:44hgbotResolutionopen => fixed
2011-06-03 12:22dalsasuaAssigned Tomirurita => adrianromero
2012-11-07 09:40priyamCategory01 - General => (No Category)
2014-04-02 09:03plujanNote Added: 0065949
2014-04-02 09:03plujanStatusresolved => closed

Notes
(0016014)
hgbot   
2009-05-04 16:44   
Repository: openbravopos
Revision: 611
Author: mirurita
Date: 2009-05-04 16:44:45 +0200 (Mon, 04 May 2009)

Fixes issue 0008881: getCardType() in (PaymentGatewayPGNET class) returns wrong type of card

---
U trunk/src-pos/com/openbravo/pos/payment/PaymentGatewayPGNET.java
---

https://dev.openbravo.com/websvn/openbravopos/?rev=611&sc=1 [^]
(0065949)
plujan   
2014-04-02 09:03   
Closed as it was in Resolved for too long