-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vipps 434: Prepare for MobilePay. #177
Open
aluminium1989
wants to merge
48
commits into
master
Choose a base branch
from
VIPPS-434
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 37 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
14c20df
VIPPS-417: Improve performance of GetShippingDetails service
3cc3201
Merge branch '2.4' of github.com:vippsas/vipps-magento into 2.4
2f2f753
VIPPS-417: Added backward compatibility with Magento 2.4.3
ea6af43
Merge pull request #148 from vippsas/publication-2.4.37
voleye efc0870
VIPPS-417: Added backward compatibility with Magento 2.4.3
bf50d71
Merge pull request #149 from vippsas/publication-2.4.38
voleye 52645c6
VIPPS-419: Added support for configurable items for send receipt service
8ef8320
Merge pull request #152 from vippsas/publication-2.4.39
voleye 47976fb
VIPPS-420: Receipt requests: Incorrect totals for rows and 400 errors…
eddfffc
Merge pull request #155 from vippsas/2.4.40-p1
voleye 1e99ea4
Fixed issue when order id already is in used
ad6dc3e
Increase module version
b13224d
Merge pull request #156 from vippsas/2.4.41
voleye ad1c787
Mixed up credentials with multi-website? #157
206329d
Increase module version
420434e
Merge pull request #159 from vippsas/publication-2.4.42
voleye 0e8d86d
Mixed up credentials with multi-website? #157
339ae79
Merge branch '2.4' of github.com:vippsas/vipps-magento into 2.4
96317bd
Mixed up credentials with multi-website? #157
005a5fb
Mixed up credentials with multi-website? #157
7a68259
Mixed up credentials with multi-website? #157
d4c5228
Mixed up credentials with multi-website? #157
fb3c218
Mixed up credentials with multi-website? #157
ad1b975
Magento 2.4.6 and PHP 8.2 compatibility #160
f714bdb
Increased module version
da56b9f
Merge pull request #161 from vippsas/publication-2.4.43
voleye 14193be
Fixed: test connection feature does not work
551b497
VIPPS-426: Issue - unknown version for plugin
8f51710
Merge pull request #162 from vippsas/publication-2.4.45
voleye cfb2cd8
VIPPS-429: Received invalid message format "The Name field is required"
aa365cd
VIPPS-433: Migrate to ecomm api.
olegmalichenkoatvaimo 0b66eab
VIPPS-433: Migrate to ecomm api.
olegmalichenkoatvaimo fc07da7
VIPPS-433: Complete migration.
olegmalichenkoatvaimo d442b57
VIPPS-434: Switcher from ecomm api to epayment.
olegmalichenkoatvaimo 8c15407
VIPPS-434: Switcher from ecomm api to epayment.
olegmalichenkoatvaimo 061fe6f
VIPPS-434: Update labels for mobile ecomm, allow NOK, EUR currencies.
olegmalichenkoatvaimo 8699c7f
VIPPS-435: Extend graphql for pwa mobilepay.
olegmalichenkoatvaimo f8a6151
VIPPS-434: Add license.
olegmalichenkoatvaimo fa5a96d
VIPPS-434: Update mobilepay logo.
olegmalichenkoatvaimo 112e5dd
VIPPS-434: Update unit tests.
olegmalichenkoatvaimo 0109e45
VIPPS-434: Update phpcs config.
olegmalichenkoatvaimo 52f1065
VIPPS-442: Always capture when mobilepay is selected.
olegmalichenkoatvaimo 9d7a89d
VIPPS-442: Add hint.
olegmalichenkoatvaimo 7d48c83
VIPPS-434: Fix for url assebmling.
olegmalichenkoatvaimo 028f848
VIPPS-434: Update labels to use Vipps/MobilePayment.
olegmalichenkoatvaimo b80bdaf
VIPPS-446: Update links and notes at configuration.
olegmalichenkoatvaimo 31913e4
VIPPS-448: Unlock authorize and capture for mobilepay.
olegmalichenkoatvaimo e94a1b5
VIPPS-448: Fix implicit convert to int.
olegmalichenkoatvaimo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Vipps\Payment\Api\Fallback; | ||
|
||
use Magento\Framework\App\RequestInterface; | ||
use Vipps\Payment\Api\Data\QuoteInterface; | ||
|
||
interface AuthoriseInterface | ||
{ | ||
public function do(RequestInterface $request, QuoteInterface $vippsQuote): void; | ||
|
||
public function getOrderId(RequestInterface $request): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?php declare(strict_types=1); | ||
|
||
/** | ||
* Copyright 2023 Vipps | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | ||
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation | ||
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, | ||
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED | ||
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL | ||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | ||
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
* IN THE SOFTWARE. | ||
*/ | ||
|
||
namespace Vipps\Payment\Api\Payment; | ||
|
||
use Magento\Payment\Gateway\Command\ResultInterface; | ||
use Magento\Payment\Model\InfoInterface; | ||
use Magento\Sales\Api\Data\OrderInterface; | ||
use Vipps\Payment\Gateway\Exception\VippsException; | ||
|
||
/** | ||
* Interface PaymentCommandManagerInterface | ||
* @package Vipps\Payment\Api | ||
* @api | ||
*/ | ||
interface CommandManagerInterface | ||
{ | ||
/** | ||
* @param string $reference | ||
* @param array $arguments | ||
* | ||
* @return mixed | ||
*/ | ||
public function getPayment($reference, $arguments = []); | ||
|
||
/** | ||
* @param string $orderId | ||
* @param array $arguments | ||
* | ||
* @return mixed | ||
*/ | ||
public function getPaymentEventLog($orderId, $arguments = []); | ||
|
||
/** | ||
* Send Receipt. | ||
* | ||
* @param array $arguments | ||
* | ||
* @return mixed | ||
* @throws VippsException | ||
*/ | ||
public function sendReceipt(OrderInterface $order, $arguments = []); | ||
|
||
/** | ||
* Method to execute cancel Command. | ||
* | ||
* @param InfoInterface $payment | ||
* @param array $arguments | ||
* | ||
* @return mixed | ||
*/ | ||
public function cancel(InfoInterface $payment, $arguments = []); | ||
|
||
/** | ||
* Initiate payment action. | ||
* | ||
* @param InfoInterface $payment | ||
* @param array $arguments | ||
* | ||
* @return ResultInterface|null | ||
*/ | ||
public function initiatePayment(InfoInterface $payment, $arguments); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Vipps\Payment\Api\Transaction; | ||
|
||
interface PaymentDetailsInterface | ||
{ | ||
public function get(string $orderId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one