How would you do for that action would execute if the stripe payment is performing
My action controller:
def create
@action = Action.new(action_params)
@action.user = current_user
if @action.save
redirect_to new_charge_path
else
render :new
end
end
I would like my @ action.save is executed only if the payment is done.
(new_charge_path is stripe route)
Aucun commentaire:
Enregistrer un commentaire