-
Notifications
You must be signed in to change notification settings - Fork 103
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
PW-1188: Add applicationInfo into terminal API requests #141
Conversation
Co-Authored-By: Marcos Garcia <[email protected]>
*/ | ||
public function getMerchantApplication() | ||
{ | ||
return isset($this->data['merchantApplication']) ? $this->data['merchantApplication'] : null; |
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.
let's slowly migrate off of the data field and use proper string value for this. protected $merchantApplication;
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.
ignore it as this will mean for every param we added it will be a major release for our merchants what is not ideal
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 can deprecate the interface so we are more flexible in the future.
@@ -22,6 +36,6 @@ public function __construct($service, $asynchronous) | |||
} else { | |||
$this->endpoint = $service->getClient()->getConfig()->get('endpointTerminalCloud') . '/sync'; | |||
} | |||
parent::__construct($service, $this->endpoint); | |||
parent::__construct($service, $this->endpoint, $allowApplicationInfo = false, $this->allowApplicationInfoPOS); |
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.
$allowApplicationInfo = false change this to $allowApplicationInfo.
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.
parent::__construct($service, $this->endpoint, $allowApplicationInfo = false, $this->allowApplicationInfoPOS); | |
parent::__construct($service, $this->endpoint, $this->allowApplicationInfo, $this->allowApplicationInfoPOS); |
… interface as deprecated so we can remove it in future releases to cleanup the config object.
Description
Add applicationInfo for terminal API requests inside SaleToAcquirerData.
If SaleToAcquirerData is empty, just add ApplicationInfo and base64encode it.
If SaleToAcquirerData contains data, add ApplicationInfo to it.
Tested scenarios
Fixed issue: