change redeem formula
This commit is contained in:
@@ -184,7 +184,7 @@ class SalePayment < ApplicationRecord
|
|||||||
url = paypar_url.to_s + membership_actions_data.gateway_url.to_s
|
url = paypar_url.to_s + membership_actions_data.gateway_url.to_s
|
||||||
merchant_uid = membership_actions_data.merchant_account_id
|
merchant_uid = membership_actions_data.merchant_account_id
|
||||||
auth_token = membership_actions_data.auth_token
|
auth_token = membership_actions_data.auth_token
|
||||||
campaign_type_id = membership_actions_data.additional_parameters["campaign_type_id"]
|
campaign_type_id = JSON.parse(membership_actions_data.additional_parameters)["campaign_type_id"]
|
||||||
sale_data = Sale.find_by_sale_id(sale_id)
|
sale_data = Sale.find_by_sale_id(sale_id)
|
||||||
|
|
||||||
if sale_data
|
if sale_data
|
||||||
|
|||||||
@@ -189,7 +189,17 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
swal ( "Information" , result.message);
|
swal({
|
||||||
|
title: 'Oops',
|
||||||
|
text: result.message.toString(),
|
||||||
|
type: 'error',
|
||||||
|
html: true,
|
||||||
|
closeOnConfirm: false,
|
||||||
|
closeOnCancel: false,
|
||||||
|
allowOutsideClick: false
|
||||||
|
}, function () {
|
||||||
|
window.location.href = '/origami/sale/'+ sale_id +"/"+cashier_type + "/payment/others_payment/Redeem";
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user