関数
Capture::post( mixed $args )
Captures an order and returns Amazon Pay transaction info and history
パラメータ パラメータ
- $args
(mixed) (必須) ['orderId', 'captureAmount']
ファイル: src/Admin/API/Capture.php
public function post($args) { $orderId = (int)$args['orderId']; $amount = $args['captureAmount']; $order = new OrderMeta($orderId); (new API\Charge\Capture($this->module, $order))->post( $order->getChargeId(), $amount, $order->getPaymentCurrency() ); return (new SettlementInfo())->get($args); }