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

Added ability to change endpoint urls #16

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

Conversation

3dgroup
Copy link

@3dgroup 3dgroup commented May 31, 2016

No description provided.

@3dgroup 3dgroup mentioned this pull request May 31, 2016
@coatesap
Copy link

coatesap commented Jun 1, 2016

Hi @3dgroup - from a quick skim through this change looks like it could potentially break existing installations. Is the default Realex endpoint provided somewhere?

@3dgroup
Copy link
Author

3dgroup commented Jun 1, 2016

No your right, let me change it.

@3dgroup
Copy link
Author

3dgroup commented Jun 2, 2016

This should have resolved the issue you mentioned by adding the default payandshop urls into the default config array.

'3dSecure' => 0,
'authEndpoint'=>'https://epage.payandshop.com/epage-remote.cgi',
'secureDataVaultEndpoint'=>'https://epage.payandshop.com/epage-remote-plugins.cgi',
'3DSecureEndpoint'=>'https://epage.payandshop.com/epage-3dsecure.cgi'
Copy link

Choose a reason for hiding this comment

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

@3dgroup - just being picky, but can you match the case of this parameter to the existing 3dSecure one - ie. lowercase "d". It's just easier for other devs to remember then if it's consistent.

@James-Byrne
Copy link

Hey, I just made a pull request, one part of which allows you to change one of the endpoints, is there any issues with this request as it stands? If not I will gladly take that section out of my pull request.

}
public function setAuthEndpoint($value)
{
return $this->setParameter('SecureDataVaultEndpoint', $value);
Copy link

Choose a reason for hiding this comment

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

Should getters/setters not be using lower-camel-case parameter names to match the defaults defined in RemoteGateway.php? I'm not sure if the parameter bag is case-insenstive, but it would seem to make sense to be consistent with the other getters/setters...

@coatesap
Copy link

coatesap commented Oct 7, 2016

@James-Byrne - no, I think your implementation actually looks cleaner, so I'll probably merge yours instead. I'm guessing that your endpoint changes are to allow you to use it with white-labelled versions of Realex?

@3dgroup
Copy link
Author

3dgroup commented Oct 10, 2016

@coatesap To me there is more than one end point URL and @James-Byrne commit only seems to cover the Auth URL not the data vault end point url.

@coatesap
Copy link

@3dgroup - yes, good point. @James-Byrne - have you any thoughts how this could be addressed?

@James-Byrne
Copy link

I think the pr by @3dgroup is far more comprehensive than the one I have made and covers my current use case as well as use cases I may have in the future. If you can resolve the outstanding issues you have yourself (styling, backwards compatibility etc) then I think this is the better option.

@coatesap
Copy link

Thanks @James-Byrne, now that I've had chance to look properly at the commits, I'd agree. On that basis - @3dgroup - are you able to address the two comments I've added to the PR, and sort the indentation (tab is 4 spaces in Omnipay land, I believe), and I'll get this merged.

@3dgroup
Copy link
Author

3dgroup commented Oct 11, 2016

I think the tab issue is from my college istvan when he resolved an XML issue regarding special characters. He will be updating this today.

@slogsdon
Copy link
Contributor

What's the status of this PR? My team is working on Realex Hosted Payment Page / Redirect support as well, and it looks like some of the functionality will overlap what's being added here.

@3dgroup
Copy link
Author

3dgroup commented Dec 20, 2017

My Fork is working fine, https://github.com/3dgroup/omnipay-realex

Copy link

@coatesap coatesap left a comment

Choose a reason for hiding this comment

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

This looks very useful - but a couple of tweaks are needed before it can be merged - including the question about removing the protected endpoint properties.

@@ -0,0 +1,7 @@
include.path=${php.global.include.path}

Choose a reason for hiding this comment

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

Could you remove any of these IDE-specific files from the PR (I imagine they probably need to be gitignored...)

@@ -120,8 +130,22 @@ protected function createResponse($data)
return $response;
}

// public function getEndpoint()

Choose a reason for hiding this comment

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

Commented-out code needs removing or a comment explaining why this is a temporary action adding.

3dgroup added 9 commits April 16, 2018 08:58
# Conflicts:
#	src/Omnipay/Realex/Message/RemoteAbstractRequest.php
# Conflicts:
#	src/Omnipay/Realex/Message/EnrolmentRequest.php
#	src/Omnipay/Realex/Message/RemoteAbstractRequest.php
#	src/Omnipay/Realex/RemoteGateway.php
Elavon servers went down causing paying scripts to hang. Adding this frees the resources.
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.

5 participants