cardtype.pml is used for getting the credit card type used for a specific transaction. In combination with auth.cgi it is also possible to check whether the credit card entered by the customer is of the type also given by the customer.
https://payment.architrade.com/cardtype.pml
The function cardtype.pml accepts the following input parameters:
Parameter | Description |
merchant | The merchant parameter is the shops DIBS identification number. The merchant number is available in the order confirmation email and is a 7-digit integer. |
transact | All transactions are given a unique DIBS identification number, it is a as minimum 6-digit integer , e.g. transact=123456. |
[account] | If several departments in a company use the same acquirer contract it may be beneficial to keep track of the transactions by department. Setting the account parameter enables separation of the transaction by department. |
The response from the DIBS system is a single string (NB! not the normal format of parameter=<parameter>). If the transaction is unknown to the DIBS server the response is 0, otherwise a code for the credit card type is returned (see possible cardtypes here).