thephpleague / omnipay-sagepay

Sage Pay driver for the Omnipay PHP payment processing library
MIT License
55 stars 78 forks source link

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

Closed benjam-es closed 10 years ago

amacneil commented 10 years ago

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

benjam-es commented 10 years ago

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 commented 10 years ago

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.