├── app
├── code
│ └── community
│ │ └── Sandfox
│ │ └── RemovePaypalExpressReviewStep
│ │ ├── Model
│ │ ├── Config.php
│ │ └── Observer.php
│ │ └── etc
│ │ └── config.xml
└── etc
│ └── modules
│ └── Sandfox_RemovePaypalExpressReviewStep.xml
├── composer.json
└── modman
/app/code/community/Sandfox/RemovePaypalExpressReviewStep/Model/Config.php:
--------------------------------------------------------------------------------
1 | getPaypalUrl(array(
8 | 'cmd' => '_express-checkout',
9 | 'useraction' => 'commit',
10 | 'token' => $token
11 | ));
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/app/code/community/Sandfox/RemovePaypalExpressReviewStep/Model/Observer.php:
--------------------------------------------------------------------------------
1 | getResponse()->setRedirect(Mage::getUrl('*/*/placeOrder'));
8 | }
9 |
10 | public function controllerActionPredispatchPaypalExpressPlaceOrder(Varien_Event_Observer $observer)
11 | {
12 | $requiredAgreements = Mage::helper('checkout')->getRequiredAgreementIds();
13 | $postedAgreements = array_fill_keys($requiredAgreements, 1);
14 | Mage::app()->getRequest()->setPost('agreement', $postedAgreements);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/app/code/community/Sandfox/RemovePaypalExpressReviewStep/etc/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 0.1.0
6 |
7 |
8 |
9 |
10 |
11 | Sandfox_RemovePaypalExpressReviewStep_Model
12 |
13 |
14 |
15 | Sandfox_RemovePaypalExpressReviewStep_Model_Config
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | singleton
24 | sandfox_removepaypalexpressreviewstep/observer
25 | controllerActionPredispatchPaypalExpressReview
26 |
27 |
28 |
29 |
30 |
31 |
32 | singleton
33 | sandfox_removepaypalexpressreviewstep/observer
34 | controllerActionPredispatchPaypalExpressPlaceOrder
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/app/etc/modules/Sandfox_RemovePaypalExpressReviewStep.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | true
6 | community
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name":"tim-bezhashvyly/removepaypalexpressreviewstep",
3 | "type":"magento-module",
4 | "license":"OSL-3.0",
5 | "homepage":"https://github.com/magento-hackathon/Sandfox_RemovePaypalExpressReviewStep",
6 | "description":"Removes the Paypal Express Review Step from Checkout",
7 | "authors":[
8 | {
9 | "name":"Tim Bezhashvyly",
10 | "email":"tim.bezhashvyly@gmail.com"
11 | }
12 | ],
13 | "require":{
14 | "magento-hackathon/magento-composer-installer":"*"
15 | }
16 | }
--------------------------------------------------------------------------------
/modman:
--------------------------------------------------------------------------------
1 | app/etc/modules/Sandfox_RemovePaypalExpressReviewStep.xml app/etc/modules/Sandfox_RemovePaypalExpressReviewStep.xml
2 | app/code/community/Sandfox/RemovePaypalExpressReviewStep app/code/community/Sandfox/RemovePaypalExpressReviewStep
3 |
--------------------------------------------------------------------------------