-
Notifications
You must be signed in to change notification settings - Fork 179
Implement GetExpressCheckoutDetails and MassPay operations #11
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
Let's start using proper OOP.
This is needed for extra risk and security checks.
I took the opportunity to add MassPay to this PR. Either way, it shouldn't matter. These features don't break existing code, and they don't conflict between each other. (; |
That's ok, it's just that large pull requests take me longer to review. I'll try to add some comments, but it might be easier if the masspay stuff is a separate PR. |
* PayPal Express Gateway | ||
* | ||
* @author Adrian Macneil <adrian@adrianmacneil.com> | ||
* @author Joao Dias <joao.dias@cherrygroup.com> |
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.
I'm explicitly avoiding adding any @author
type tags or copyright notices in omnipay, since it can get ridiculous trying to decide what is a "significant" enough contribution to warrant being mentioned here. With git & github it's trivial to see who authored what.
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.
Fair enough, I'll remove those in the next update.
Wait, how is |
GetTransactionDetails is used to get information about a specific transaction, and thus requires a transaction id. GetExpressCheckoutDetails is used to get information about a specific checkout, and thus requires the checkout token. (the transaction wasn't made yet) |
I see. So you are expected to call In that case, along with the Omnipay conventions perhaps we can call this |
I recently moved some of the files around (in line with PSR-4), so you will probably need to update your PR to match. I'd also much prefer to review the MassPay stuff separately, since this is already quite a large pull request. Let me know when you've addressed the issues above, and I'll take a look at it :) |
I'll create 2 new PRs for both methods using your newest code. It's probably better then creating a commit to remove MassPay on this branch. I don't think I can do it today, because I'm mega busy at work finishing off one of our newer APIs, but I'll defo do it this week. |
Cool, no hurry. FYI you can easily rebase/squash your commits and force push to this branch to update the PR.
|
Ah yeah, your right. Forgot about that. Cheers. (; |
I'd like to see this implemented too. Is it still under development? |
I too would appreciate it if this fork could be merged, as PayPal Express is unusable without GetExpressCheckoutDetails. Don't need the MassPay part. |
Someone care to make a new PR with just the GetExpressCheckoutDetails part? I think the method in omnipay should probably be named |
On it. |
Added PR #18 |
Fixed by #18 |
In our business we need to do extra risk and security checks, and thus I had the necessity to implement this express operation.
I have created unit tests for it, and also made the AbstractRequest a little bit better, imo.
There are no BC breaks, so you can just up the middle version number if you want. (;