'defaultBillingAddress' =>
[ 'firstName' => 'Max',
'lastName' => 'Mustermann',
'street' => 'Musterstraße 1',
'city' => 'Schöppingen',
'zipcode' => '12345',
'salutationId' =>
$this->
getValidSalutationId(),
'countryId' =>
$countryId,
],
],
], Context::
createDefaultContext());
$paymentId =
$this->
createCustomPaymentWithRule($ruleId);
// Request payment change
$this->browser->
request( 'POST',
'/store-api/order/payment',
[],
[],
['CONTENT_TYPE' => 'application/json'
],
\
json_encode([ 'orderId' =>
$orderId,
'paymentMethodId' =>
$paymentId,
],