You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.
Seems like the following way of creating a Payments instance doesn't work: $data = [ "operation" => "Purchase", "intent" => "Authorization" ]; $payment = new PayEx\Api\Service\Payment\Request\Payments( $data );
I believe, this is because in \src\PayEx\Api\Service\Request (parent class) in the constructor the $data is sent as a first and only argument (in case if $data is array or string): $this->setRequestResource($this->resourceFactory->newRequestResource($data));
while newRequestResource method of PayEx\Api\Service\ResourceFactory class expects 3 optional arguments, where $data is the last one: public function newRequestResource($service = '', $resource = '', $data = [])
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Seems like the following way of creating a Payments instance doesn't work:
$data = [
"operation" => "Purchase",
"intent" => "Authorization"
];
$payment = new PayEx\Api\Service\Payment\Request\Payments( $data );
I believe, this is because in \src\PayEx\Api\Service\Request (parent class) in the constructor the $data is sent as a first and only argument (in case if $data is array or string):
$this->setRequestResource($this->resourceFactory->newRequestResource($data));
while newRequestResource method of PayEx\Api\Service\ResourceFactory class expects 3 optional arguments, where $data is the last one:
public function newRequestResource($service = '', $resource = '', $data = [])
The text was updated successfully, but these errors were encountered: