関数
Checkout::registerOrderData( array $args )
Saves AmazonPay order meta data
パラメータ パラメータ
- $args
(配列) (必須) Welcart
$_SESSION
variables- 'cart'
(配列) - 'entry'
(配列) - 'order_id'
(数値) - 'member_id'
(数値) - 'payments'
(配列) - 'charging_type'
(文字列) - 'results'
(配列)
- 'cart'
ファイル: src/Checkout.php
protected function registerOrderData($args) { if ($this->error === null) { $order = (new API\WelcartEntries())->getOrder(); $chargeState = null; if ($this->chargeResponse !== null) { $chargeState = new Models\Charge\State( $this->chargeResponse['statusDetails']['state'], $this->chargeResponse['statusDetails']['reasonCode'], $this->chargeResponse['statusDetails']['reasonDescription'] ); } OrderMeta::saveOrderMetaDataFromCheckoutSession( $this->checkoutResponse, (int)$args['order_id'], $order['total_full_price'], usces_crcode('return'), $chargeState ); } }