Skip to content

Remove hardcoded values in ExpressAuthorizeRequest (Fixes #121) #140

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

Merged
merged 1 commit into from
Oct 6, 2013

Conversation

aderuwe
Copy link
Contributor

@aderuwe aderuwe commented Sep 30, 2013

No description provided.

@@ -41,6 +40,12 @@ public function getData()
$data['HDRIMG'] = $headerImageUrl;
}

if ($noShipping = $this->getNoShipping()) {
Copy link
Member

Choose a reason for hiding this comment

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

This will break if you set it to '0'

Copy link
Member

Choose a reason for hiding this comment

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

Just need to test against null instead of falsey

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course. Fixed now. :)

@aderuwe
Copy link
Contributor Author

aderuwe commented Sep 30, 2013

There's another parameter that is hardcoded (ALLOWNOTE), should this be made configurable as well?

@amacneil
Copy link
Member

Yes, would be good to make that an option too.

The only reason the defaults were there is that was what I needed for my shopping cart, but I should really move that logic into the app anyway.

I'd be happy to remove the defaults and release it as 1.1, I don't think it's a major change.


Sent from Mailbox for iPhone

On Tue, Oct 1, 2013 at 12:37 AM, Alexander Deruwe
notifications@github.com wrote:

There's another parameter that is hardcoded (ALLOWNOTE), should this be made configurable as well?

Reply to this email directly or view it on GitHub:
#140 (comment)

@aderuwe
Copy link
Contributor Author

aderuwe commented Oct 2, 2013

Ah forgot to comment that I added configurable ALLOWNOTE, removed the defaults.

amacneil added a commit that referenced this pull request Oct 6, 2013
Remove hardcoded values in ExpressAuthorizeRequest (Fixes #121)
@amacneil amacneil merged commit 35a0803 into thephpleague:master Oct 6, 2013
@amacneil
Copy link
Member

amacneil commented Oct 6, 2013

Looks good, thanks!

@aderuwe aderuwe deleted the patch-9 branch October 9, 2013 19:24
barryvdh pushed a commit that referenced this pull request Feb 13, 2016
Remove hardcoded values in ExpressAuthorizeRequest (Fixes #121)
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.

2 participants