Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Update to sdk with latest changes #11

wants to merge 3 commits into from

Conversation

pkuma525
Copy link
Collaborator

No description provided.

@pkuma525 pkuma525 requested a review from slogsdon March 11, 2020 10:36
Copy link
Contributor

@slogsdon slogsdon left a 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.

$config->versionNumber = '1510';
$config->developerId = '002914';
return $config;
$config->serviceUrl = "https://cert.api2.heartlandportico.com";
Copy link
Contributor

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.

Copy link
Collaborator Author

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)) {
Copy link
Contributor

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.

) {
$builder = $service->reverse();
$builder = Transaction::fromId($transaction->transactionId)
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants