-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to newest magento, include card payments
Co-authored-by: krzGablo <147171777+krzGablo@users.noreply.github.com> Co-authored-by: kGablo <krzysztof.gablo@tpay.com> Co-authored-by: Karol Wojciechowski <karol.wojciechowski@tpay.com>
- Loading branch information
1 parent
fea6ae5
commit 73605cb
Showing
80 changed files
with
8,085 additions
and
1,505 deletions.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace tpaycom\magento2basic\Api\Sales; | ||
|
||
use Magento\Sales\Api\OrderRepositoryInterface as MagentoOrderRepositoryInterface; | ||
|
||
interface OrderRepositoryInterface extends MagentoOrderRepositoryInterface | ||
{ | ||
/** | ||
* Return new instance of Order by increment ID | ||
* | ||
* @param string $incrementId | ||
* | ||
* @return \Magento\Sales\Api\Data\OrderInterface | ||
*/ | ||
public function getByIncrementId($incrementId); | ||
/** Return new instance of Order by increment ID */ | ||
public function getByIncrementId(string $incrementId): \Magento\Sales\Api\Data\OrderInterface; | ||
} |
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 |
---|---|---|
@@ -1,100 +1,99 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace tpaycom\magento2basic\Api; | ||
|
||
/** | ||
* @api | ||
*/ | ||
interface TpayInterface | ||
{ | ||
const CODE = 'tpaycom_magento2basic'; | ||
const CHANNEL = 'group'; | ||
const BLIK_CODE = 'blik_code'; | ||
const TERMS_ACCEPT = 'accept_tos'; | ||
|
||
/** | ||
* Return string for redirection | ||
* | ||
* @return string | ||
*/ | ||
public function getRedirectURL(); | ||
|
||
/** | ||
* Return data for form | ||
* | ||
* @param null|int $orderId | ||
* | ||
* @return array | ||
*/ | ||
public function getTpayFormData($orderId = null); | ||
|
||
/** @return string */ | ||
public function getApiPassword(); | ||
|
||
/** @return string */ | ||
public function getApiKey(); | ||
|
||
/** @return string */ | ||
public function getSecurityCode(); | ||
|
||
/** @return int */ | ||
public function getMerchantId(); | ||
|
||
/** | ||
* Check that the BLIK Level 0 should be active on a payment channels list | ||
* | ||
* @return bool | ||
*/ | ||
public function checkBlikLevel0Settings(); | ||
|
||
/** @return bool */ | ||
public function getBlikLevelZeroStatus(); | ||
|
||
/** @return bool */ | ||
public function onlyOnlineChannels(); | ||
|
||
/** @return bool */ | ||
public function redirectToChannel(); | ||
|
||
/** | ||
* Return url to redirect after placed order | ||
* | ||
* @return string | ||
*/ | ||
public function getPaymentRedirectUrl(); | ||
|
||
/** | ||
* Return url for a tpay.com terms | ||
* | ||
* @return string | ||
*/ | ||
public function getTermsURL(); | ||
|
||
/** | ||
* Check if send an email about the new invoice to customer | ||
* | ||
* @return string | ||
*/ | ||
public function getInvoiceSendMail(); | ||
|
||
/** | ||
* Check if Tpay notification server IP is forwarded by proxy | ||
* | ||
* @return bool | ||
*/ | ||
public function getCheckProxy(); | ||
|
||
/** | ||
* Check Tpay notification server IP | ||
* | ||
* @return bool | ||
*/ | ||
public function getCheckTpayIP(); | ||
|
||
/** | ||
* Check if checkout amount is in range of installments payment channel | ||
* | ||
* @return bool | ||
*/ | ||
public function getInstallmentsAmountValid(); | ||
public const CODE = 'tpaycom_magento2basic'; | ||
public const GROUP = 'group'; | ||
public const CHANNEL = 'channel'; | ||
public const BLIK_CODE = 'blik_code'; | ||
public const TERMS_ACCEPT = 'accept_tos'; | ||
public const CARDDATA = 'card_data'; | ||
public const CARD_SAVE = 'card_save'; | ||
public const CARD_ID = 'card_id'; | ||
public const CARD_VENDOR = 'card_vendor'; | ||
public const SHORT_CODE = 'short_code'; | ||
|
||
/** Return string for redirection */ | ||
public function getRedirectURL(): string; | ||
|
||
/** Return data for form */ | ||
public function getTpayFormData(?string $orderId = null): array; | ||
|
||
public function getCardTitle(): ?string; | ||
|
||
public function isOriginApiEnabled(): bool; | ||
|
||
public function isOpenApiEnabled(): bool; | ||
|
||
public function isCardEnabled(): bool; | ||
|
||
public function isOriginApiCardUse(): bool; | ||
|
||
public function getApiPassword(): ?string; | ||
|
||
public function getOpenApiPassword(): ?string; | ||
|
||
public function getApiKey(): ?string; | ||
|
||
public function getSecurityCode(?int $storeId = null): ?string; | ||
|
||
public function getOpenApiClientId(): ?string; | ||
|
||
public function getMerchantId(): ?int; | ||
|
||
/** Check that the BLIK Level 0 should be active on a payment channels list */ | ||
public function checkBlikLevel0Settings(): bool; | ||
|
||
public function getBlikLevelZeroStatus(): bool; | ||
|
||
public function onlyOnlineChannels(): bool; | ||
|
||
public function redirectToChannel(): bool; | ||
|
||
/** Return url to redirect after placed order */ | ||
public function getPaymentRedirectUrl(): string; | ||
|
||
/** Return url for a tpay.com terms */ | ||
public function getTermsURL(): string; | ||
|
||
/** Check if send an email about the new invoice to customer */ | ||
public function getInvoiceSendMail(): string; | ||
|
||
public function useSandboxMode(?int $storeId = null): bool; | ||
|
||
/** Check if checkout amount is in range of installments payment channel */ | ||
public function getInstallmentsAmountValid(): bool; | ||
|
||
public function getCardApiKey(): ?string; | ||
|
||
public function getCardApiPassword(): ?string; | ||
|
||
public function getCardSaveEnabled(): bool; | ||
|
||
public function getCheckoutCustomerId(): ?string; | ||
|
||
public function getRSAKey(): ?string; | ||
|
||
public function isCustomerLoggedIn(): bool; | ||
|
||
public function getHashType(): ?string; | ||
|
||
public function getVerificationCode(): ?string; | ||
|
||
public function isAllowSpecific(): bool; | ||
|
||
public function getSpecificCountry(): array; | ||
|
||
/** @param string $orderId */ | ||
public function getCustomerId($orderId); | ||
|
||
/** @param string $orderId */ | ||
public function isCustomerGuest($orderId); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.