->
add('payload', '{}'
) ->
amount(100
) ->
build();
$this->orderTransactionRepository->
upsert([$transaction],
$this->context
);
return $this->ids->
get('transaction'
);
} protected function createCapture(string
$orderTransactionId): string
{ $capture =
(new OrderTransactionCaptureBuilder($this->ids, 'capture',
$orderTransactionId)) ->
build();
$this->orderTransactionCaptureRepository->
upsert([$capture],
$this->context
);
return $this->ids->
get('capture'
);
} protected function createRefund(string
$captureId): string
{ $refund =
(new OrderTransactionCaptureRefundBuilder($this->ids, 'refund',
$captureId)) ->
build();