Version Notes
* Support for braintree gateway
* Added decline email functionality
Download this release
Release Info
Developer | Riskified_Mage |
Extension | riskified_magento |
Version | 1.0.10.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.9.5 to 1.0.10.0
- app/code/community/Riskified/Full/.DS_Store +0 -0
- app/code/community/Riskified/Full/Helper/.DS_Store +0 -0
- app/code/community/Riskified/Full/Helper/Data.php +98 -14
- app/code/community/Riskified/Full/Helper/Order/Invoice.php +2 -2
- app/code/community/Riskified/Full/Helper/Order/Payment.php +1 -0
- app/code/community/Riskified/Full/Model/Observer.php +6 -3
- app/code/community/Riskified/Full/Model/Observer/Order/Decline.php +131 -0
- app/code/community/Riskified/Full/controllers/.DS_Store +0 -0
- app/code/community/Riskified/Full/etc/config.xml +24 -1
- app/code/community/Riskified/Full/etc/system.xml +105 -28
- lib/riskified_scripts/.DS_Store +0 -0
- package.xml +6 -6
app/code/community/Riskified/Full/.DS_Store
DELETED
Binary file
|
app/code/community/Riskified/Full/Helper/.DS_Store
DELETED
Binary file
|
app/code/community/Riskified/Full/Helper/Data.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
require_once(Mage::getBaseDir('lib') . DIRECTORY_SEPARATOR . 'riskified_php_sdk' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Riskified' . DIRECTORY_SEPARATOR . 'autoloader.php');
|
4 |
|
5 |
class Riskified_Full_Helper_Data extends Mage_Core_Helper_Abstract
|
@@ -16,39 +15,55 @@ class Riskified_Full_Helper_Data extends Mage_Core_Helper_Abstract
|
|
16 |
}
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
public function getAuthToken()
|
20 |
{
|
21 |
-
return Mage::getStoreConfig('fullsection/full/key',
|
22 |
}
|
23 |
|
24 |
public function getConfigStatusControlActive()
|
25 |
{
|
26 |
-
return Mage::getStoreConfig('fullsection/full/order_status_sync');
|
27 |
}
|
28 |
|
29 |
public function getConfigEnv()
|
30 |
{
|
31 |
-
return 'Riskified\Common\Env::' . Mage::getStoreConfig('fullsection/full/env');
|
32 |
}
|
33 |
|
34 |
public function getConfigEnableAutoInvoice()
|
35 |
{
|
36 |
-
return Mage::getStoreConfig('fullsection/full/auto_invoice_enabled');
|
37 |
}
|
38 |
|
39 |
public function getConfigAutoInvoiceCaptureCase()
|
40 |
{
|
41 |
-
return Mage::getStoreConfig('fullsection/full/auto_invoice_capture_case');
|
42 |
}
|
43 |
|
44 |
public function getConfigBeaconUrl()
|
45 |
{
|
46 |
-
return Mage::getStoreConfig('fullsection/full/beaconurl');
|
47 |
}
|
48 |
|
49 |
public function getShopDomain()
|
50 |
{
|
51 |
-
return Mage::getStoreConfig('fullsection/full/domain');
|
52 |
}
|
53 |
|
54 |
public function getExtensionVersion()
|
@@ -58,32 +73,32 @@ class Riskified_Full_Helper_Data extends Mage_Core_Helper_Abstract
|
|
58 |
|
59 |
public function getDeclinedState()
|
60 |
{
|
61 |
-
return Mage::getStoreConfig('fullsection/full/declined_state');
|
62 |
}
|
63 |
|
64 |
public function getDeclinedStatus()
|
65 |
{
|
66 |
$state = $this->getDeclinedState();
|
67 |
-
return Mage::getStoreConfig('fullsection/full/declined_status_' . $state);
|
68 |
}
|
69 |
|
70 |
public function getApprovedState()
|
71 |
{
|
72 |
-
return Mage::getStoreConfig('fullsection/full/approved_state');
|
73 |
}
|
74 |
|
75 |
public function getApprovedStatus()
|
76 |
{
|
77 |
$state = $this->getApprovedState();
|
78 |
-
return Mage::getStoreConfig('fullsection/full/approved_status_' . $state);
|
79 |
}
|
80 |
|
81 |
public function isDebugLogsEnabled()
|
82 |
{
|
83 |
-
return (bool)Mage::getStoreConfig('fullsection/full/debug_logs');
|
84 |
}
|
85 |
|
86 |
-
public function getSessionId(){
|
87 |
//return Mage::getSingleton("core/session")->getEncryptedSessionId();
|
88 |
//return Mage::getModel('core/cookie')->get('rCookie');
|
89 |
return Mage::getSingleton("core/session")->getSessionId();
|
@@ -136,4 +151,73 @@ class Riskified_Full_Helper_Data extends Mage_Core_Helper_Abstract
|
|
136 |
|
137 |
return $dateTime->format($dateTime::ATOM);
|
138 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
}
|
1 |
<?php
|
|
|
2 |
require_once(Mage::getBaseDir('lib') . DIRECTORY_SEPARATOR . 'riskified_php_sdk' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Riskified' . DIRECTORY_SEPARATOR . 'autoloader.php');
|
3 |
|
4 |
class Riskified_Full_Helper_Data extends Mage_Core_Helper_Abstract
|
15 |
}
|
16 |
}
|
17 |
|
18 |
+
/**
|
19 |
+
* Retrieve store id based on order provided in the registry.
|
20 |
+
* If order is missing they store id is fetched from magento app
|
21 |
+
*
|
22 |
+
* @return int
|
23 |
+
*/
|
24 |
+
protected function getStoreId()
|
25 |
+
{
|
26 |
+
if (Mage::registry("riskified-order")) {
|
27 |
+
$order = Mage::registry("riskified-order");
|
28 |
+
return $order->getStoreId();
|
29 |
+
}
|
30 |
+
|
31 |
+
return Mage::app()->getStore()->getId();
|
32 |
+
}
|
33 |
+
|
34 |
public function getAuthToken()
|
35 |
{
|
36 |
+
return Mage::getStoreConfig('fullsection/full/key', $this->getStoreId());
|
37 |
}
|
38 |
|
39 |
public function getConfigStatusControlActive()
|
40 |
{
|
41 |
+
return Mage::getStoreConfig('fullsection/full/order_status_sync', $this->getStoreId());
|
42 |
}
|
43 |
|
44 |
public function getConfigEnv()
|
45 |
{
|
46 |
+
return 'Riskified\Common\Env::' . Mage::getStoreConfig('fullsection/full/env', $this->getStoreId());
|
47 |
}
|
48 |
|
49 |
public function getConfigEnableAutoInvoice()
|
50 |
{
|
51 |
+
return Mage::getStoreConfig('fullsection/full/auto_invoice_enabled', $this->getStoreId());
|
52 |
}
|
53 |
|
54 |
public function getConfigAutoInvoiceCaptureCase()
|
55 |
{
|
56 |
+
return Mage::getStoreConfig('fullsection/full/auto_invoice_capture_case', $this->getStoreId());
|
57 |
}
|
58 |
|
59 |
public function getConfigBeaconUrl()
|
60 |
{
|
61 |
+
return Mage::getStoreConfig('fullsection/full/beaconurl', $this->getStoreId());
|
62 |
}
|
63 |
|
64 |
public function getShopDomain()
|
65 |
{
|
66 |
+
return Mage::getStoreConfig('fullsection/full/domain', $this->getStoreId());
|
67 |
}
|
68 |
|
69 |
public function getExtensionVersion()
|
73 |
|
74 |
public function getDeclinedState()
|
75 |
{
|
76 |
+
return Mage::getStoreConfig('fullsection/full/declined_state', $this->getStoreId());
|
77 |
}
|
78 |
|
79 |
public function getDeclinedStatus()
|
80 |
{
|
81 |
$state = $this->getDeclinedState();
|
82 |
+
return Mage::getStoreConfig('fullsection/full/declined_status_' . $state, $this->getStoreId());
|
83 |
}
|
84 |
|
85 |
public function getApprovedState()
|
86 |
{
|
87 |
+
return Mage::getStoreConfig('fullsection/full/approved_state', $this->getStoreId());
|
88 |
}
|
89 |
|
90 |
public function getApprovedStatus()
|
91 |
{
|
92 |
$state = $this->getApprovedState();
|
93 |
+
return Mage::getStoreConfig('fullsection/full/approved_status_' . $state, $this->getStoreId());
|
94 |
}
|
95 |
|
96 |
public function isDebugLogsEnabled()
|
97 |
{
|
98 |
+
return (bool)Mage::getStoreConfig('fullsection/full/debug_logs', $this->getStoreId());
|
99 |
}
|
100 |
|
101 |
+
public function getSessionId() {
|
102 |
//return Mage::getSingleton("core/session")->getEncryptedSessionId();
|
103 |
//return Mage::getModel('core/cookie')->get('rCookie');
|
104 |
return Mage::getSingleton("core/session")->getSessionId();
|
151 |
|
152 |
return $dateTime->format($dateTime::ATOM);
|
153 |
}
|
154 |
+
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Retrieve configuration of decline notification
|
158 |
+
*
|
159 |
+
* @return bool
|
160 |
+
*/
|
161 |
+
public function isDeclineNotificationEnabled()
|
162 |
+
{
|
163 |
+
return Mage::getStoreConfig('fullsection/decline_notification/enable', $this->getStoreId());
|
164 |
+
}
|
165 |
+
|
166 |
+
/**
|
167 |
+
* Retrieve declination email sender configuration
|
168 |
+
*
|
169 |
+
* @return string
|
170 |
+
*/
|
171 |
+
public function getDeclineNotificationSender()
|
172 |
+
{
|
173 |
+
return Mage::getStoreConfig('fullsection/decline_notification/email_identity', $this->getStoreId());
|
174 |
+
|
175 |
+
}
|
176 |
+
|
177 |
+
/**
|
178 |
+
* Retrieve declination email subject set in admin panel
|
179 |
+
*
|
180 |
+
* @return string
|
181 |
+
*/
|
182 |
+
public function getDeclineNotificationSubject()
|
183 |
+
{
|
184 |
+
return Mage::getStoreConfig('fullsection/decline_notification/title', $this->getStoreId());
|
185 |
+
}
|
186 |
+
|
187 |
+
/**
|
188 |
+
* Retrieve declination email content set in admin panel
|
189 |
+
*
|
190 |
+
* @return string
|
191 |
+
*/
|
192 |
+
public function getDeclineNotificationContent()
|
193 |
+
{
|
194 |
+
return Mage::getStoreConfig('fullsection/decline_notification/content', $this->getStoreId());
|
195 |
+
}
|
196 |
+
|
197 |
+
/**
|
198 |
+
* Retrieve declination email sender email based on configuration in admin panel
|
199 |
+
*
|
200 |
+
* @return string
|
201 |
+
*/
|
202 |
+
public function getDeclineNotificationSenderEmail()
|
203 |
+
{
|
204 |
+
|
205 |
+
return Mage::getStoreConfig(
|
206 |
+
'trans_email/ident_' . $this->getDeclineNotificationSender() . '/email',
|
207 |
+
$this->getStoreId()
|
208 |
+
);
|
209 |
+
}
|
210 |
+
|
211 |
+
/**
|
212 |
+
* Retrieve declination email sender name based on configuration in admin panel
|
213 |
+
*
|
214 |
+
* @return string
|
215 |
+
*/
|
216 |
+
public function getDeclineNotificationSenderName()
|
217 |
+
{
|
218 |
+
return Mage::getStoreConfig(
|
219 |
+
'trans_email/ident_' . $this->getDeclineNotificationSender() . '/name',
|
220 |
+
$this->getStoreId()
|
221 |
+
);
|
222 |
+
}
|
223 |
}
|
app/code/community/Riskified/Full/Helper/Order/Invoice.php
CHANGED
@@ -10,7 +10,7 @@ class Riskified_Full_Helper_Order_Invoice extends Mage_Core_Helper_Abstract
|
|
10 |
*/
|
11 |
public function isAutoInvoiceEnabled()
|
12 |
{
|
13 |
-
return (bool)Mage::getStoreConfig('fullsection/full/auto_invoice_enabled');
|
14 |
}
|
15 |
|
16 |
/**
|
@@ -20,7 +20,7 @@ class Riskified_Full_Helper_Order_Invoice extends Mage_Core_Helper_Abstract
|
|
20 |
*/
|
21 |
public function getCaptureCase()
|
22 |
{
|
23 |
-
$case = Mage::getStoreConfig('fullsection/full/auto_invoice_capture_case');
|
24 |
|
25 |
if (!in_array($case, array(Mage_Sales_Model_Order_Invoice::CAPTURE_ONLINE, Mage_Sales_Model_Order_Invoice::CAPTURE_OFFLINE))) {
|
26 |
$case = Mage_Sales_Model_Order_Invoice::CAPTURE_ONLINE;
|
10 |
*/
|
11 |
public function isAutoInvoiceEnabled()
|
12 |
{
|
13 |
+
return (bool)Mage::getStoreConfig('fullsection/full/auto_invoice_enabled', Mage::app()->getStore());
|
14 |
}
|
15 |
|
16 |
/**
|
20 |
*/
|
21 |
public function getCaptureCase()
|
22 |
{
|
23 |
+
$case = Mage::getStoreConfig('fullsection/full/auto_invoice_capture_case', Mage::app()->getStore());
|
24 |
|
25 |
if (!in_array($case, array(Mage_Sales_Model_Order_Invoice::CAPTURE_ONLINE, Mage_Sales_Model_Order_Invoice::CAPTURE_OFFLINE))) {
|
26 |
$case = Mage_Sales_Model_Order_Invoice::CAPTURE_ONLINE;
|
app/code/community/Riskified/Full/Helper/Order/Payment.php
CHANGED
@@ -159,6 +159,7 @@ class Riskified_Full_Helper_Order_Payment extends Mage_Core_Helper_Abstract
|
|
159 |
);
|
160 |
break;
|
161 |
|
|
|
162 |
case 'braintree':
|
163 |
case 'braintreevzero':
|
164 |
$cvvResultCode = $payment
|
159 |
);
|
160 |
break;
|
161 |
|
162 |
+
case 'gene_braintree_creditcard':
|
163 |
case 'braintree':
|
164 |
case 'braintreevzero':
|
165 |
$cvvResultCode = $payment
|
app/code/community/Riskified/Full/Model/Observer.php
CHANGED
@@ -25,13 +25,12 @@ class Riskified_Full_Model_Observer
|
|
25 |
{
|
26 |
Mage::helper('full/log')->log("saveRiskifiedConfig");
|
27 |
$helper = Mage::helper('full');
|
28 |
-
$settings = Mage::getStoreConfig('fullsection/full');
|
29 |
$riskifiedShopDomain = $helper->getShopDomain();
|
30 |
$authToken = $helper->getAuthToken();
|
31 |
$all_active_methods = Mage::getModel('payment/config')->getActiveMethods();
|
32 |
$gateWays = '';
|
33 |
-
foreach ($all_active_methods as $key => $value)
|
34 |
-
{
|
35 |
$gateWays .= $key . ",";
|
36 |
}
|
37 |
$extensionVersion = Mage::helper('full')->getExtensionVersion();
|
@@ -130,7 +129,11 @@ class Riskified_Full_Model_Observer
|
|
130 |
$order->riskifiedInSave = true;
|
131 |
|
132 |
try {
|
|
|
|
|
|
|
133 |
Mage::helper('full/order')->postOrder($order, Riskified_Full_Helper_Order::ACTION_UPDATE);
|
|
|
134 |
} catch (Exception $e) {
|
135 |
// There is no need to do anything here. The exception has already been handled and a retry scheduled.
|
136 |
// We catch this exception so that the order is still saved in Magento.
|
25 |
{
|
26 |
Mage::helper('full/log')->log("saveRiskifiedConfig");
|
27 |
$helper = Mage::helper('full');
|
28 |
+
$settings = Mage::getStoreConfig('fullsection/full', $evt->getStore());
|
29 |
$riskifiedShopDomain = $helper->getShopDomain();
|
30 |
$authToken = $helper->getAuthToken();
|
31 |
$all_active_methods = Mage::getModel('payment/config')->getActiveMethods();
|
32 |
$gateWays = '';
|
33 |
+
foreach ($all_active_methods as $key => $value) {
|
|
|
34 |
$gateWays .= $key . ",";
|
35 |
}
|
36 |
$extensionVersion = Mage::helper('full')->getExtensionVersion();
|
129 |
$order->riskifiedInSave = true;
|
130 |
|
131 |
try {
|
132 |
+
if(!Mage::registry("riskified-order")) {
|
133 |
+
Mage::register("riskified-order", $order);
|
134 |
+
}
|
135 |
Mage::helper('full/order')->postOrder($order, Riskified_Full_Helper_Order::ACTION_UPDATE);
|
136 |
+
Mage::unregister("riskified-order");
|
137 |
} catch (Exception $e) {
|
138 |
// There is no need to do anything here. The exception has already been handled and a retry scheduled.
|
139 |
// We catch this exception so that the order is still saved in Magento.
|
app/code/community/Riskified/Full/Model/Observer/Order/Decline.php
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Riskified_Full_Model_Observer_Order_Decline
|
4 |
+
{
|
5 |
+
private $order;
|
6 |
+
public function handleOrderDecline(
|
7 |
+
Varien_Event_Observer $observer
|
8 |
+
) {
|
9 |
+
$order = $observer->getOrder();
|
10 |
+
$this->order = $order;
|
11 |
+
/**
|
12 |
+
* @var Riskified_Full_Helper_Data $dataHelper
|
13 |
+
*/
|
14 |
+
$dataHelper = Mage::helper("full");
|
15 |
+
|
16 |
+
if (!$dataHelper->isDeclineNotificationEnabled()) {
|
17 |
+
return $this;
|
18 |
+
}
|
19 |
+
if (Mage::registry("decline-email-sent")) {
|
20 |
+
return $this;
|
21 |
+
}
|
22 |
+
|
23 |
+
Mage::register("decline-email-sent", true);
|
24 |
+
|
25 |
+
$emailTemplate = Mage::getModel('core/email_template')
|
26 |
+
->loadDefault('riskified_order_declined');
|
27 |
+
|
28 |
+
$emailTemplate->setSenderEmail(
|
29 |
+
$dataHelper->getDeclineNotificationSenderEmail()
|
30 |
+
);
|
31 |
+
|
32 |
+
$emailTemplate->setSenderName(
|
33 |
+
$dataHelper->getDeclineNotificationSenderName()
|
34 |
+
);
|
35 |
+
|
36 |
+
$subject = $dataHelper->getDeclineNotificationSubject();
|
37 |
+
$content = $dataHelper->getDeclineNotificationContent();
|
38 |
+
|
39 |
+
$shortCodes = array(
|
40 |
+
"{{customer_name}}",
|
41 |
+
"{{customer_firstname}}",
|
42 |
+
"{{order_increment_id}}",
|
43 |
+
"{{order_view_url}}",
|
44 |
+
"{{products}}",
|
45 |
+
"{{store_name}}",
|
46 |
+
);
|
47 |
+
$formattedPayload = $this->getFormattedData();
|
48 |
+
|
49 |
+
foreach ($shortCodes as $key => $value) {
|
50 |
+
$subject = str_replace($value, $formattedPayload[$key], $subject);
|
51 |
+
$content = str_replace($value, $formattedPayload[$key], $content);
|
52 |
+
}
|
53 |
+
|
54 |
+
try {
|
55 |
+
if ($content == "") {
|
56 |
+
throw new Exception("Email content is empty");
|
57 |
+
}
|
58 |
+
|
59 |
+
if ($subject == "") {
|
60 |
+
throw new Exception("Email subject is empty");
|
61 |
+
}
|
62 |
+
|
63 |
+
$wasSent = $emailTemplate->send(
|
64 |
+
$order->getCustomerEmail(),
|
65 |
+
$order->getCustomerName(),
|
66 |
+
array(
|
67 |
+
'store' => Mage::app()->getStore(),
|
68 |
+
'subject' => $subject,
|
69 |
+
'order' => $order,
|
70 |
+
'content' => $content
|
71 |
+
)
|
72 |
+
);
|
73 |
+
|
74 |
+
if ($wasSent === true) {
|
75 |
+
$fileLog = $dataHelper->__(
|
76 |
+
"Decline email was sent to customer %s (%s) for order #%s",
|
77 |
+
$order->getCustomerName(),
|
78 |
+
$order->getCustomerEmail(),
|
79 |
+
$order->getIncrementId()
|
80 |
+
);
|
81 |
+
|
82 |
+
$orderComment = $dataHelper->__(
|
83 |
+
"Decline email was sent to customer %s (%s)",
|
84 |
+
$order->getCustomerName(),
|
85 |
+
$order->getCustomerEmail()
|
86 |
+
);
|
87 |
+
} else {
|
88 |
+
$fileLog = $dataHelper->__(
|
89 |
+
"Decline email was not sent to customer %s (%s) for order #%s - server internal error",
|
90 |
+
$order->getCustomerName(),
|
91 |
+
$order->getCustomerEmail(),
|
92 |
+
$order->getIncrementId()
|
93 |
+
);
|
94 |
+
$orderComment = $dataHelper->__(
|
95 |
+
"Decline email was not sent to customer %s (%s) - server internal error",
|
96 |
+
$order->getCustomerName(),
|
97 |
+
$order->getCustomerEmail()
|
98 |
+
);
|
99 |
+
}
|
100 |
+
|
101 |
+
Mage::helper('full/log')->log($fileLog);
|
102 |
+
|
103 |
+
$order
|
104 |
+
->addStatusHistoryComment($orderComment)
|
105 |
+
->setIsCustomerNotified(true);
|
106 |
+
$order->save();
|
107 |
+
} catch (Exception $e) {
|
108 |
+
Mage::logException($e);
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
private function getFormattedData()
|
113 |
+
{
|
114 |
+
$products = array();
|
115 |
+
|
116 |
+
foreach ($this->order->getAllItems() as $item) {
|
117 |
+
$products[] = $item->getName();
|
118 |
+
}
|
119 |
+
|
120 |
+
$data = array(
|
121 |
+
$this->order->getCustomerName(),
|
122 |
+
$this->order->getCustomerFirstname(),
|
123 |
+
$this->order->getIncrementId(),
|
124 |
+
Mage::getUrl('sales/order/view', array('order_id' => $this->order->getId())),
|
125 |
+
join(', ', $products),
|
126 |
+
Mage::app()->getStore()->getFrontendName()
|
127 |
+
);
|
128 |
+
|
129 |
+
return $data;
|
130 |
+
}
|
131 |
+
}
|
app/code/community/Riskified/Full/controllers/.DS_Store
DELETED
Binary file
|
app/code/community/Riskified/Full/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Riskified_Full>
|
5 |
-
<version>1.0.
|
6 |
</Riskified_Full>
|
7 |
</modules>
|
8 |
|
@@ -203,7 +203,25 @@
|
|
203 |
</riskified_full_handle_quote_submit>
|
204 |
</observers>
|
205 |
</sales_model_service_quote_submit_before>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
</events>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
</global>
|
208 |
|
209 |
<frontend>
|
@@ -325,6 +343,11 @@
|
|
325 |
<auto_invoice_capture_case>online</auto_invoice_capture_case>
|
326 |
<debug_logs>0</debug_logs>
|
327 |
</full>
|
|
|
|
|
|
|
|
|
|
|
328 |
</fullsection>
|
329 |
</default>
|
330 |
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Riskified_Full>
|
5 |
+
<version>1.0.10.0</version>
|
6 |
</Riskified_Full>
|
7 |
</modules>
|
8 |
|
203 |
</riskified_full_handle_quote_submit>
|
204 |
</observers>
|
205 |
</sales_model_service_quote_submit_before>
|
206 |
+
<riskified_full_order_update_declined>
|
207 |
+
<observers>
|
208 |
+
<riskified_full_order_update_declined>
|
209 |
+
<type>singleton</type>
|
210 |
+
<class>full/observer_order_decline</class>
|
211 |
+
<method>handleOrderDecline</method>
|
212 |
+
</riskified_full_order_update_declined>
|
213 |
+
</observers>
|
214 |
+
</riskified_full_order_update_declined>
|
215 |
</events>
|
216 |
+
<template>
|
217 |
+
<email>
|
218 |
+
<riskified_order_declined module="full">
|
219 |
+
<label>Notification to customer when order was declined by Riskified</label>
|
220 |
+
<file>full/order/declined.html</file>
|
221 |
+
<type>html</type>
|
222 |
+
</riskified_order_declined>
|
223 |
+
</email>
|
224 |
+
</template>
|
225 |
</global>
|
226 |
|
227 |
<frontend>
|
343 |
<auto_invoice_capture_case>online</auto_invoice_capture_case>
|
344 |
<debug_logs>0</debug_logs>
|
345 |
</full>
|
346 |
+
<decline_notification>
|
347 |
+
<email_identity>general</email_identity>
|
348 |
+
<title>{{store_name}}: Order # {{order_increment_id}} has been declined</title>
|
349 |
+
<content><![CDATA[<p>We regret to inform you that your recent order #{{order_increment_id}} for {{products}}
has been declined.</p>]]></content>
|
350 |
+
</decline_notification>
|
351 |
</fullsection>
|
352 |
</default>
|
353 |
</config>
|
app/code/community/Riskified/Full/etc/system.xml
CHANGED
@@ -21,8 +21,8 @@
|
|
21 |
<label>API settings</label>
|
22 |
<sort_order>10</sort_order>
|
23 |
<show_in_default>1</show_in_default>
|
24 |
-
<show_in_website>
|
25 |
-
<show_in_store>
|
26 |
<fields>
|
27 |
<env translate="label comment">
|
28 |
<label>Riskified environment</label>
|
@@ -30,8 +30,8 @@
|
|
30 |
<source_model>full/system_config_source_env</source_model>
|
31 |
<sort_order>1</sort_order>
|
32 |
<show_in_default>1</show_in_default>
|
33 |
-
<show_in_website>
|
34 |
-
<show_in_store>
|
35 |
<comment><![CDATA[Select Riskified's environment.<br> You can use sandbox for testing.
|
36 |
<br>If you don't have a sandbox account please contact support@riskified.com ]]></comment>
|
37 |
</env>
|
@@ -40,8 +40,8 @@
|
|
40 |
<frontend_type>Text</frontend_type>
|
41 |
<sort_order>2</sort_order>
|
42 |
<show_in_default>1</show_in_default>
|
43 |
-
<show_in_website>
|
44 |
-
<show_in_store>
|
45 |
<comment>
|
46 |
<![CDATA[This is the shop domain used during signup. See <a href="https://www.riskified.com/documentation/magento.html" target="_blank">documentation</a> for more details.]]></comment>
|
47 |
</domain>
|
@@ -50,8 +50,8 @@
|
|
50 |
<frontend_type>Text</frontend_type>
|
51 |
<sort_order>3</sort_order>
|
52 |
<show_in_default>1</show_in_default>
|
53 |
-
<show_in_website>
|
54 |
-
<show_in_store>
|
55 |
<comment>
|
56 |
<![CDATA[ Your <i>secret</i> auth token can be found in your <a href="https://app.riskified.com/main/settings/advanced" target="_blank">Riskified Settings page</a>. ]]></comment>
|
57 |
</key>
|
@@ -69,8 +69,8 @@
|
|
69 |
<frontend_type>select</frontend_type>
|
70 |
<sort_order>10</sort_order>
|
71 |
<show_in_default>1</show_in_default>
|
72 |
-
<show_in_website>
|
73 |
-
<show_in_store>
|
74 |
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
75 |
</order_status_sync>
|
76 |
<approved_state translate="label comment">
|
@@ -78,8 +78,8 @@
|
|
78 |
<frontend_type>select</frontend_type>
|
79 |
<sort_order>11</sort_order>
|
80 |
<show_in_default>1</show_in_default>
|
81 |
-
<show_in_website>
|
82 |
-
<show_in_store>
|
83 |
<comment><![CDATA[The Magento state to move to when an order is approved]]></comment>
|
84 |
<source_model>full/system_config_source_approvedState</source_model>
|
85 |
<depends>
|
@@ -91,8 +91,8 @@
|
|
91 |
<frontend_type>select</frontend_type>
|
92 |
<sort_order>12</sort_order>
|
93 |
<show_in_default>1</show_in_default>
|
94 |
-
<show_in_website>
|
95 |
-
<show_in_store>
|
96 |
<comment><![CDATA[The Magento status to move to when an order is approved]]></comment>
|
97 |
<source_model>full/system_config_source_processingStateStatuses</source_model>
|
98 |
<depends>
|
@@ -105,8 +105,8 @@
|
|
105 |
<frontend_type>select</frontend_type>
|
106 |
<sort_order>12</sort_order>
|
107 |
<show_in_default>1</show_in_default>
|
108 |
-
<show_in_website>
|
109 |
-
<show_in_store>
|
110 |
<comment><![CDATA[The Magento status to move to when an order is approved]]></comment>
|
111 |
<source_model>full/system_config_source_holdedStateStatuses</source_model>
|
112 |
<depends>
|
@@ -119,8 +119,8 @@
|
|
119 |
<frontend_type>select</frontend_type>
|
120 |
<sort_order>13</sort_order>
|
121 |
<show_in_default>1</show_in_default>
|
122 |
-
<show_in_website>
|
123 |
-
<show_in_store>
|
124 |
<comment><![CDATA[The Magento state to move to when an order is declined]]></comment>
|
125 |
<source_model>full/system_config_source_declinedState</source_model>
|
126 |
<depends>
|
@@ -132,8 +132,8 @@
|
|
132 |
<frontend_type>select</frontend_type>
|
133 |
<sort_order>14</sort_order>
|
134 |
<show_in_default>1</show_in_default>
|
135 |
-
<show_in_website>
|
136 |
-
<show_in_store>
|
137 |
<comment><![CDATA[The Magento status to move to when an order is declined]]></comment>
|
138 |
<source_model>full/system_config_source_canceledStateStatuses</source_model>
|
139 |
<depends>
|
@@ -146,8 +146,8 @@
|
|
146 |
<frontend_type>select</frontend_type>
|
147 |
<sort_order>14</sort_order>
|
148 |
<show_in_default>1</show_in_default>
|
149 |
-
<show_in_website>
|
150 |
-
<show_in_store>
|
151 |
<comment><![CDATA[The Magento status to move to when an order is declined]]></comment>
|
152 |
<source_model>full/system_config_source_holdedStateStatuses</source_model>
|
153 |
<depends>
|
@@ -161,8 +161,8 @@
|
|
161 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
162 |
<sort_order>110</sort_order>
|
163 |
<show_in_default>1</show_in_default>
|
164 |
-
<show_in_website>
|
165 |
-
<show_in_store>
|
166 |
<comment>
|
167 |
<![CDATA[Should an invoice automatically be created when Riskified approves this order?]]></comment>
|
168 |
<depends>
|
@@ -175,8 +175,8 @@
|
|
175 |
<source_model>full/system_config_source_captureCase</source_model>
|
176 |
<sort_order>120</sort_order>
|
177 |
<show_in_default>1</show_in_default>
|
178 |
-
<show_in_website>
|
179 |
-
<show_in_store>
|
180 |
<comment><![CDATA[Should this invoice be captured online or offline?]]></comment>
|
181 |
<depends>
|
182 |
<order_status_sync>1</order_status_sync>
|
@@ -188,12 +188,89 @@
|
|
188 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
189 |
<sort_order>130</sort_order>
|
190 |
<show_in_default>1</show_in_default>
|
191 |
-
<show_in_website>
|
192 |
-
<show_in_store>
|
193 |
<comment><![CDATA[Write additional debug logs?]]></comment>
|
194 |
</debug_logs>
|
195 |
</fields>
|
196 |
</full>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
</groups>
|
198 |
</fullsection>
|
199 |
</sections>
|
21 |
<label>API settings</label>
|
22 |
<sort_order>10</sort_order>
|
23 |
<show_in_default>1</show_in_default>
|
24 |
+
<show_in_website>1</show_in_website>
|
25 |
+
<show_in_store>1</show_in_store>
|
26 |
<fields>
|
27 |
<env translate="label comment">
|
28 |
<label>Riskified environment</label>
|
30 |
<source_model>full/system_config_source_env</source_model>
|
31 |
<sort_order>1</sort_order>
|
32 |
<show_in_default>1</show_in_default>
|
33 |
+
<show_in_website>1</show_in_website>
|
34 |
+
<show_in_store>1</show_in_store>
|
35 |
<comment><![CDATA[Select Riskified's environment.<br> You can use sandbox for testing.
|
36 |
<br>If you don't have a sandbox account please contact support@riskified.com ]]></comment>
|
37 |
</env>
|
40 |
<frontend_type>Text</frontend_type>
|
41 |
<sort_order>2</sort_order>
|
42 |
<show_in_default>1</show_in_default>
|
43 |
+
<show_in_website>1</show_in_website>
|
44 |
+
<show_in_store>1</show_in_store>
|
45 |
<comment>
|
46 |
<![CDATA[This is the shop domain used during signup. See <a href="https://www.riskified.com/documentation/magento.html" target="_blank">documentation</a> for more details.]]></comment>
|
47 |
</domain>
|
50 |
<frontend_type>Text</frontend_type>
|
51 |
<sort_order>3</sort_order>
|
52 |
<show_in_default>1</show_in_default>
|
53 |
+
<show_in_website>1</show_in_website>
|
54 |
+
<show_in_store>1</show_in_store>
|
55 |
<comment>
|
56 |
<![CDATA[ Your <i>secret</i> auth token can be found in your <a href="https://app.riskified.com/main/settings/advanced" target="_blank">Riskified Settings page</a>. ]]></comment>
|
57 |
</key>
|
69 |
<frontend_type>select</frontend_type>
|
70 |
<sort_order>10</sort_order>
|
71 |
<show_in_default>1</show_in_default>
|
72 |
+
<show_in_website>1</show_in_website>
|
73 |
+
<show_in_store>1</show_in_store>
|
74 |
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
75 |
</order_status_sync>
|
76 |
<approved_state translate="label comment">
|
78 |
<frontend_type>select</frontend_type>
|
79 |
<sort_order>11</sort_order>
|
80 |
<show_in_default>1</show_in_default>
|
81 |
+
<show_in_website>1</show_in_website>
|
82 |
+
<show_in_store>1</show_in_store>
|
83 |
<comment><![CDATA[The Magento state to move to when an order is approved]]></comment>
|
84 |
<source_model>full/system_config_source_approvedState</source_model>
|
85 |
<depends>
|
91 |
<frontend_type>select</frontend_type>
|
92 |
<sort_order>12</sort_order>
|
93 |
<show_in_default>1</show_in_default>
|
94 |
+
<show_in_website>1</show_in_website>
|
95 |
+
<show_in_store>1</show_in_store>
|
96 |
<comment><![CDATA[The Magento status to move to when an order is approved]]></comment>
|
97 |
<source_model>full/system_config_source_processingStateStatuses</source_model>
|
98 |
<depends>
|
105 |
<frontend_type>select</frontend_type>
|
106 |
<sort_order>12</sort_order>
|
107 |
<show_in_default>1</show_in_default>
|
108 |
+
<show_in_website>1</show_in_website>
|
109 |
+
<show_in_store>1</show_in_store>
|
110 |
<comment><![CDATA[The Magento status to move to when an order is approved]]></comment>
|
111 |
<source_model>full/system_config_source_holdedStateStatuses</source_model>
|
112 |
<depends>
|
119 |
<frontend_type>select</frontend_type>
|
120 |
<sort_order>13</sort_order>
|
121 |
<show_in_default>1</show_in_default>
|
122 |
+
<show_in_website>1</show_in_website>
|
123 |
+
<show_in_store>1</show_in_store>
|
124 |
<comment><![CDATA[The Magento state to move to when an order is declined]]></comment>
|
125 |
<source_model>full/system_config_source_declinedState</source_model>
|
126 |
<depends>
|
132 |
<frontend_type>select</frontend_type>
|
133 |
<sort_order>14</sort_order>
|
134 |
<show_in_default>1</show_in_default>
|
135 |
+
<show_in_website>1</show_in_website>
|
136 |
+
<show_in_store>1</show_in_store>
|
137 |
<comment><![CDATA[The Magento status to move to when an order is declined]]></comment>
|
138 |
<source_model>full/system_config_source_canceledStateStatuses</source_model>
|
139 |
<depends>
|
146 |
<frontend_type>select</frontend_type>
|
147 |
<sort_order>14</sort_order>
|
148 |
<show_in_default>1</show_in_default>
|
149 |
+
<show_in_website>1</show_in_website>
|
150 |
+
<show_in_store>1</show_in_store>
|
151 |
<comment><![CDATA[The Magento status to move to when an order is declined]]></comment>
|
152 |
<source_model>full/system_config_source_holdedStateStatuses</source_model>
|
153 |
<depends>
|
161 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
162 |
<sort_order>110</sort_order>
|
163 |
<show_in_default>1</show_in_default>
|
164 |
+
<show_in_website>1</show_in_website>
|
165 |
+
<show_in_store>1</show_in_store>
|
166 |
<comment>
|
167 |
<![CDATA[Should an invoice automatically be created when Riskified approves this order?]]></comment>
|
168 |
<depends>
|
175 |
<source_model>full/system_config_source_captureCase</source_model>
|
176 |
<sort_order>120</sort_order>
|
177 |
<show_in_default>1</show_in_default>
|
178 |
+
<show_in_website>1</show_in_website>
|
179 |
+
<show_in_store>1</show_in_store>
|
180 |
<comment><![CDATA[Should this invoice be captured online or offline?]]></comment>
|
181 |
<depends>
|
182 |
<order_status_sync>1</order_status_sync>
|
188 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
189 |
<sort_order>130</sort_order>
|
190 |
<show_in_default>1</show_in_default>
|
191 |
+
<show_in_website>1</show_in_website>
|
192 |
+
<show_in_store>1</show_in_store>
|
193 |
<comment><![CDATA[Write additional debug logs?]]></comment>
|
194 |
</debug_logs>
|
195 |
</fields>
|
196 |
</full>
|
197 |
+
<decline_notification translate="label">
|
198 |
+
<label>Decline notification settings</label>
|
199 |
+
<sort_order>20</sort_order>
|
200 |
+
<show_in_default>1</show_in_default>
|
201 |
+
<show_in_website>1</show_in_website>
|
202 |
+
<show_in_store>1</show_in_store>
|
203 |
+
<fields>
|
204 |
+
<enable translate="label comment">
|
205 |
+
<label>Enabled</label>
|
206 |
+
<frontend_type>select</frontend_type>
|
207 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
208 |
+
<sort_order>10</sort_order>
|
209 |
+
<show_in_default>1</show_in_default>
|
210 |
+
<show_in_website>1</show_in_website>
|
211 |
+
<show_in_store>1</show_in_store>
|
212 |
+
<comment>
|
213 |
+
<![CDATA[Customer will be notified when his order was declined by Riskified side.]]>
|
214 |
+
</comment>
|
215 |
+
</enable>
|
216 |
+
<email_identity translate="label">
|
217 |
+
<label>Email sender</label>
|
218 |
+
<frontend_type>select</frontend_type>
|
219 |
+
<source_model>adminhtml/system_config_source_email_identity</source_model>
|
220 |
+
<sort_order>20</sort_order>
|
221 |
+
<show_in_default>1</show_in_default>
|
222 |
+
<show_in_website>1</show_in_website>
|
223 |
+
<show_in_store>1</show_in_store>
|
224 |
+
<depends>
|
225 |
+
<enable>1</enable>
|
226 |
+
</depends>
|
227 |
+
</email_identity>
|
228 |
+
<title translate="label comment">
|
229 |
+
<label>Email title</label>
|
230 |
+
<frontend_type>text</frontend_type>
|
231 |
+
<sort_order>30</sort_order>
|
232 |
+
<show_in_default>1</show_in_default>
|
233 |
+
<show_in_website>1</show_in_website>
|
234 |
+
<show_in_store>1</show_in_store>
|
235 |
+
<depends>
|
236 |
+
<enable>1</enable>
|
237 |
+
</depends>
|
238 |
+
<comment>
|
239 |
+
<![CDATA[
|
240 |
+
Available shortcodes: <br />
|
241 |
+
{{products}} - Product names comma separated <br />
|
242 |
+
{{customer_name}} - Customer full name <br />
|
243 |
+
{{customer_firstname}} - Customer first name <br />
|
244 |
+
{{order_increment_id}} - Order Number <br />
|
245 |
+
{{order_view_url}} - Order url to order detail page in customer dashboard <br />
|
246 |
+
{{store_name}} - Store name <br />
|
247 |
+
]]>
|
248 |
+
</comment>
|
249 |
+
</title>
|
250 |
+
<content translate="label comment">
|
251 |
+
<label>Email content</label>
|
252 |
+
<frontend_type>textarea</frontend_type>
|
253 |
+
<sort_order>40</sort_order>
|
254 |
+
<show_in_default>1</show_in_default>
|
255 |
+
<show_in_website>1</show_in_website>
|
256 |
+
<show_in_store>1</show_in_store>
|
257 |
+
<depends>
|
258 |
+
<enable>1</enable>
|
259 |
+
</depends>
|
260 |
+
<comment>
|
261 |
+
<![CDATA[
|
262 |
+
Available shortcodes: <br />
|
263 |
+
{{products}} - Product names comma separated <br />
|
264 |
+
{{customer_name}} - Customer full name <br />
|
265 |
+
{{customer_firstname}} - Customer first name <br />
|
266 |
+
{{order_increment_id}} - Order Number <br />
|
267 |
+
{{order_view_url}} - Order url to order detail page in customer dashboard <br />
|
268 |
+
{{store_name}} - Store name <br />
|
269 |
+
]]>
|
270 |
+
</comment>
|
271 |
+
</content>
|
272 |
+
</fields>
|
273 |
+
</decline_notification>
|
274 |
</groups>
|
275 |
</fullsection>
|
276 |
</sections>
|
lib/riskified_scripts/.DS_Store
DELETED
Binary file
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>riskified_magento</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -9,12 +9,12 @@
|
|
9 |
<summary>Riskified Magento extension</summary>
|
10 |
<description>Riskified reviews, approves & guarantees
|
11 |
transactions you would otherwise decline.</description>
|
12 |
-
<notes>* Support
|
13 |
-
</notes>
|
14 |
<authors><author><name>Riskified_Mage</name><user>Riskified_Mage</user><email>support@riskified.com</email></author></authors>
|
15 |
-
<date>2017-
|
16 |
-
<time>
|
17 |
-
<contents><target name="magecommunity"><dir name="Riskified"><dir name="Full"><dir><dir name="Block"><file name="Beacon.php" hash="00c6f36ab82a4805b5408cda907bdcfa"/></dir><dir name="Helper"><dir name="Customer"><file name="Order.php" hash="38278dee0939fba4a017e347ac1784ad"/></dir><file name="Data.php" hash="d96b50cf6738f7aa1f47b7d4743cc634"/><file name="Debug.php" hash="b4cd9735bdd601cb624f7495242606e2"/><file name="Log.php" hash="ae614c5071160221b71fb0ed600da67e"/><dir name="Order"><file name="Invoice.php" hash="0117cd5689818c3dc9ab9b59fced6c18"/><file name="Payment.php" hash="8622a489426113a2820f6bce045cd42d"/><file name="Status.php" hash="210a0c440b4070fdcb2ead2c2db4e567"/></dir><file name="Order.php" hash="4cff129f13703224245683d325e9dcdd"/><file name=".DS_Store" hash="e06036c76f2129fd97ad05d90495eac9"/></dir><dir name="Model"><file name="Authorizenet.php" hash="4b910a92820a8d5571a5129e51b54fd3"/><dir name="Container"><file name="Beacon.php" hash="b1c3910031983b9291c98dbe46d61f09"/></dir><file name="Cron.php" hash="123074f2f44bc1f28f55ae864d759e27"/><dir name="Observer"><dir name="Order"><dir name="Creditmemo"><file name="Save.php" hash="e8fbcf35c7cf364393cbe36c2910f5ff"/></dir><dir name="Payment"><file name="Failed.php" hash="8a6cb06999e6681dd9438c2227702733"/></dir><dir name="Shipment"><file name="Save.php" hash="008e277d8391ab3bd4334aea76db427c"/></dir></dir><dir name="Quote"><file name="Submit.php" hash="b3f99a7b3e0541bcbd428d011de1fff2"/></dir></dir><file name="Observer.php" hash="66d354af4213d6463b1421117a5e7973"/><file name="Payflowpro.php" hash="28be978ef493e082d44146b05c3b2e37"/><dir name="Resource"><dir name="Retry"><file name="Collection.php" hash="fd62ad4e4cdd8d372751bfa9988cc3a9"/></dir><file name="Retry.php" hash="3be3db7e54bd8bb45e0faffa1941f515"/><dir name="Sent"><file name="Collection.php" hash="8960157c9c5b16463aac33cf75116bc8"/></dir><file name="Sent.php" hash="744833cbe4ac4bb7ca69395d90229c0c"/></dir><file name="Retry.php" hash="89e7344139affa4fe0b9a252a5d1c592"/><file name="Sent.php" hash="cf2b22314d20f469f40e31ae14477032"/><dir name="System"><dir name="Config"><dir name="Source"><file name="ApprovedState.php" hash="6f4d7f7eb52922e57ff9069ec6031b63"/><file name="CanceledStateStatuses.php" hash="c274fb739314b34104e0b0085f1039c8"/><file name="CaptureCase.php" hash="6f2505f2c51df6a7caa26d5f89995b47"/><file name="DeclinedState.php" hash="d2c80dd15b3843bce5eb4d2a660b080a"/><file name="Env.php" hash="e213a59d9c438e4dc39b226134a85fab"/><file name="HoldedStateStatuses.php" hash="212f2476e5f6bed6d3456133d6e27c40"/><file name="ProcessingStateStatuses.php" hash="19af6046f86df7a5ba28693545493304"/></dir></dir></dir></dir><dir name="Test"><dir name="Config"><file name="General.php" hash="a5d4950c5655960879e7d75c06977941"/></dir><dir name="Helper"><dir name="General"><dir name="fixtures"><file name="extensionConfigEnabled.yaml" hash="eec8c8d8a1d5de49897b19740cf8e074"/></dir></dir><file name="General.php" hash="607c9711656be48084f6688e114b6bf6"/></dir><dir name="Model"><file name="Environments.php" hash="f3fc028d17c82b9b84b709b932e64eae"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="RiskifiedfullController.php" hash="c1927328b0feadc25073ae1e948cfa6b"/></dir><file name="ResponseController.php" hash="05173a743f73c1ed7b7cb9e0a580de3a"/><file name=".DS_Store" hash="0047fe0bc161a58c6088a4e959de43a4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="333f4002a4c677b670cd449147b9d3c8"/><file name="cache.xml" hash="3a7cd749515499cce292330c46ce5028"/><file name="config.xml" hash="debc75801049b584317c85ad3ee44a17"/><file name="system.xml" hash="6d97d40215a389de432c01c5c6d8b5d4"/></dir><dir name="sql"><dir name="riskified_full_setup"><file name="mysql4-install-1.0.1.php" hash="66592f315ddacbb116e70b34094fbbef"/><file name="mysql4-upgrade-1.0.2.0-1.0.2.1.php" hash="5d12b7203027e843f6322b5a48fb3d23"/><file name="mysql4-upgrade-1.0.4-1.0.5.0.php" hash="df9bb6016ebab61444d65a5d92b0a70e"/><file name="mysql4-upgrade-1.0.5.5-1.0.6.0.php" hash="c749f3c2564fdf9310dcd22d493630d8"/><file name="mysql4-upgrade-1.0.8.0-1.0.8.1.php" hash="45ac33ab1e02f06f6850dd9876017f09"/><file name="mysql4-upgrade-1.0.9.0-1.0.9.1.php" hash="3cc6f0423a53bf1b8484b7dfe14fc328"/></dir></dir></dir><file name=".DS_Store" hash="9dde5569103534c45d9698851528d853"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Riskified_Full.xml" hash="d684caecdf710e5d0173ca07e5c5d1c0"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="full.xml" hash="8dbb3dd16fcb5821eb07e9b5d978d55c"/></dir><dir name="template"><dir name="full"><file name="jsinit.phtml" hash="dbf48e2d0d5a89db58cd474028bc2e7d"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="full.xml" hash="96d4fb310618a1e6fb149dc367952812"/></dir><dir name="template"><dir name="full"><file name="beacon.phtml" hash="396625d0c46c9f4dd287cef289a9bef8"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="riskified"><file name="logo.jpg" hash="0ac96bf07aa8b8ecb3ff06c2ccbf0827"/></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="riskified_php_sdk"><file name="README.md" hash="f37118baa641e4ef6d670bb1c0298482"/><file name="composer.json" hash="96ba594b3b4ae47223d03f4fc78dcb16"/><dir><dir name="sample"><file name="README.md" hash="d6e555fdf2501b66b52d056857b3d903"/><file name="callback.php" hash="c6fb5a90b2c527b794fcec803acb36d9"/><file name="order_full_flow.php" hash="f85e1ca28b6f7deae958271d88cbeaed"/><file name="order_marketplace_create.php" hash="ae3d2fb28154a710934d6243302a590d"/><file name="order_simple_submit.php" hash="d8458f7992b486b6dac28558526f068b"/><file name="run_callback_server.sh" hash="8202fd93c15e088d072805d3a2f4c02b"/><file name="update_merchant_settings.php" hash="24499737ab057aba76cd054fd5051aad"/><file name="upload_historical.php" hash="78bdb85c036183de16968a79c8836efd"/></dir><dir name="src"><dir name="Riskified"><dir name="Common"><file name="Env.php" hash="3fc8342a423141fb0c110901deebfe25"/><dir name="Exception"><file name="BaseException.php" hash="ce902d0a3bd9af53b3c1923541602ead"/></dir><file name="Riskified.php" hash="0d1ff23815dbbf8716f2f3d349c1f8f3"/><dir name="Signature"><file name="HttpDataSignature.php" hash="b9f5d57db1903126a72eb38ca55ba878"/></dir><file name="Validations.php" hash="4af37b31901f215b660c868c31594b75"/></dir><dir name="DecisionNotification"><dir name="Exception"><file name="AuthorizationException.php" hash="4cab71ac324efd3b29bdfa6236a8f531"/><file name="BadHeaderException.php" hash="407a0d9e94d52e8b43bed02e34bd4a70"/><file name="BadPostJsonException.php" hash="2e2a7f84fae19fd525f01f6899ea218b"/><file name="NotificationException.php" hash="8f7d1ed8b9523ec66423c6ff2703085f"/></dir><dir name="Model"><file name="Notification.php" hash="9e2f5fd421abe37ab7b742767966f312"/></dir></dir><dir name="OrderWebhook"><dir name="Exception"><file name="ClassMismatchPropertyException.php" hash="8854b7aea6736b290826eb44ac0ba578"/><file name="CurlException.php" hash="27488d2dd0fa2c25b647a5967e3821b1"/><file name="FormatMismatchPropertyException.php" hash="2729989c3ac2a245341fd01a4d004b49"/><file name="InvalidPropertyException.php" hash="97084ff2ff33f5c657c5876a44aa97d2"/><file name="MalformedJsonException.php" hash="8c795b605988f20f1899dcf160f29cf1"/><file name="MissingPropertyException.php" hash="5ad8df6ba645a113fac7b65e08167d2c"/><file name="MultiplePropertiesException.php" hash="aaa042c5a0fcfd15dc2744059b15798b"/><file name="PropertyException.php" hash="7a234406434c5616aab72da27a1ed6ed"/><file name="TypeMismatchPropertyException.php" hash="5eed61220c954a462411f433a2c85bf2"/><file name="UnsuccessfulActionException.php" hash="b02fafbda955fa889ca36c5092ccc68d"/></dir><dir name="Model"><file name="AbstractModel.php" hash="73adfaac9fe9e189827baac5a71e41a4"/><file name="Address.php" hash="743e6e5ad9562d19e6af68334079d3cb"/><file name="Attribute.php" hash="e7fa146d7c9c807494c225e6a41afcfb"/><file name="AuthorizationError.php" hash="b82229eff42d94ceba58d4d6a3a4118b"/><file name="ChargeFreePaymentDetails.php" hash="07ab9a9022cc3152404617b72230e843"/><file name="Checkout.php" hash="ede0e6d2fd8319ada669de35b4c3190f"/><file name="ClientDetails.php" hash="50b329fa6b77bcbeff4b725705b957af"/><file name="Customer.php" hash="7e68c5804c145a93c2e48f4460a63759"/><file name="Decision.php" hash="55bf62bfcfc49ab9e5b823e7ec90d6bd"/><file name="DecisionDetails.php" hash="317121548885d2b8eb75a4d5e383f9f8"/><file name="DiscountCode.php" hash="0861920950828a3ff19904b92b4cb50d"/><file name="Fulfillment.php" hash="9111db9b13ae7b2fbe6bf806a66d78f2"/><file name="FulfillmentDetails.php" hash="d3c11d4e8943862fc4a774f3f8e9d7d7"/><file name="LineItem.php" hash="28af24c031cb3e162c2b4b7a3423980b"/><file name="MerchantSettings.php" hash="62f42b50b7a25b014cbed4ea528998aa"/><file name="Order.php" hash="cdff0611ed8e2b673938a8e1d36d64c5"/><file name="OrderCancellation.php" hash="f6f2d5234bb98b56902e632fbccc07b3"/><file name="PaymentDetails.php" hash="1d0bc8094d3a02ba6fe6b52ee139f47e"/><file name="Refund.php" hash="1c3ad264984585cfcefc909ffa708dc4"/><file name="RefundDetails.php" hash="f9a0e27e26bbfb6699bb0dd44fe6a184"/><file name="Seller.php" hash="2dd5dc2dc22582231263cad803149a16"/><file name="ShippingLine.php" hash="5ac14361474789db570fa6d14b17a973"/><file name="SocialDetails.php" hash="1fbc1939121c9618e612316c1a4500ca"/><file name="TaxLine.php" hash="59f82a19bc9ada690aa79bc96307db5e"/></dir><dir name="Transport"><file name="AbstractTransport.php" hash="6be123376c81f478968ee420ca5b31cb"/><file name="CurlTransport.php" hash="360863ea799e1c2f9860c16bd1ea401a"/></dir></dir><file name="autoloader.php" hash="f3471e90daf6184a096d337bbcd40bd1"/></dir></dir></dir><file name=".gitignore" hash="73f01e1298c44b6cc3e24a70cad8c56c"/></dir><dir name="riskified_scripts"><file name="riskified_historical_upload.php" hash="db28908aa4d29a78b712057fa60924fb"/><file name=".DS_Store" hash="2d4da7900011d5d8888ce53ed3dfcba7"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>4.4.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>riskified_magento</name>
|
4 |
+
<version>1.0.10.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
9 |
<summary>Riskified Magento extension</summary>
|
10 |
<description>Riskified reviews, approves & guarantees
|
11 |
transactions you would otherwise decline.</description>
|
12 |
+
<notes>* Support for braintree gateway
|
13 |
+
* Added decline email functionality</notes>
|
14 |
<authors><author><name>Riskified_Mage</name><user>Riskified_Mage</user><email>support@riskified.com</email></author></authors>
|
15 |
+
<date>2017-09-12</date>
|
16 |
+
<time>18:54:49</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Riskified"><dir name="Full"><dir><dir name="Block"><file name="Beacon.php" hash="00c6f36ab82a4805b5408cda907bdcfa"/></dir><dir name="Helper"><dir name="Customer"><file name="Order.php" hash="38278dee0939fba4a017e347ac1784ad"/></dir><file name="Data.php" hash="f69e9f559cef4ec9455612f68b25ba82"/><file name="Debug.php" hash="b4cd9735bdd601cb624f7495242606e2"/><file name="Log.php" hash="ae614c5071160221b71fb0ed600da67e"/><dir name="Order"><file name="Invoice.php" hash="65d5c17e479bf0cd4a4eda6ef8d00308"/><file name="Payment.php" hash="7e39b7f460b8eb986dd788b4e379826e"/><file name="Status.php" hash="210a0c440b4070fdcb2ead2c2db4e567"/></dir><file name="Order.php" hash="4cff129f13703224245683d325e9dcdd"/></dir><dir name="Model"><file name="Authorizenet.php" hash="4b910a92820a8d5571a5129e51b54fd3"/><dir name="Container"><file name="Beacon.php" hash="b1c3910031983b9291c98dbe46d61f09"/></dir><file name="Cron.php" hash="123074f2f44bc1f28f55ae864d759e27"/><dir name="Observer"><dir name="Order"><dir name="Creditmemo"><file name="Save.php" hash="e8fbcf35c7cf364393cbe36c2910f5ff"/></dir><file name="Decline.php" hash="0e1ec42b4b5c60d9d969e404fa6f70cf"/><dir name="Payment"><file name="Failed.php" hash="8a6cb06999e6681dd9438c2227702733"/></dir><dir name="Shipment"><file name="Save.php" hash="008e277d8391ab3bd4334aea76db427c"/></dir></dir><dir name="Quote"><file name="Submit.php" hash="b3f99a7b3e0541bcbd428d011de1fff2"/></dir></dir><file name="Observer.php" hash="25f47f68a95de5a719abb85713e178c3"/><file name="Payflowpro.php" hash="28be978ef493e082d44146b05c3b2e37"/><dir name="Resource"><dir name="Retry"><file name="Collection.php" hash="fd62ad4e4cdd8d372751bfa9988cc3a9"/></dir><file name="Retry.php" hash="3be3db7e54bd8bb45e0faffa1941f515"/><dir name="Sent"><file name="Collection.php" hash="8960157c9c5b16463aac33cf75116bc8"/></dir><file name="Sent.php" hash="744833cbe4ac4bb7ca69395d90229c0c"/></dir><file name="Retry.php" hash="89e7344139affa4fe0b9a252a5d1c592"/><file name="Sent.php" hash="cf2b22314d20f469f40e31ae14477032"/><dir name="System"><dir name="Config"><dir name="Source"><file name="ApprovedState.php" hash="6f4d7f7eb52922e57ff9069ec6031b63"/><file name="CanceledStateStatuses.php" hash="c274fb739314b34104e0b0085f1039c8"/><file name="CaptureCase.php" hash="6f2505f2c51df6a7caa26d5f89995b47"/><file name="DeclinedState.php" hash="d2c80dd15b3843bce5eb4d2a660b080a"/><file name="Env.php" hash="e213a59d9c438e4dc39b226134a85fab"/><file name="HoldedStateStatuses.php" hash="212f2476e5f6bed6d3456133d6e27c40"/><file name="ProcessingStateStatuses.php" hash="19af6046f86df7a5ba28693545493304"/></dir></dir></dir></dir><dir name="Test"><dir name="Config"><file name="General.php" hash="a5d4950c5655960879e7d75c06977941"/></dir><dir name="Helper"><dir name="General"><dir name="fixtures"><file name="extensionConfigEnabled.yaml" hash="eec8c8d8a1d5de49897b19740cf8e074"/></dir></dir><file name="General.php" hash="607c9711656be48084f6688e114b6bf6"/></dir><dir name="Model"><file name="Environments.php" hash="f3fc028d17c82b9b84b709b932e64eae"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="RiskifiedfullController.php" hash="c1927328b0feadc25073ae1e948cfa6b"/></dir><file name="ResponseController.php" hash="05173a743f73c1ed7b7cb9e0a580de3a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="333f4002a4c677b670cd449147b9d3c8"/><file name="cache.xml" hash="3a7cd749515499cce292330c46ce5028"/><file name="config.xml" hash="4654e0c5c72f245b202a3c184b2fc342"/><file name="system.xml" hash="87cbc615e747510df34587bf02005077"/></dir><dir name="sql"><dir name="riskified_full_setup"><file name="mysql4-install-1.0.1.php" hash="66592f315ddacbb116e70b34094fbbef"/><file name="mysql4-upgrade-1.0.2.0-1.0.2.1.php" hash="5d12b7203027e843f6322b5a48fb3d23"/><file name="mysql4-upgrade-1.0.4-1.0.5.0.php" hash="df9bb6016ebab61444d65a5d92b0a70e"/><file name="mysql4-upgrade-1.0.5.5-1.0.6.0.php" hash="c749f3c2564fdf9310dcd22d493630d8"/><file name="mysql4-upgrade-1.0.8.0-1.0.8.1.php" hash="45ac33ab1e02f06f6850dd9876017f09"/><file name="mysql4-upgrade-1.0.9.0-1.0.9.1.php" hash="3cc6f0423a53bf1b8484b7dfe14fc328"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Riskified_Full.xml" hash="d684caecdf710e5d0173ca07e5c5d1c0"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="full.xml" hash="8dbb3dd16fcb5821eb07e9b5d978d55c"/></dir><dir name="template"><dir name="full"><file name="jsinit.phtml" hash="dbf48e2d0d5a89db58cd474028bc2e7d"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="full.xml" hash="96d4fb310618a1e6fb149dc367952812"/></dir><dir name="template"><dir name="full"><file name="beacon.phtml" hash="396625d0c46c9f4dd287cef289a9bef8"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="riskified"><file name="logo.jpg" hash="0ac96bf07aa8b8ecb3ff06c2ccbf0827"/></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="riskified_php_sdk"><file name="README.md" hash="f37118baa641e4ef6d670bb1c0298482"/><file name="composer.json" hash="96ba594b3b4ae47223d03f4fc78dcb16"/><dir><dir name="sample"><file name="README.md" hash="d6e555fdf2501b66b52d056857b3d903"/><file name="callback.php" hash="c6fb5a90b2c527b794fcec803acb36d9"/><file name="order_full_flow.php" hash="f85e1ca28b6f7deae958271d88cbeaed"/><file name="order_marketplace_create.php" hash="ae3d2fb28154a710934d6243302a590d"/><file name="order_simple_submit.php" hash="d8458f7992b486b6dac28558526f068b"/><file name="run_callback_server.sh" hash="8202fd93c15e088d072805d3a2f4c02b"/><file name="update_merchant_settings.php" hash="24499737ab057aba76cd054fd5051aad"/><file name="upload_historical.php" hash="78bdb85c036183de16968a79c8836efd"/></dir><dir name="src"><dir name="Riskified"><dir name="Common"><file name="Env.php" hash="3fc8342a423141fb0c110901deebfe25"/><dir name="Exception"><file name="BaseException.php" hash="ce902d0a3bd9af53b3c1923541602ead"/></dir><file name="Riskified.php" hash="0d1ff23815dbbf8716f2f3d349c1f8f3"/><dir name="Signature"><file name="HttpDataSignature.php" hash="b9f5d57db1903126a72eb38ca55ba878"/></dir><file name="Validations.php" hash="4af37b31901f215b660c868c31594b75"/></dir><dir name="DecisionNotification"><dir name="Exception"><file name="AuthorizationException.php" hash="4cab71ac324efd3b29bdfa6236a8f531"/><file name="BadHeaderException.php" hash="407a0d9e94d52e8b43bed02e34bd4a70"/><file name="BadPostJsonException.php" hash="2e2a7f84fae19fd525f01f6899ea218b"/><file name="NotificationException.php" hash="8f7d1ed8b9523ec66423c6ff2703085f"/></dir><dir name="Model"><file name="Notification.php" hash="9e2f5fd421abe37ab7b742767966f312"/></dir></dir><dir name="OrderWebhook"><dir name="Exception"><file name="ClassMismatchPropertyException.php" hash="8854b7aea6736b290826eb44ac0ba578"/><file name="CurlException.php" hash="27488d2dd0fa2c25b647a5967e3821b1"/><file name="FormatMismatchPropertyException.php" hash="2729989c3ac2a245341fd01a4d004b49"/><file name="InvalidPropertyException.php" hash="97084ff2ff33f5c657c5876a44aa97d2"/><file name="MalformedJsonException.php" hash="8c795b605988f20f1899dcf160f29cf1"/><file name="MissingPropertyException.php" hash="5ad8df6ba645a113fac7b65e08167d2c"/><file name="MultiplePropertiesException.php" hash="aaa042c5a0fcfd15dc2744059b15798b"/><file name="PropertyException.php" hash="7a234406434c5616aab72da27a1ed6ed"/><file name="TypeMismatchPropertyException.php" hash="5eed61220c954a462411f433a2c85bf2"/><file name="UnsuccessfulActionException.php" hash="b02fafbda955fa889ca36c5092ccc68d"/></dir><dir name="Model"><file name="AbstractModel.php" hash="73adfaac9fe9e189827baac5a71e41a4"/><file name="Address.php" hash="743e6e5ad9562d19e6af68334079d3cb"/><file name="Attribute.php" hash="e7fa146d7c9c807494c225e6a41afcfb"/><file name="AuthorizationError.php" hash="b82229eff42d94ceba58d4d6a3a4118b"/><file name="ChargeFreePaymentDetails.php" hash="07ab9a9022cc3152404617b72230e843"/><file name="Checkout.php" hash="ede0e6d2fd8319ada669de35b4c3190f"/><file name="ClientDetails.php" hash="50b329fa6b77bcbeff4b725705b957af"/><file name="Customer.php" hash="7e68c5804c145a93c2e48f4460a63759"/><file name="Decision.php" hash="55bf62bfcfc49ab9e5b823e7ec90d6bd"/><file name="DecisionDetails.php" hash="317121548885d2b8eb75a4d5e383f9f8"/><file name="DiscountCode.php" hash="0861920950828a3ff19904b92b4cb50d"/><file name="Fulfillment.php" hash="9111db9b13ae7b2fbe6bf806a66d78f2"/><file name="FulfillmentDetails.php" hash="d3c11d4e8943862fc4a774f3f8e9d7d7"/><file name="LineItem.php" hash="28af24c031cb3e162c2b4b7a3423980b"/><file name="MerchantSettings.php" hash="62f42b50b7a25b014cbed4ea528998aa"/><file name="Order.php" hash="cdff0611ed8e2b673938a8e1d36d64c5"/><file name="OrderCancellation.php" hash="f6f2d5234bb98b56902e632fbccc07b3"/><file name="PaymentDetails.php" hash="1d0bc8094d3a02ba6fe6b52ee139f47e"/><file name="Refund.php" hash="1c3ad264984585cfcefc909ffa708dc4"/><file name="RefundDetails.php" hash="f9a0e27e26bbfb6699bb0dd44fe6a184"/><file name="Seller.php" hash="2dd5dc2dc22582231263cad803149a16"/><file name="ShippingLine.php" hash="5ac14361474789db570fa6d14b17a973"/><file name="SocialDetails.php" hash="1fbc1939121c9618e612316c1a4500ca"/><file name="TaxLine.php" hash="59f82a19bc9ada690aa79bc96307db5e"/></dir><dir name="Transport"><file name="AbstractTransport.php" hash="6be123376c81f478968ee420ca5b31cb"/><file name="CurlTransport.php" hash="360863ea799e1c2f9860c16bd1ea401a"/></dir></dir><file name="autoloader.php" hash="f3471e90daf6184a096d337bbcd40bd1"/></dir></dir></dir><file name=".gitignore" hash="73f01e1298c44b6cc3e24a70cad8c56c"/></dir><dir name="riskified_scripts"><file name="riskified_historical_upload.php" hash="db28908aa4d29a78b712057fa60924fb"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>4.4.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|