Closed philipbrown closed 11 years ago
$response = $gateway->purchase(array(
"amount"=>"300",
"returnUrl" => "url",
"MC" => array(
"MC_Order" => 1,
"MC_Customer" => 2
)
));
And then in PurchaseRequest
public function setMC($param){
foreach($param as $key => $value){
$this->setParameter($key, $value);
}
}
I can clean this up, write the tests and submit a PR if you are happy with this approach?
Let's figure this out for all gateways in #82
How would I inject extra parameters into the defaults?
For example, I need to be able to send MC_Order, or MC_Customer etc.
Is that possible? Is there a way to dynamically set defaults and then use them in request?
Thank you,