|
Squiz Matrix
4.12.2
|
Static Public Member Functions | |
| static | getTestCardNumbers () |
| static | getCardTypes () |
Definition at line 31 of file sagepay_processor.inc.
| __construct | ( | $protocol, | |
| $vendor, | |||
$timeout = 60, |
|||
$run_mode = 'Simulator' |
|||
| ) |
Constructor
| string | $protocol | the protocol version of SagePay Direct Protocol |
| string | $vendor | the vendor name of a SagePay account |
| int | $timeout | the time to wait for a response from SagePay Payment Gateway |
| string | $run_mode | specify if this processor is in live,test or simulator mode; default is simulator mode |
Definition at line 179 of file sagepay_processor.inc.
| authorize | ( | $merchant_ref, | |
| $md, | |||
| $pares | |||
| ) |
Authorize a 3-D Secure transaction
| string | $merchant_ref | the merchant reference number for logging |
| string | $md | the MD that is sent back from the ACS |
| string | $pares | the Payment Authentication Response (PARes) returned by the Access Control Server (ACS) |
Definition at line 711 of file sagepay_processor.inc.
|
static |
Get the list of the card types supported by SagePay
Definition at line 845 of file sagepay_processor.inc.
| getMerchantReference | ( | ) |
| getResponse | ( | ) |
Returns the gateway response array in standard format
This should be the format other gateways use to return their response
public
Definition at line 790 of file sagepay_processor.inc.
|
static |
Get the list of the magic test card numbers
Definition at line 832 of file sagepay_processor.inc.
| process | ( | ) |
Process the transaction
Definition at line 678 of file sagepay_processor.inc.
| setAmount | ( | $amount, | |
| $currency | |||
| ) |
Set amount of transaction
| string | $amount | the amount of the transaction |
| string | $currency | the currency of the amount |
Definition at line 322 of file sagepay_processor.inc.
| setAVSCV2 | ( | ) |
Set AVS/CV2 for the transaction
Definition at line 651 of file sagepay_processor.inc.
| setBillingAddress1 | ( | $address | ) |
Set billing address 1
| string | $address | the first line of the billing address |
Definition at line 400 of file sagepay_processor.inc.
| setBillingAddress2 | ( | $address | ) |
Set billing address 2
| string | $address | the second line of the billing address |
Definition at line 415 of file sagepay_processor.inc.
| setBillingCity | ( | $city | ) |
Set billing city
| string | $city | the city component of the billing address |
Definition at line 430 of file sagepay_processor.inc.
| setBillingCountry | ( | $country | ) |
Set billing country
| string | $address | the country component of the billing address |
Definition at line 460 of file sagepay_processor.inc.
| setBillingFirstnames | ( | $first_names | ) |
Set billing first names
| string | $first_names | the customer's first names |
Definition at line 370 of file sagepay_processor.inc.
| setBillingPhone | ( | $phone_no | ) |
Set billing phone
| string | $phone_no | the phone number at the billing address |
Definition at line 490 of file sagepay_processor.inc.
| setBillingPostcode | ( | $postcode | ) |
Set billing postcode
| string | $postcode | the postcode component of the billing address |
Definition at line 445 of file sagepay_processor.inc.
| setBillingState | ( | $state | ) |
Set billing state
| string | $state | the state component of the billing address if the country is the United States |
Definition at line 475 of file sagepay_processor.inc.
| setBillingSurname | ( | $surname | ) |
Set billing surname
| string | $first_names | the customer's surname |
Definition at line 385 of file sagepay_processor.inc.
| setCardCV2 | ( | $cv2 | ) |
Set card CV2
| string | $cv2 | the card CV2 |
Definition at line 276 of file sagepay_processor.inc.
| setCardExpiryDate | ( | $month, | |
| $year | |||
| ) |
Set expiry date
| string | $month | the expiry month |
| string | $year | the expiry year |
Definition at line 230 of file sagepay_processor.inc.
| setCardIssueNumber | ( | $issue_no | ) |
Set card issue number
| string | $issue_no | the card issue number |
Definition at line 261 of file sagepay_processor.inc.
| setCardName | ( | $card_name | ) |
Set card name
| string | $card_name | the card name |
Definition at line 197 of file sagepay_processor.inc.
| setCardNumber | ( | $card_no | ) |
Set card number
| string | $card_no | the card number |
Definition at line 212 of file sagepay_processor.inc.
| setCardStartDate | ( | $month, | |
| $year | |||
| ) |
Set start date
| string | $month | the start month |
| string | $year | the start year |
Definition at line 246 of file sagepay_processor.inc.
| setCardType | ( | $card_type | ) |
Set card type
| string | $card_type | the card type |
Definition at line 354 of file sagepay_processor.inc.
| setDeliveryAddress1 | ( | $address | ) |
Set delivery address 1
| string | $address | the first line of the delivery address |
Definition at line 535 of file sagepay_processor.inc.
| setDeliveryAddress2 | ( | $address | ) |
Set delivery address 2
| string | $address | the second line of the delivery address |
Definition at line 550 of file sagepay_processor.inc.
| setDeliveryCity | ( | $city | ) |
Set delivery city
| string | $city | the city component of the delivery address |
Definition at line 565 of file sagepay_processor.inc.
| setDeliveryCountry | ( | $country | ) |
Set delivery country
| string | $address | the country component of the delivery address |
Definition at line 595 of file sagepay_processor.inc.
| setDeliveryFirstnames | ( | $first_names | ) |
Set delivery first names
| string | $first_names | the customer's first names |
Definition at line 505 of file sagepay_processor.inc.
| setDeliveryPhone | ( | $phone_no | ) |
Set delivery phone
| string | $phone_no | the phone number at the delivery address |
Definition at line 625 of file sagepay_processor.inc.
| setDeliveryPostcode | ( | $postcode | ) |
Set delivery postcode
| string | $postcode | the postcode component of the delivery address |
Definition at line 580 of file sagepay_processor.inc.
| setDeliveryState | ( | $state | ) |
Set delivery state
| string | $state | the state component of the delivery address if the country is the United States |
Definition at line 610 of file sagepay_processor.inc.
| setDeliverySurname | ( | $surname | ) |
Set delivery surname
| string | $first_names | the customer's surname |
Definition at line 520 of file sagepay_processor.inc.
| setDescription | ( | $desc | ) |
Set description of transaction
| string | $desc | the description of transaction |
Definition at line 339 of file sagepay_processor.inc.
| setGiftAidPayment | ( | ) |
Set Gift Aid Payment for the transaction
Definition at line 664 of file sagepay_processor.inc.
| setMerchantReference | ( | $merchant_ref | ) |
Set merchant reference
| string | $merchant_ref | the merchant reference number |
Definition at line 305 of file sagepay_processor.inc.
| setThreeDSecure | ( | ) |
Set 3-D Secure for the transaction
Definition at line 638 of file sagepay_processor.inc.
| setTransactionTypePayment | ( | ) |
Set transaction type to PAYMENT
Definition at line 289 of file sagepay_processor.inc.