diff --git a/build/affirm_tar_to_connect_config.php b/build/affirm_tar_to_connect_config.php index 724c571..5319545 100644 --- a/build/affirm_tar_to_connect_config.php +++ b/build/affirm_tar_to_connect_config.php @@ -4,8 +4,8 @@ 'archive_files' => 'Affirm_Magento.tar', 'extension_name' => 'Affirm_Magento', 'skip_version_compare' => true, -'extension_version' => '2.0.4', -'archive_connect' => 'Affirm_Magento-2.0.4.tgz', +'extension_version' => '2.0.5', +'archive_connect' => 'Affirm_Magento-2.0.5.tgz', 'path_output' => realpath('../var/'), 'stability' => 'stable', diff --git a/extension/app/code/community/Affirm/Affirm/Block/Payment/Form.php b/extension/app/code/community/Affirm/Affirm/Block/Payment/Form.php index 3373957..707d989 100644 --- a/extension/app/code/community/Affirm/Affirm/Block/Payment/Form.php +++ b/extension/app/code/community/Affirm/Affirm/Block/Payment/Form.php @@ -57,7 +57,7 @@ private function replaceLabel() // TODO(brian): conditionally display based on payment type // alt message: $html.= "Buy Now and Pay Later"; - $html.= "Split into 3 Easy Payments"; + $html.= "Buy Now with 3 Easy Payments"; $this->setMethodLabelAfterHtml($html); } diff --git a/extension/app/code/community/Affirm/Affirm/Block/Payment/Info.php b/extension/app/code/community/Affirm/Affirm/Block/Payment/Info.php index 54c500e..ee59032 100644 --- a/extension/app/code/community/Affirm/Affirm/Block/Payment/Info.php +++ b/extension/app/code/community/Affirm/Affirm/Block/Payment/Info.php @@ -4,7 +4,7 @@ class Affirm_Affirm_Block_Payment_Info extends Mage_Payment_Block_Info protected function _toHtml() { - $html = 'Affirm Split Pay'; + $html = 'Affirm'; return $html; } diff --git a/extension/app/code/community/Affirm/Affirm/Model/Payment.php b/extension/app/code/community/Affirm/Affirm/Model/Payment.php index 161072a..1f57827 100644 --- a/extension/app/code/community/Affirm/Affirm/Model/Payment.php +++ b/extension/app/code/community/Affirm/Affirm/Model/Payment.php @@ -276,12 +276,12 @@ public function processConfirmOrder($order, $checkout_token) //authorize the total amount. Affirm_Affirm_Model_Payment::authorizePaymentForOrder($payment, $order); - $payment->setAmountAuthorized(static::_affirmTotal($order)); + $payment->setAmountAuthorized(Affirm_Affirm_Model_Payment::_affirmTotal($order)); $order->save(); //can capture as well.. if ($action == self::ACTION_AUTHORIZE_CAPTURE) { - $payment->setAmountAuthorized(static::_affirmTotal($order)); + $payment->setAmountAuthorized(Affirm_Affirm_Model_Payment::_affirmTotal($order)); // TODO(brian): It is unclear why this statement is here. If you // know why, please replace this message with documentation to @@ -405,8 +405,8 @@ public function getCheckoutObject($order) $checkout['financial_product_key'] = $this->getConfigData('financial_product_key'); // TODO(brian): make this safer and less error-prone. - $checkout['total'] = Affirm_Util::formatCents(static::_affirmTotal($order)); - $checkout['meta'] = static::_getMetadata(); + $checkout['total'] = Affirm_Util::formatCents(Affirm_Affirm_Model_Payment::_affirmTotal($order)); + $checkout['meta'] = Affirm_Affirm_Model_Payment::_getMetadata(); return $checkout; } @@ -461,9 +461,9 @@ private static function authorizePaymentForOrder($payment, $order) "0.9.56" ); if (in_array($moduleVersion, $incompatibleVersions)) { - Affirm_Affirm_Model_Payment::callPrivateMethod($payment, "_authorize", true, static::_affirmTotal($order)); + Affirm_Affirm_Model_Payment::callPrivateMethod($payment, "_authorize", true, Affirm_Affirm_Model_Payment::_affirmTotal($order)); } else { - $payment->authorize(true, static::_affirmTotal($order)); + $payment->authorize(true, Affirm_Affirm_Model_Payment::_affirmTotal($order)); } } diff --git a/extension/app/code/community/Affirm/Affirm/etc/config.xml b/extension/app/code/community/Affirm/Affirm/etc/config.xml index c6a5b8c..07ab500 100644 --- a/extension/app/code/community/Affirm/Affirm/etc/config.xml +++ b/extension/app/code/community/Affirm/Affirm/etc/config.xml @@ -2,7 +2,7 @@ - 2.0.4 + 2.0.5 @@ -61,7 +61,7 @@ affirm/payment - Affirm: Split into 3 Easy Payments + Affirm: Buy Now with 3 Easy Payments authorize https://sandbox.affirm.com diff --git a/extension/app/code/community/Affirm/AffirmPromo/etc/config.xml b/extension/app/code/community/Affirm/AffirmPromo/etc/config.xml index 7b20db5..ca42d57 100644 --- a/extension/app/code/community/Affirm/AffirmPromo/etc/config.xml +++ b/extension/app/code/community/Affirm/AffirmPromo/etc/config.xml @@ -2,7 +2,7 @@ - 2.0.4 + 2.0.5 diff --git a/extension/lib/Affirm/Affirm/Util.php b/extension/lib/Affirm/Affirm/Util.php index 4db3534..d4df022 100644 --- a/extension/lib/Affirm/Affirm/Util.php +++ b/extension/lib/Affirm/Affirm/Util.php @@ -7,13 +7,13 @@ class Affirm_Util { const MONEY_FORMAT = "%.2f"; public static function formatMoney($amount) { - return sprintf(static::MONEY_FORMAT, $amount); + return sprintf(Affirm_Util::MONEY_FORMAT, $amount); } public static function formatCents($amount = 0) { $negative = false; - $str = static::formatMoney($amount); + $str = Affirm_Util::formatMoney($amount); if (strcmp($str[0], "-") === 0) { // treat it like a positive. then prepend a '-' to the return value.