Class: Payment_Process_Result
Source Location: /Payment_Process-0.6.4/Process.php
Payment_Process_Result
Author(s):
Version:
|
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
$approvalCode =
[line 381]
Authorization/Approval code
$avsCode =
[line 398]
Address verification code The AVS code returned from your gateway. This should then be mapped to the appropriate PAYMENT_PROCESS_AVS_* code using $_avsCodeMap. This value should also be mapped to the appropriate textual message via the $_avsCodeMessages array.
$code =
[line 343]
The approval/decline code The value returned by your gateway as approved/declined should be mapped into this variable. Valid results should then be mapped into the appropriate PAYMENT_PROCESS_RESULT_* code using the $_statusCodeMap array. Values returned into $code should be mapped as keys in the map with PAYMENT_PROCESS_RESULT_* as the values.
$customerId =
[line 436]
Customer ID Unique internal customer ID (ie. your company's customer ID used to track individual customers).
$cvvCode = PAYMENT_PROCESS_CVV_NOAPPLY
[line 449]
CVV Code The CVV code is the 3-4 digit number on the back of most credit cards. This value should be mapped via the $_cvvCodeMap variable to the appropriate PAYMENT_PROCESS_CVV_* values.
$cvvMessage = 'No CVV message from gateway'
[line 462]
CVV Message Your cvvCode value should be mapped to appropriate messages via the $_cvvCodeMessage array. This value is merely here to hold the value returned from the gateway (if any).
$invoiceNumber =
[line 424]
Invoice Number Unique internal invoiceNumber (ie. your company's order/invoice number that you assign each order as it is processed). It is always a good idea to pass this to the gateway (which is usually then echo'd back).
$message = 'No message from gateway'
[line 372]
Message from gateway Map the textual message from the gateway into this variable. It is not currently returned or used (in favor of the $_statusCodeMessages map, but can be accessed directly for debugging purposes.
$messageCode =
[line 358]
Message/Response Code Along with the response (yes/no) you usually get a response/message code that translates into why it was approved/declined. This is where you map that code into. Your $_statusCodeMessages would then be keyed by valid messageCode values.
$transactionId =
[line 411]
Transaction ID This is the unique transaction ID, which is used by gateways to modify transactions (credit, update, etc.). Map the appropriate value into this variable.
$_rawResponse = null
[line 326]
The raw response (ie. from cURL)
Method Detail
Documentation generated on Mon, 11 Mar 2019 14:00:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|