# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 173 def acknowledge true end
Numeric address check. Possible values:
NOTPROVIDED |
|
NOTCHECKED |
|
MATCHED |
|
NOTMATCHED |
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 87 def address_result params['AddressResult'] end
Address confirmation status. PayPal only. Possible values:
NONE |
|
CONFIRMED |
|
UNCONFIRMED |
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 134 def address_status params['AddressStatus'] end
Authorization number (only if completed?).
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 63 def auth_id params['TxAuthNo'] end
AVS and CV2 check results. Possible values:
ALL MATCH |
|
SECURITY CODE MATCH ONLY |
|
ADDRESS MATCH ONLY |
|
NO DATA MATCHES |
|
DATA NOT CHECKED |
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 78 def avs_cv2_result params['AVSCV2'] end
Result of 3D Secure checks. Possible values:
OK |
Authenticated correctly. |
NOTCHECKED |
Authentication not performed. |
NOTAVAILABLE |
Card not auth-capable, or auth is otherwise impossible. |
NOTAUTHED |
User failed authentication. |
INCOMPLETE |
Authentication unable to complete. |
ERROR |
Unable to attempt authentication due to data / service errors. |
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 121 def buyer_auth_result params['3DSecureStatus'] end
Encoded 3D Secure result code.
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 126 def buyer_auth_result_code params['CAVV'] end
Was the transaction cancelled? Unfortunately, we can’t distinguish “user abort” from “idle too long”.
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 24 def cancelled? status_code == 'ABORT' end
Was the transaction complete?
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 18 def complete? status_code == 'OK' end
Last four digits of credit card.
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 160 def credit_card_last_4_digits params['Last4Digits'] end
Credit card type. Possible values:
VISA |
Visa |
MC |
MasterCard |
DELTA |
Delta |
SOLO |
Solo |
MAESTRO |
Maestro (UK and International) |
UKE |
Visa Electron |
AMEX |
American Express |
DC |
Diners Club |
JCB |
JCB |
LASER |
Laser |
PAYPAL |
PayPal |
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 155 def credit_card_type params['CardType'] end
Used by composition methods, but not supplied by SagePay.
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 165 def currency nil end
CV2 code check. Possible values:
NOTPROVIDED |
|
NOTCHECKED |
|
MATCHED |
|
NOTMATCHED |
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 105 def cv2_result params['CV2Result'] end
Was the Gift Aid box checked?
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 110 def gift_aid? params['GiftAid'] == '1' end
Total amount (no fees).
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 68 def gross params['Amount'] end
Vendor-supplied code (:order mapping).
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 53 def item_id params['VendorTxCode'] end
Check this if completed? is false.
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 48 def message params['StatusDetail'] end
Payer verification. Undocumented.
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 139 def payer_verified? params['PayerStatus'] == 'VERIFIED' end
Post code check. Possible values:
NOTPROVIDED |
|
NOTCHECKED |
|
MATCHED |
|
NOTMATCHED |
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 96 def post_code_result params['PostCodeResult'] end
Text version of complete?, since we don’t support Pending.
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 29 def status complete? ? 'Completed' : 'Failed' end
Status of transaction. List of possible values:
OK |
Transaction completed successfully. |
NOTAUTHED |
Incorrect card details / insufficient funds. |
MALFORMED |
Invalid input data. |
INVALID |
Valid input data, but some fields are incorrect. |
ABORT |
User hit cancel button or went idle for 15+ minutes. |
REJECTED |
Rejected by account fraud screening rules. |
AUTHENTICATED |
Authenticated card details secured at SagePay. |
REGISTERED |
Non-authenticated card details secured at SagePay. |
ERROR |
Problem internal to SagePay. |
# File lib/active_merchant/billing/integrations/sage_pay_form/notification.rb, line 43 def status_code params['Status'] end
Generated with the Darkfish Rdoc Generator 2.