运费

parent ddd4ad70
Showing with 3 additions and 2 deletions
...@@ -310,7 +310,8 @@ class OrderService ...@@ -310,7 +310,8 @@ class OrderService
$priceArr = array_column($priceInfo,"price","price_type"); $priceArr = array_column($priceInfo,"price","price_type");
# $sub_total = OrderPriceModel::getOrderSubTotal($order_id); # $sub_total = OrderPriceModel::getOrderSubTotal($order_id);
$payment_surcharge_paypal = round($merchandise_total*0.046+0.5,2); $shipping = \Arr::get($priceArr,3,0); //运费
$payment_surcharge_paypal = round(($merchandise_total*$shipping)*0.046+0.5,2);
$ts =[ $ts =[
"order_id"=>$order_id, "order_id"=>$order_id,
...@@ -323,7 +324,7 @@ class OrderService ...@@ -323,7 +324,7 @@ class OrderService
"email"=>\Arr::get($receiveAddress,"email"), "email"=>\Arr::get($receiveAddress,"email"),
"phone"=>\Arr::get($receiveAddress,"phone"), "phone"=>\Arr::get($receiveAddress,"phone"),
"shipping_address"=>\Arr::get($receiveAddress,"detail_address"), "shipping_address"=>\Arr::get($receiveAddress,"detail_address"),
"shipping"=>\Arr::get($priceArr,3,0), //运费 "shipping"=>$shipping, //运费
"payment_surcharge_paypal"=>$payment_surcharge_paypal, //paypal 支付手续费 "payment_surcharge_paypal"=>$payment_surcharge_paypal, //paypal 支付手续费
"payment_surcharge_ttl"=>35, //ttl 支付手续费 "payment_surcharge_ttl"=>35, //ttl 支付手续费
"merchandise_total"=>$merchandise_total, //商品总额 "merchandise_total"=>$merchandise_total, //商品总额
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment