Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Payment_Block_Catalog_Product_View_Profile
  • Mage_Payment_Block_Form
  • Mage_Payment_Block_Form_Banktransfer
  • Mage_Payment_Block_Form_Cashondelivery
  • Mage_Payment_Block_Form_Cc
  • Mage_Payment_Block_Form_Ccsave
  • Mage_Payment_Block_Form_Checkmo
  • Mage_Payment_Block_Form_Container
  • Mage_Payment_Block_Form_Purchaseorder
  • Mage_Payment_Block_Info
  • Mage_Payment_Block_Info_Banktransfer
  • Mage_Payment_Block_Info_Cc
  • Mage_Payment_Block_Info_Ccsave
  • Mage_Payment_Block_Info_Checkmo
  • Mage_Payment_Block_Info_Container
  • Mage_Payment_Block_Info_Purchaseorder
  • Mage_Payment_Helper_Data
  • Mage_Payment_Model_Billing_AgreementAbstract
  • Mage_Payment_Model_Config
  • Mage_Payment_Model_Info
  • Mage_Payment_Model_Method_Abstract
  • Mage_Payment_Model_Method_Banktransfer
  • Mage_Payment_Model_Method_Cashondelivery
  • Mage_Payment_Model_Method_Cc
  • Mage_Payment_Model_Method_Ccsave
  • Mage_Payment_Model_Method_Checkmo
  • Mage_Payment_Model_Method_Free
  • Mage_Payment_Model_Method_Purchaseorder
  • Mage_Payment_Model_Observer
  • Mage_Payment_Model_Paygate_Result
  • Mage_Payment_Model_Recurring_Profile
  • Mage_Payment_Model_Source_Cctype
  • Mage_Payment_Model_Source_Invoice

Interfaces

  • Mage_Payment_Model_Billing_Agreement_MethodInterface
  • Mage_Payment_Model_Recurring_Profile_MethodInterface

Exceptions

  • Mage_Payment_Exception
  • Mage_Payment_Model_Info_Exception
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Payment_Model_Method_Cc

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@magentocommerce.com so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Varien_Object
Extended by Mage_Payment_Model_Method_Abstract
Extended by Mage_Payment_Model_Method_Cc

Direct known subclasses

Mage_Paygate_Model_Authorizenet, Mage_Payment_Model_Method_Ccsave, Mage_Paypal_Model_Direct, Mage_Paypal_Model_Payflowpro

Indirect known subclasses

Mage_Authorizenet_Model_Directpost, Mage_Paypal_Model_Hostedpro, Mage_Paypal_Model_Payflowadvanced, Mage_Paypal_Model_Payflowlink, Mage_PaypalUk_Model_Direct
Package: Mage\Payment
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Payment/Model/Method/Cc.php
Methods summary
public Mage_Payment_Model_Info
# assignData( mixed $data )

Assign data to info model instance

Assign data to info model instance

Parameters

$data
mixed
$data

Returns

Mage_Payment_Model_Info

Overrides

Mage_Payment_Model_Method_Abstract::assignData()
public Mage_Payment_Model_Abstract
# prepareSave( )

Prepare info instance for save

Prepare info instance for save

Returns

Mage_Payment_Model_Abstract

Overrides

Mage_Payment_Model_Method_Abstract::prepareSave()
public Mage_Payment_Model_Abstract
# validate( )

Validate payment method information object

Validate payment method information object

Returns

Mage_Payment_Model_Abstract

Overrides

Mage_Payment_Model_Method_Abstract::validate()
public
# hasVerification( )
public
# getVerificationRegEx( )
protected
# _validateExpDate( mixed $expYear, mixed $expMonth )
public
# OtherCcType( mixed $type )
public boolean
# validateCcNum( string $ccNumber )

Validate credit card number

Validate credit card number

Parameters

$ccNumber
string
$cc_number

Returns

boolean
public boolean
# validateCcNumOther( string $ccNumber )

Other credit cart type number validation

Other credit cart type number validation

Parameters

$ccNumber
string
$ccNumber

Returns

boolean
public boolean
# isAvailable( Mage_Sales_Model_Quote|null $quote = null )

Check whether there are CC types set in configuration

Check whether there are CC types set in configuration

Parameters

$quote
Mage_Sales_Model_Quote|null
$quote

Returns

boolean

Overrides

Mage_Payment_Model_Method_Abstract::isAvailable()
public boolean
# getIsCentinelValidationEnabled( )

Whether centinel service is enabled

Whether centinel service is enabled

Returns

boolean
public Mage_Centinel_Model_Service
# getCentinelValidator( )

Instantiate centinel validator model

Instantiate centinel validator model

Returns

Mage_Centinel_Model_Service
public Varien_Object
# getCentinelValidationData( )

Return data for Centinel validation

Return data for Centinel validation

Returns

Varien_Object
private string
# _getOrderId( )

Order increment ID getter (either real from order or a reserved from quote)

Order increment ID getter (either real from order or a reserved from quote)

Returns

string
private string
# _getAmount( )

Grand total getter

Grand total getter

Returns

string
private string
# _getCurrencyCode( )

Currency code getter

Currency code getter

Returns

string
private boolean
# _isPlaceOrder( )

Whether current operation is order placement

Whether current operation is order placement

Returns

boolean
Methods inherited from Mage_Payment_Model_Method_Abstract
__construct(), _debug(), _getHelper(), acceptPayment(), authorize(), canAuthorize(), canCapture(), canCapturePartial(), canCreateBillingAgreement(), canEdit(), canFetchTransactionInfo(), canManageBillingAgreements(), canManageRecurringProfiles(), canOrder(), canRefund(), canRefundPartialPerInvoice(), canReviewPayment(), canUseCheckout(), canUseForCountry(), canUseForCurrency(), canUseForMultishipping(), canUseInternal(), canVoid(), cancel(), capture(), debugData(), denyPayment(), fetchTransactionInfo(), getCode(), getConfigData(), getConfigPaymentAction(), getDebugFlag(), getFormBlockType(), getInfoBlockType(), getInfoInstance(), getTitle(), initialize(), isGateway(), isInitializeNeeded(), order(), processBeforeRefund(), processCreditmemo(), processInvoice(), refund(), void()
Constants inherited from Mage_Payment_Model_Method_Abstract
ACTION_AUTHORIZE, ACTION_AUTHORIZE_CAPTURE, ACTION_ORDER, STATUS_APPROVED, STATUS_DECLINED, STATUS_ERROR, STATUS_SUCCESS, STATUS_UNKNOWN, STATUS_VOID
Properties summary
protected string $_formBlockType 'payment/form_cc'
#
protected string $_infoBlockType 'payment/info_cc'
#
protected boolean $_canSaveCc false
#
Properties inherited from Mage_Payment_Model_Method_Abstract
$_canAuthorize, $_canCancelInvoice, $_canCapture, $_canCapturePartial, $_canCreateBillingAgreement, $_canFetchTransactionInfo, $_canManageRecurringProfiles, $_canOrder, $_canRefund, $_canRefundInvoicePartial, $_canReviewPayment, $_canUseCheckout, $_canUseForMultishipping, $_canUseInternal, $_canVoid, $_code, $_debugReplacePrivateDataKeys, $_isGateway, $_isInitializeNeeded
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0