-
Notifications
You must be signed in to change notification settings - Fork 55
No way to specify the integration ID #94
Comments
Hey @mglaman, are you referring to |
@deanpapastrat when we set up the integration for Drupal Commerce we were given an integration ID by our partner manager to help flag Drupal Commerce users which installed our module and setup their OAuth applications. It's been working for a while, but I realized I never open a proper issue 😱 $charge_request = $charge_request->__toString();
// The `integration_id` is only valid when live.
if ($mode == 'live') {
$charge_request = json_decode($charge_request, TRUE);
$charge_request['integration_id'] = 'sqi_b6ff0cd7acc14f7ab24200041d066ba6';
$charge_request = json_encode($charge_request, JSON_PRETTY_PRINT);
}
try {
list($response, $statusCode, $httpHeader) = $api_client->callApi(
$resourcePath, 'POST',
$queryParams, $charge_request,
$headerParams, '\SquareConnect\Model\ChargeResponse'
);
if (!$response) {
return [NULL, $statusCode, $httpHeader];
}
/** @var \SquareConnect\Model\ChargeResponse $result */
$result = ObjectSerializer::deserialize($response, '\SquareConnect\Model\ChargeResponse', $httpHeader);
}
catch (ApiException $e) {
switch ($e->getCode()) {
case 200:
$data = ObjectSerializer::deserialize($e->getResponseBody(), '\SquareConnect\Model\ChargeResponse', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
}
throw $e;
} This is what we've had to do instead of just
|
Yes it does. It's just undocumented. It's a partners-only thing. I agree with @mglaman -- it'd be preferable if Square built it into their SDK. Thanks Matt for opening the issue! 👍 |
🤔 now that's a much smarter idea! |
Hey all, wanted to apologize for the misinformation, both of you are 100% right about One thing to note: the V2 Payments API does NOT support Going to close this out as it's not currently on the roadmap. |
So ... to be clear, you're saying that supporting your Partner integrations moving forward ... is NOT on your roadmap? And yet you just released an API version that deprecates the feature that does support this part of Partner integrations. Swell. |
It's not currently on our roadmap for the existing SDKs, such as this one, but we're slowly working on improving our SDKs across the board and that'd be a feature request we can take back to the team. We will be supporting We're definitely listening to the feedback though, and I'd very, very strongly urge you to tell your partner manager at Square that this is critical for you so we can prioritize it. |
Please feel free to join the Slack channel we have and DM me (dean-square) - I'd be happy to setup a meeting with our product manager so you can share your feedback with him. |
Dean, thanks for the update. As you've implied, the bigger issues here are not really a discussion suitable for github. |
There is no way to pass the integration ID in the charge request as
integration_id
is not present in\SquareConnect\Model\ChargeRequest::$swaggerTypes
.The text was updated successfully, but these errors were encountered: