-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update to sdk with latest changes #11
base: master
Are you sure you want to change the base?
Conversation
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.
Any requested changes here should be made after the current Magento 2 work that we need by EOM.
classes/admin/class-submenu.php
Outdated
$config->versionNumber = '1510'; | ||
$config->developerId = '002914'; | ||
return $config; | ||
$config->serviceUrl = "https://cert.api2.heartlandportico.com"; |
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.
We need to account for both sandbox and production environments. As is, this will only send requests to sandbox, even if production credentials are configured.
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.
updated
@@ -555,7 +572,7 @@ protected function listTransactionsConvertExceptions($item) | |||
return $item; | |||
} | |||
|
|||
if (!empty($item->exceptions->hpsException)) { | |||
if (!empty($item->exceptions->Exceptions)) { |
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.
There's no direct mapping from the old SDK to the new one for this. We may have to reinvision how this operates with the new SDK.
classes/admin/class-submenu.php
Outdated
) { | ||
$builder = $service->reverse(); | ||
$builder = Transaction::fromId($transaction->transactionId) |
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.
For gift transactions, we need to supply the PaymentMethodType::GIFT
as the second parameter to Transaction::fromId
in order for the request type to be mapped correctly for any non-credit card requests.
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.
This would apply to eCheck/ACH transactions as well.
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.
updated
No description provided.