
Public Member Functions | |
| getCheckoutUrl () | |
| getImageUrl () | |
| _toHtml () | |
| getCbaOneClickJsUrl () | |
| getCbaStylesheetUrl () | |
| getCbaJquerySetupUrl () | |
| getIsOneClickEnabled () | |
Definition at line 34 of file Shortcut.php.
| _toHtml | ( | ) |
Render block HTML
Reimplemented from Mage_Core_Block_Template.
Definition at line 48 of file Shortcut.php.
00049 { 00050 if (Mage::getStoreConfigFlag('payment/amazonpayments_cba/active') 00051 && Mage::getSingleton('checkout/session')->getQuote()->validateMinimumAmount()) { 00052 return parent::_toHtml(); 00053 } 00054 00055 return ''; 00056 }
| getCbaJquerySetupUrl | ( | ) |
Definition at line 74 of file Shortcut.php.
00075 { 00076 $url = 'https://images-na.ssl-images-amazon.com/images/G/01/cba/js/jquery.js'; 00077 return $url; 00078 }
| getCbaOneClickJsUrl | ( | ) |
Definition at line 58 of file Shortcut.php.
00059 { 00060 if (Mage::getStoreConfigFlag('payment/amazonpayments_cba/sandbox_flag')) { 00061 $url = 'https://images-na.ssl-images-amazon.com/images/G/01/cba/js/widget/sandbox/widget.js'; 00062 } else { 00063 $url = 'https://images-na.ssl-images-amazon.com/images/G/01/cba/js/widget/widget.js'; 00064 } 00065 return $url; 00066 }
| getCbaStylesheetUrl | ( | ) |
Definition at line 68 of file Shortcut.php.
00069 { 00070 $url = 'https://images-na.ssl-images-amazon.com/images/G/01/cba/styles/one-click.css'; 00071 return $url; 00072 }
| getCheckoutUrl | ( | ) |
Definition at line 36 of file Shortcut.php.
00037 { 00038 #return $this->getUrl('amazonpayments/cba', array('_secure'=>true)); 00039 return $this->getUrl('amazonpayments/cba/shortcut'); 00040 }
| getImageUrl | ( | ) |
Definition at line 42 of file Shortcut.php.
00043 { 00044 return Mage::getStoreConfig('payment/amazonpayments_cba/button_url'); 00045 #return 'http://g-ecx.images-amazon.com/images/G/01/cba/images/buttons/btn_Chkout-orange-large.gif'; 00046 }
| getIsOneClickEnabled | ( | ) |
Return true if 1-Click is enabled
Definition at line 85 of file Shortcut.php.
00086 { 00087 return Mage::getStoreConfigFlag('payment/amazonpayments_cba/use_oneclick'); 00088 }
1.5.8