1
0
Fork 0
mirror of synced 2025-04-11 13:10:57 +00:00

update orderPaymentCreate method

This commit is contained in:
Alex Lushpai 2017-06-13 10:50:31 +03:00
parent 0bf18b8764
commit 370736eeb5
2 changed files with 2 additions and 1 deletions

View file

@ -474,7 +474,7 @@ class ApiClient
*
* @return ApiResponse
*/
public function ordersPaymentEdit(array $payment, $by = 'externalId', $site = null)
public function ordersPaymentEdit(array $payment, $by = 'id', $site = null)
{
if (!count($payment)) {
throw new \InvalidArgumentException(

View file

@ -402,6 +402,7 @@ class ApiClientOrdersTest extends TestCase
);
$paymentEdit = array(
'id' => $response['id'],
'externalId' => $externalId,
'amount' => 1500,
'comment' => 'test payment!',