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

[Patch] Added the ability to get and set the profile parameter #4

Closed
wants to merge 2 commits into from
Closed

[Patch] Added the ability to get and set the profile parameter #4

wants to merge 2 commits into from

Conversation

benjam-es
Copy link
Contributor

No description provided.

Signed-off-by: Ben James <in@benjam.es>
Signed-off-by: Ben James <in@benjam.es>
@amacneil amacneil closed this in 2a26d6e Feb 10, 2014
@amacneil
Copy link
Member

Can you test the latest master and let me know if that works for you?

@benjam-es
Copy link
Contributor Author

I get the following error

Call to undefined method Omnipay\SagePay\ServerGateway::setProfile()

On mine, I had the two methods inside the ServerGateway class aswel as inside the abstract class - that worked for me.

@amacneil
Copy link
Member

Just set it on the Request instead of the Gateway.

$gateway->purchase(['amount' => '10.00', 'profile' => 'LOW']);

There's not much point putting it directly on the gateway class unless you add it to the gateway options.

@benjam-es benjam-es deleted the patch-profile branch February 11, 2014 12:10
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.

None yet

2 participants