関数
Cancel::delete( array $args, array $payload )
Cancels an order and returns Amazon Pay transaction info and history
パラメータ パラメータ
- $args
(配列) (必須) ['orderId']
- $payload
(配列) (必須)
ファイル: src/Admin/API/Cancel.php
public function delete($args, $payload) { $orderId = (int)$args['orderId']; $reason = $payload['reason']; $order = new OrderMeta($orderId); (new API\Charge\Cancel($this->module, $order))->delete($order->getChargeId(), $reason); return (new SettlementInfo())->get($args); }