関数
OrderMeta::setChargeState( Aivec\Welcart\SettlementModules\AmazonPay\Models\Charge\State $chargeState, string $chargeId, int|string $chargeAmount )
Sets Charge state object for the order
パラメータ パラメータ
- $chargeState
(State) (必須)
- $chargeId
(文字列) (必須)
- $chargeAmount
(数値|文字列) (必須)
ファイル: src/Models/OrderMeta.php
public function setChargeState(Charge\State $chargeState, $chargeId, $chargeAmount) { global $usces; $this->chargeState = $chargeState; $this->chargeId = $chargeId; $this->mostRecentTransactionAmount = $chargeAmount; $usces->set_order_meta_value(self::CHARGE_STATE, json_encode($this->chargeState), $this->orderid); $usces->set_order_meta_value(self::CHARGE_ID, $this->chargeId, $this->orderid); $usces->set_order_meta_value(self::MOST_RECENT_TRANS_AMOUNT, $chargeAmount, $this->orderid); }