Last used btn
This commit is contained in:
@@ -44,7 +44,7 @@ end
|
||||
|
||||
update_delivery_destination = ->() {
|
||||
cart = Cart.just_find(anonymous_id, logged_in_user_id)
|
||||
allowed_keys = ["name", "address", "place", "postal_code", "phone", "email", "note"]
|
||||
allowed_keys = ["name", "address", "place", "postal_code", "phone", "email", "note", "payment_method"]
|
||||
params = @json_params.reject { |key,_| !allowed_keys.include?(key) }
|
||||
cart.delivery_destination.update_attributes(params)
|
||||
cart.delivery_destination.save!
|
||||
@@ -129,7 +129,7 @@ get '/pikpay/confirmation' do
|
||||
user = params["user_id"]
|
||||
user ||= -1
|
||||
user = user.to_i
|
||||
|
||||
|
||||
cart = Cart.just_find(anonymous, user)
|
||||
if cart.item_in_carts.length > 0
|
||||
cart.ordered = true
|
||||
|
||||
Reference in New Issue
Block a user