We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 9acc8eb5 authored by rikterbeek's avatar rikterbeek

fix notificaitons handler with invoice creation build into and added...

fix notificaitons handler with invoice creation build into and added AdyenAbstract model for abstract configuration
parent 10bcbf45
...@@ -47,7 +47,7 @@ class Json extends \Magento\Framework\App\Action\Action ...@@ -47,7 +47,7 @@ class Json extends \Magento\Framework\App\Action\Action
try { try {
// $notificationItems = json_decode(file_get_contents('php://input'), true); // $notificationItems = json_decode(file_get_contents('php://input'), true);
$notificationItems = json_decode('{"live":"false","notificationItems":[{"NotificationRequestItem":{"additionalData":{"expiryDate":"12\/2012"," NAME1 ":"VALUE1","authCode":"1234","cardSummary":"7777","totalFraudScore":"10","hmacSignature":"yGnVWLP+UcpqjHTJbO5IUkG4ZdIk3uHCu62QAJvbbyg=","NAME2":" VALUE2 ","fraudCheck-6-ShopperIpUsage":"10"},"amount":{"currency":"EUR","value":10100},"eventCode":"AUTHORISATION","eventDate":"2015-09-11T13:53:21+02:00","merchantAccountCode":"MagentoMerchantByteShop1","merchantReference":"000000023","operations":["CANCEL","CAPTURE","REFUND"],"paymentMethod":"visa","pspReference":"test_AUTHORISATION_1","reason":"1234:7777:12\/2012","success":"true"}}]}', true); $notificationItems = json_decode('{"live":"false","notificationItems":[{"NotificationRequestItem":{"additionalData":{"expiryDate":"12\/2012"," NAME1 ":"VALUE1","authCode":"1234","cardSummary":"7777","totalFraudScore":"10","hmacSignature":"yGnVWLP+UcpqjHTJbO5IUkG4ZdIk3uHCu62QAJvbbyg=","NAME2":" VALUE2 ","fraudCheck-6-ShopperIpUsage":"10"},"amount":{"currency":"EUR","value":10500},"eventCode":"AUTHORISATION","eventDate":"2015-09-11T13:53:21+02:00","merchantAccountCode":"MagentoMerchantByteShop1","merchantReference":"000000023","operations":["CANCEL","CAPTURE","REFUND"],"paymentMethod":"visa","pspReference":"test_AUTHORISATION_1","reason":"1234:7777:12\/2012","success":"true"}}]}', true);
$notificationMode = isset($notificationItems['live']) ? $notificationItems['live'] : ""; $notificationMode = isset($notificationItems['live']) ? $notificationItems['live'] : "";
......
This diff is collapsed.
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Adyen\Payment\Model\Method;
use Magento\Framework\Object;
use Magento\Payment\Model\Method\ConfigInterface;
use Magento\Payment\Model\Method\Online\GatewayInterface;
/**
* @method \Magento\Quote\Api\Data\PaymentMethodExtensionInterface getExtensionAttributes()
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class AdyenAbstract extends \Magento\Payment\Model\Method\AbstractMethod implements GatewayInterface
{
const METHOD_CODE = 'adyen_hpp';
/**
* @var string
*/
protected $_code = self::METHOD_CODE;
protected $_isGateway = false;
protected $_canAuthorize = false;
protected $_isInitializeNeeded = false;
/**
* Post request to gateway and return response
*
* @param Object $request
* @param ConfigInterface $config
*
* @return Object
*
* @throws \Exception
*/
public function postRequest(Object $request, ConfigInterface $config)
{
// TODO: Implement postRequest() method.
}
}
\ No newline at end of file
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
<payment> <payment>
<adyen_abstract> <adyen_abstract>
<active>0</active> <active>0</active>
<model>Adyen\Payment\Model\Method\AdyenAbstract</model>
<recurring_type>ONECLICK</recurring_type> <recurring_type>ONECLICK</recurring_type>
<order_status>pending</order_status> <order_status>pending</order_status>
<demo_mode>1</demo_mode> <demo_mode>0</demo_mode>
</adyen_abstract> </adyen_abstract>
<adyen_cc> <adyen_cc>
<active>1</active> <active>1</active>
......
...@@ -30,17 +30,16 @@ ...@@ -30,17 +30,16 @@
}, 'validation':[]}"> }, 'validation':[]}">
<fieldset data-bind="attr: {class: 'fieldset payment items ccard ' + getCode(), id: 'payment_form_' + getCode()}"> <fieldset data-bind="attr: {class: 'fieldset payment items ccard ' + getCode(), id: 'payment_form_' + getCode()}">
<!-- ko if: (isShowLegend())--> <!-- ko if: (isShowLegend())-->
<legend class="legend"> <legend class="legend">
<span><!-- ko i18n: 'Credit Card Information'--><!-- /ko --></span> <span><!-- ko text: $t('Credit Card Information')--><!-- /ko --></span>
</legend><br /> </legend><br />
<!-- /ko --> <!-- /ko -->
<div class="field type required"> <div class="field type required">
<label data-bind="attr: {for: getCode() + '_cc_type'}" class="label"> <label data-bind="attr: {for: getCode() + '_cc_type'}" class="label">
<span><!-- ko i18n: 'Credit Card Type'--><!-- /ko --></span> <span><!-- ko text: $t('Credit Card Type')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
<ul class="credit-card-types"> <ul class="credit-card-types">
...@@ -68,7 +67,7 @@ ...@@ -68,7 +67,7 @@
</div> </div>
<div class="field number required"> <div class="field number required">
<label data-bind="attr: {for: getCode() + '_cc_number'}" class="label"> <label data-bind="attr: {for: getCode() + '_cc_number'}" class="label">
<span><!-- ko i18n: 'Credit Card Number'--><!-- /ko --></span> <span><!-- ko text: $t('Credit Card Number')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
<input type="number" name="payment[cc_number]" class="input-text" value="" <input type="number" name="payment[cc_number]" class="input-text" value=""
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
</div> </div>
<div class="field type required"> <div class="field type required">
<label data-bind="attr: {for: getCode() + '_cc_owner'}" class="label"> <label data-bind="attr: {for: getCode() + '_cc_owner'}" class="label">
<span><!-- ko i18n: 'Credit Card Owner'--><!-- /ko --></span> <span><!-- ko text: $t('Credit Card Owner')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
<input type="text" <input type="text"
...@@ -101,7 +100,7 @@ ...@@ -101,7 +100,7 @@
</div> </div>
<div class="field date required" data-bind="attr: {id: getCode() + '_cc_type_exp_div'}"> <div class="field date required" data-bind="attr: {id: getCode() + '_cc_type_exp_div'}">
<label data-bind="attr: {for: getCode() + '_expiration'}" class="label"> <label data-bind="attr: {for: getCode() + '_expiration'}" class="label">
<span><!-- ko i18n: 'Expiration Date'--><!-- /ko --></span> <span><!-- ko text: $t('Expiration Date')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
<div class="fields group group-2"> <div class="fields group group-2">
...@@ -141,7 +140,7 @@ ...@@ -141,7 +140,7 @@
<!-- ko if: (hasVerification())--> <!-- ko if: (hasVerification())-->
<div class="field cvv required" data-bind="attr: {id: getCode() + '_cc_type_cvv_div'}"> <div class="field cvv required" data-bind="attr: {id: getCode() + '_cc_type_cvv_div'}">
<label data-bind="attr: {for: getCode() + '_cc_cid'}" class="label"> <label data-bind="attr: {for: getCode() + '_cc_cid'}" class="label">
<span><!-- ko i18n: 'Card Verification Number'--><!-- /ko --></span> <span><!-- ko text: $t('Card Verification Number')--><!-- /ko --></span>
</label> </label>
<div class="control _with-tooltip"> <div class="control _with-tooltip">
<input type="number" <input type="number"
...@@ -161,7 +160,7 @@ ...@@ -161,7 +160,7 @@
tabindex="0" tabindex="0"
data-toggle="dropdown" data-toggle="dropdown"
data-bind="attr: {title: $t('What is this?')}, mageInit: {'dropdown':{'activeClass': '_active'}}"> data-bind="attr: {title: $t('What is this?')}, mageInit: {'dropdown':{'activeClass': '_active'}}">
<span><!-- ko i18n: 'What is this?'--><!-- /ko --></span> <span><!-- ko text: $t('What is this?')--><!-- /ko --></span>
</span> </span>
<div class="field-tooltip-content" <div class="field-tooltip-content"
data-target="dropdown" data-target="dropdown"
...@@ -175,12 +174,12 @@ ...@@ -175,12 +174,12 @@
<div class="nested"> <div class="nested">
<div class="field switch-solo required"> <div class="field switch-solo required">
<label data-bind="attr: {for: getCode() + '_cc_issue'}" class="label"> <label data-bind="attr: {for: getCode() + '_cc_issue'}" class="label">
<span><!-- ko i18n: 'Switch/Solo/Maestro Only'--><!-- /ko --></span> <span><!-- ko text: $t('Switch/Solo/Maestro Only')--><!-- /ko --></span>
</label> </label>
</div> </div>
<div class="field number required"> <div class="field number required">
<label data-bind="attr: {for: getCode() + '_cc_issue'}" class="label"> <label data-bind="attr: {for: getCode() + '_cc_issue'}" class="label">
<span><!-- ko i18n: 'Issue Number'--><!-- /ko --></span> <span><!-- ko text: $t('Issue Number')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
<input type="number" name="payment[cc_ss_issue]" <input type="number" name="payment[cc_ss_issue]"
...@@ -192,7 +191,7 @@ ...@@ -192,7 +191,7 @@
<div class="field date required"> <div class="field date required">
<label data-bind="attr: {for: getCode() + '_start_month'}" class="label"> <label data-bind="attr: {for: getCode() + '_start_month'}" class="label">
<span><!-- ko i18n: 'Start Date'--><!-- /ko --></span> <span><!-- ko text: $t('Start Date'--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
<div class="fields group group-2"> <div class="fields group group-2">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment