-
Notifications
You must be signed in to change notification settings - Fork 92
Migrate to XML API for AIM + CIM support #34
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
Conversation
… attribute requires the presence of itemId, name, quantity, unitPrice which is not properly documented in AuthorizeNet's API documentation.
… valid CC info. AuthorizetNet only requires last 4 digits of the credit card for refund transactions
Fix refunds for authorize.net
…before making the authorize net requests.
…yment profile for a give customer profile. If that call also results in duplicate, then get the customer profile containing all its payment profiles. Then get the payment profile id matching the last4 in our original request. Once this is done, use the customer profile id, payment profile id, and update the card details. (It is possible that last4 matches but the expiry dates change). After updation of the payment profile, return the response.
…erence will contain customer profile id and customer payment profile id, as these are enough for making a transaction
…ingerprint and brand
Authorize.net CIM
XOL-2788 Void an Authorize.net transaction if it has not been settled
… into xml-api Conflicts: src/Message/AIMRefundRequest.php src/Message/AIMResponse.php tests/Message/AIMRefundRequestTest.php tests/Message/AIMResponseTest.php
Looks good to me. Can someone who actually has gateway keys verify that this actually works in the real world? The PR that this replaces has been tossed around for a while so I think it's time we considered merging this. |
Was hoping to look at this sooner, but got dragged into other things this weekend. I can look at this from the DPM view first, then work backwards into SIM, AIM and CIM. I've got codes for this, but generally am only using DPM in production for its easier PCI conformance. This week, definitely. |
Just an FYI, we deployed this to production last Tuesday. So far so good with AIM & CIM. |
Thanks. |
Am I looking at the right branch? The SIM gateway still seems to extend the AIM gateway. I used this to get the branch to test:
When submitting a DPM form, this is giving me the following error at {
"messages":
{
"resultCode": "Error",
"message":
[
{
"code": "E00001",
"text": "Unexpected character encountered while parsing value: x. Path '', line 0, position 0."
}
]
}
} I'm not sure if this is in response to the callback - I'll check. |
Ah, got it. You changed the AIM endpoints to XML endpoints, but those URLs now filter down to SIM and DPM, for which they don't work as those methods don't use XML. SIM may, but DPM just uses a direct POST so no XML is involved. If you could modify public function getDefaultParameters()
{
$parameters = parent::getDefaultParameters();
$parameters['hashSecret'] = '';
$parameters['liveEndpoint'] = 'https://secure2.authorize.net/gateway/transact.dll';
$parameters['developerEndpoint'] = 'https://test.authorize.net/gateway/transact.dll';
return $parameters;
} Maybe stick a comment in there too, and a test to check the default endpoints for each gateway (AIM/CIM/DPM), but that's not essential for merging. Thanks :-) |
@judgej I've fixed the endpoints for SIM & DPM |
Thanks - that's DPM working for me again. Will try SIM next. |
Finally got around to testing SIM with my test account. All works without a hitch. How's your production instance going? Any changes needed, or is it just ticking along taking payments? I'll merge if there are no further changes or surprises you've found in production. |
Awesome! AIM & CIM have been working smoothly in production. No issues whatsoever. Pleasantly surprised :) |
Would be nice if deleteCard is supported for CIM. |
Sorry for the delay in merging - just up to my neck in all sorts here :-) Would you like to give dev-master a try to confirm it all looks okay to you. I'll do the same this end on a test site. This would then be release 2.4.0. |
Nice! I gave dev-master a whirl. Works fine locally and all the functional tests in our application passed. So looks good to me. |
I have tried the AIM and CIM gateways with sandbox accounts I was successful in performing transactions. |
Thanks. Just finding the time to try it on my DPM UAT system, then we can go for a release. |
Works fine on my UAT system using DPM. |
PR Highlights:
AUTHORIZE_NET_API_LOGIN_ID
,AUTHORIZE_NET_TRANSACTION_KEY
.Note: This PR replaces #6.