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