Re: [PROPOSAL] Payment_Process
| From: | Ian Eure | Date: | Sun, 14 Dec 2003 04:22:16 +0000 |
| Subject: | Re: [PROPOSAL] Payment_Process | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24399@lists.php.net to get a copy of this message | ||
On Saturday 13 December 2003 07:15 pm, Stefan Walk wrote:
> Just a quick note too :)
>
> > 00 => "Approved",
> > 01 => "Refer to issuer",
> > 02 => "Refer to issuer - Special condition",
> > 03 => "Invalid merchant ID",
> > 04 => "Pick up card",
> > 05 => "Declined",
> > 06 => "General error",
> > 07 => "Pick up card - Special condition",
> > 13 => "Invalid amount",
>
> I don't think it's a good idea to prefix numbers with zeros if you don't
> mean octal numbers. It doesn't hurt in that case (only numbers up to 7),
> but using spaces instead would be better IMO (and wouldn't create a WTF
> situation if you insert a code "08" into that.
>
This is something that I need to check up on. The DPILink docs say that it
returns a two-digit code to indicate what the processing result was. The
gateway returns the result in a two-character string, so the prefix is
correct. I've quoted them to make it clear that they are strings and not
ints.