@@ -94,9 +94,50 @@ class ShoppingCart extends React.Component {
...
@@ -94,9 +94,50 @@ class ShoppingCart extends React.Component {
}
}
checkExpiredReward(){
checkExpiredReward(){
lettype_trans=""
if(this.props.type_pickup==true){
type_trans='Pickup'
}else{
type_trans='Delivery'
}
letparams={
session_id:this.props.session_id,
trans_type:type_trans,
order_item:this.props.order_item,
reward_id:this.props.voucher.id,
delivery_charge:this.props.grabamount,
}
// MULAI DISINI PEMANGGILAN API DI MULAI, KALAU BERHASIL SET VALUE VOUCHER NYA DAN SPINER DIMATIKAN, KALAU GAGAL CABUT SESSION VOUCHER DAN SPINNER DI MATIKAN